[Lunar-commits] <moonbase-other> PyQt: making adjustments to deal with Python-3

Dennis Veatch dennisveatch at bellsouth.net
Wed Nov 12 23:41:06 CET 2014


commit df13533a5f522c8bbee8a7aeee4be05f5d91f1ee
Author: Dennis Veatch <dennisveatch at bellsouth.net>
Date: Wed, 12 Nov 2014 17:40:48 -0500
URL: https://github.com/lunar-linux/moonbase-other/commit/df13533a5f522c8bbee8a7aeee4be05f5d91f1ee

PyQt: making adjustments to deal with Python-3
---
  python/PyQt/BUILD   | +9/-3     
  python/PyQt/DEPENDS | +2/-0     
  2 files changed, 11 insertions(+), 3 deletions(-)

--- a/python/PyQt/BUILD
+++ b/python/PyQt/BUILD
@@ -1,4 +1,3 @@
-(
 
   . /etc/profile.d/qt4.rc &&
 
@@ -7,12 +6,19 @@
   # Use new kde phonon - fixes build break when qt4 is built without old phonon
   sed -i "/generate_code(\"phonon\")/s:phonon\":&,extra_include_dirs=[\"/usr/include/phonon\"]:" configure.py &&
 
+  OPTS+=" --enable=QtCore--enable=QtNetwork --enable=QtXml  --qsci-api" &&
+
   python ./configure.py      \
          --confirm-license   \
          $OPTS              &&
 
   default_make                 &&
   mkdir -p /usr/share/$MODULE  &&
-  cp -Rf examples /usr/share/$MODULE
+  cp -Rf examples /usr/share/$MODULE &&
 
-) > $C_FIFO 2>&1
+# Do the Python-3 part
+  if in_depends $MODULE Python-3 ; then
+    printf "${PROBLEM_COLOR}   Be patient. It may look like nothing is happening... its just slow.""${DEFAULT_COLOR}\n" &&
+    python3 ./configure.py --confirm-license $OPTS &&
+    default_make
+  fi
--- a/python/PyQt/DEPENDS
+++ b/python/PyQt/DEPENDS
@@ -1,2 +1,4 @@
 depends  sip
 depends  qt4
+
+optional_depends Python-3 "" "" "For Python-3 bindings support"




More information about the Lunar-commits mailing list