aboutsummaryrefslogtreecommitdiffstats
path: root/testing/geos/10-configure-python3.patch
diff options
context:
space:
mode:
authorHolger Jaekel <holger.jaekel@gmx.de>2019-06-02 22:09:52 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-07-05 15:57:40 -0300
commit69c69a7f621497266a94ce4ec697be9bc7a0640e (patch)
treec8b4c0fff2af6e73f04dda3c5526d89ffe3bfad5 /testing/geos/10-configure-python3.patch
parentb35cfaf725e86bda994fada02b713aa190b5fed1 (diff)
downloadaports-69c69a7f621497266a94ce4ec697be9bc7a0640e.tar.bz2
aports-69c69a7f621497266a94ce4ec697be9bc7a0640e.tar.xz
testing/geos: upgrade to 3.7.2
new maintainer enable on all arches switch to python3 add ruby bindings
Diffstat (limited to 'testing/geos/10-configure-python3.patch')
-rw-r--r--testing/geos/10-configure-python3.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/geos/10-configure-python3.patch b/testing/geos/10-configure-python3.patch
new file mode 100644
index 0000000000..417d13d492
--- /dev/null
+++ b/testing/geos/10-configure-python3.patch
@@ -0,0 +1,35 @@
+Author: Holger Jaekel <holger.jaekel@gmx.de>
+Summary: Patch configure script for python3
+----
+
+--- a/configure
++++ b/configure
+@@ -19209,8 +19209,9 @@ $as_echo "$python_path" >&6; }
+ # Check for Python library path
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
+ $as_echo_n "checking for Python library path... " >&6; }
++ PYTHON_MAJOR=`echo $PYTHON_VERSION | cut -d. -f1`
+ for i in "$base_python_path/lib/python$PYTHON_VERSION/config/" "$base_python_path/lib/python$PYTHON_VERSION/" "$base_python_path/lib/python/config/" "$base_python_path/lib/python/" "$base_python_path/" "$base_python_path/libs/" ; do
+- python_path=`find $i -name libpython$PYTHON_VERSION.* -print 2> /dev/null | sed "1q"`
++ python_path=`find $i -name libpython$PYTHON_MAJOR.* -print 2> /dev/null | sed "1q"`
+ if test -n "$python_path" ; then
+ break
+ fi
+@@ -19221,7 +19222,7 @@ $as_echo "$python_path" >&6; }
+ if test -z "$python_path" ; then
+ as_fn_error $? "cannot find Python library path" "$LINENO" 5
+ fi
+- PYTHON_LDFLAGS="-L$python_path -lpython$PYTHON_VERSION"
++ PYTHON_LDFLAGS="-L$python_path -lpython$PYTHON_MAJOR"
+
+ #
+ python_site=`echo $base_python_path | sed "s/config/site-packages/"`
+@@ -19234,7 +19235,7 @@ $as_echo "$python_path" >&6; }
+ $as_echo_n "checking python extra libraries... " >&6; }
+ PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
+ conf = distutils.sysconfig.get_config_var; \
+- print (conf('LOCALMODLIBS') or '')+' '+(conf('LIBS') or '')"
++ print ((conf('LOCALMODLIBS') or '')+' '+(conf('LIBS') or ''))"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
+ $as_echo "$PYTHON_EXTRA_LIBS" >&6; }`
+