[Lunar-commits] <moonbase-other> gdal: a little tweaking to accomodate python3

Dennis Veatch dennisveatch at bellsouth.net
Fri Oct 10 15:17:06 CEST 2014


commit 2e76746150e45979b7a5b83d993b7b0cfb81053f
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Fri, 10 Oct 2014 09:16:44 -0400
URL: https://github.com/lunar-linux/moonbase-other/commit/2e76746150e45979b7a5b83d993b7b0cfb81053f

gdal: a little tweaking to accomodate python3
---
  libs/gdal/BUILD   | +6/-0     
  libs/gdal/DEPENDS | +2/-1     
  2 files changed, 8 insertions(+), 1 deletion(-)

--- a/libs/gdal/BUILD
+++ b/libs/gdal/BUILD
@@ -1,4 +1,5 @@
 
+  mv configure.in configure.ac &&
   ./autogen.sh &&
 
   CFLAGS+=" -fPIC" &&
@@ -17,4 +18,9 @@
     cd swig/python &&
     python setup.py build &&
     python setup.py install
+  fi &&
+
+  if in_depends $MODULE Python ; then
+    python3 setup.py build &&
+    python3 setup.py install
   fi
--- a/libs/gdal/DEPENDS
+++ b/libs/gdal/DEPENDS
@@ -14,8 +14,9 @@ optional_depends "perl"       "--with-perl"     "--without-perl"     "for perl s
 optional_depends "%PHP"       "--with-php"      "--without-php"      "for php support"
 optional_depends "ruby"       "--with-ruby"     "--without-ruby"     "for ruby scripting support"
 
-#See comments in BUILD about why there are no switches.
+#See comments in BUILD about why there are no switches for python and python3.
 optional_depends "Python"     ""   ""   "for python scripting support"
+optional_depends "Python-3"   ""   ""   "for python3 scripting support"
 
 optional_depends "%MYSQL"     "--with-mysql"    "--without-mysql"    "for mysql database support"
 optional_depends "sqlite"     "--with-sqlite3"  "--without-sqlite3"  "for sqlite database support"




More information about the Lunar-commits mailing list