mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
graphics/py-fiona: Update to 1.8.13
Reported by: phryk@wzff.de Differential Revision: https://reviews.freebsd.org/D25471
This commit is contained in:
parent
3d4855e0bd
commit
002ece400f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=540552
3 changed files with 7 additions and 42 deletions
|
@ -1,8 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Fiona
|
||||
DISTVERSION= 1.7.13
|
||||
PORTREVISION= 2
|
||||
DISTVERSION= 1.8.13
|
||||
CATEGORIES= graphics python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -23,4 +22,7 @@ LIB_DEPENDS+= libgdal.so:graphics/gdal
|
|||
USES= compiler:c++11-lang python
|
||||
USE_PYTHON= autoplist distutils cython
|
||||
|
||||
post-install:
|
||||
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME:tl} -name *.so -exec ${STRIP_CMD} {} +
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1534883784
|
||||
SHA256 (Fiona-1.7.13.tar.gz) = a156129f0904cb7eb24aa0745b6075da54f2c31db168ed3bcac8a4bd716d77b2
|
||||
SIZE (Fiona-1.7.13.tar.gz) = 731237
|
||||
TIMESTAMP = 1592577678
|
||||
SHA256 (Fiona-1.8.13.tar.gz) = 5ec34898c8b983a723fb4e949dd3e0ed7e691c303e51f6bfd61e52ac9ac813ae
|
||||
SIZE (Fiona-1.8.13.tar.gz) = 1161029
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
Obtained from: https://github.com/Toblerity/Fiona/commit/99fa8c27e6f8f8d1dba428fe123878cf9bb5bba3
|
||||
|
||||
--- setup.py.orig 2018-07-17 18:09:40 UTC
|
||||
+++ setup.py
|
||||
@@ -181,6 +181,14 @@ ext_options = dict(
|
||||
extra_link_args=extra_link_args,
|
||||
)
|
||||
|
||||
+ext_options_cpp = ext_options.copy()
|
||||
+# GDAL 2.3+ requires C++11
|
||||
+if sys.platform == "win32":
|
||||
+ ext_options_cpp["extra_compile_args"] = ["/std:c++11"]
|
||||
+else:
|
||||
+ ext_options_cpp["extra_compile_args"] = ["-std=c++11"]
|
||||
+
|
||||
+
|
||||
# Define the extension modules.
|
||||
ext_modules = []
|
||||
|
||||
@@ -207,7 +215,7 @@ if source_is_repo and "clean" not in sys
|
||||
|
||||
ext_modules = cythonize([
|
||||
Extension('fiona._geometry', ['fiona/_geometry.pyx'], **ext_options),
|
||||
- Extension('fiona._transform', ['fiona/_transform.pyx'], **ext_options),
|
||||
+ Extension('fiona._transform', ['fiona/_transform.pyx'], **ext_options_cpp),
|
||||
Extension('fiona._crs', ['fiona/_crs.pyx'], **ext_options),
|
||||
Extension('fiona._drivers', ['fiona/_drivers.pyx'], **ext_options),
|
||||
Extension('fiona._err', ['fiona/_err.pyx'], **ext_options),
|
||||
@@ -217,7 +225,7 @@ if source_is_repo and "clean" not in sys
|
||||
# If there's no manifest template, as in an sdist, we just specify .c files.
|
||||
elif "clean" not in sys.argv:
|
||||
ext_modules = [
|
||||
- Extension('fiona._transform', ['fiona/_transform.cpp'], **ext_options),
|
||||
+ Extension('fiona._transform', ['fiona/_transform.cpp'], **ext_options_cpp),
|
||||
Extension('fiona._geometry', ['fiona/_geometry.c'], **ext_options),
|
||||
Extension('fiona._crs', ['fiona/_crs.c'], **ext_options),
|
||||
Extension('fiona._drivers', ['fiona/_drivers.c'], **ext_options),
|
Loading…
Add table
Reference in a new issue