Commits

arsooy committed 4d2625d

Add temporary support for PySide using Python 3.3, url changes.

* Changes to download URLs, the pyside.org website is unavailable at
this moment.
* Add a small patch to make shiboken aware of Python 3.3, a temporary
fix until the upstream devs eventually supports Python 3.3.
* Various trivial changes.

Comments (0)

Files changed (4)

pyside-tools/PKGBUILD

 depends=('python-pyside>=1.1.2')
 makedepends=('cmake' 'automoc4' 'python-shiboken>=1.1.2')
 replaces=('pyside-tools-py3')
-source=("http://www.pyside.org/files/pyside-tools-$pkgver.tar.bz2" 'py3build.patch')
-md5sums=('0a683e1dc426df5834cb1e540d0c6e3f' '02003622eeeebb9ce302375dce05dc05')
+source=("https://distfiles.macports.org/py-pyside-tools/pyside-tools-$pkgver.tar.bz2"
+        'py3build.patch')
+md5sums=('0a683e1dc426df5834cb1e540d0c6e3f'
+         '02003622eeeebb9ce302375dce05dc05')
 
 build() {
     echo ""
     if [ "$_py2exec" != "" ]; then
         depends=('pyside-tools')
         makedepends=('sed' 'findutils')
-        pkgdesc='PySide development tools for Python 3.'
+        pkgdesc='PySide development tools for Python 2.'
 
         if [ -d "$srcdir/build" ]; then
             rm -r "$srcdir/build"
 depends=('qt>=4.8' 'phonon' 'mesa')
 makedepends=('automoc4' 'shiboken-common>=1.1.2')
 replaces=('pyside')
-source=("http://www.pyside.org/files/pyside-qt4.8+$pkgver.tar.bz2")
+source=("https://distfiles.macports.org/py-pyside/pyside-qt4.8+$pkgver.tar.bz2")
 md5sums=('59c8653734b020b0128b82adc98ee704')
 
 

shiboken/PKGBUILD

 depends=('qt>=4.8' 'openssl')
 makedepends=('cmake' 'automoc4')
 replaces=('shibokengenerator' 'libshiboken')
-source=("http://www.pyside.org/files/shiboken-$pkgver.tar.bz2")
-md5sums=('0a37b5011b3a7276bf4584317412a4b6')
+source=("https://distfiles.macports.org/py-shiboken/shiboken-$pkgver.tar.bz2"
+        'lookup_python33.patch')
+md5sums=('0a37b5011b3a7276bf4584317412a4b6'
+         '408d7e957cdc24c47a45edc88898e55b')
 
 build() {
     echo ""
         depends=('python' 'shiboken-common>=1.1.2')
         makedepends=('sed')
 
+		cd "$srcdir/shiboken-$pkgver"
+		msg "Applying patches ..."
+		# this patch is to make shiboken to use python 3.3
+		patch -p1 -N < ../../lookup_python33.patch
+
+		# of course, if you want to undo the patches you can use:
+		#  $ patch -p1 -R < ../../lookup_python33.patch
+
         if [ -d "$srcdir/build" ]; then
             rm -r "$srcdir/build"
         fi

shiboken/lookup_python33.patch

+diff --git a/cmake/Modules/FindPython3Libs.cmake b/cmake/Modules/FindPython3Libs.cmake
+index 03fe8b8..263a610 100644
+--- a/cmake/Modules/FindPython3Libs.cmake
++++ b/cmake/Modules/FindPython3Libs.cmake
+@@ -27,7 +27,7 @@ INCLUDE(CMakeFindFrameworks)
+ # Search for the python framework on Apple.
+ # CMAKE_FIND_FRAMEWORKS(Python)
+ 
+-FOREACH(_CURRENT_VERSION 3.2 3.1 3.0)
++FOREACH(_CURRENT_VERSION 3.3 3.2 3.1 3.0)
+   IF(_CURRENT_VERSION GREATER 3.1)
+       SET(_32FLAGS "m" "u" "mu" "")
+   ELSE()