diff options
Diffstat (limited to 'community/pyqt3')
-rw-r--r-- | community/pyqt3/PKGBUILD | 3 | ||||
-rw-r--r-- | community/pyqt3/PyQt-x11-gpl-3.18.1-configure.patch | 37 |
2 files changed, 39 insertions, 1 deletions
diff --git a/community/pyqt3/PKGBUILD b/community/pyqt3/PKGBUILD index f23faf9e2..6b0e4cd8b 100644 --- a/community/pyqt3/PKGBUILD +++ b/community/pyqt3/PKGBUILD @@ -7,7 +7,7 @@ pkgname=pyqt3 pkgver=3.18.1 pkgrel=12 pkgdesc="A set of Python bindings for the Qt3 toolkit" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.riverbankcomputing.com/software/pyqt/intro" depends=('python2-sip' 'qscintilla-qt3') makedepends=('glu') @@ -17,6 +17,7 @@ md5sums=('f1d120495d1aaf393819e988c0a7bb7e') build() { cd ${srcdir}/PyQt-x11-gpl-${pkgver} + patch -Np1 -i ${srcdir}/PyQt-x11-gpl-3.18.1-configure.patch . /etc/profile.d/qt3.sh echo yes | python2 configure.py -b /usr/bin \ -d /usr/lib/python2.7/site-packages \ diff --git a/community/pyqt3/PyQt-x11-gpl-3.18.1-configure.patch b/community/pyqt3/PyQt-x11-gpl-3.18.1-configure.patch new file mode 100644 index 000000000..66150ba72 --- /dev/null +++ b/community/pyqt3/PyQt-x11-gpl-3.18.1-configure.patch @@ -0,0 +1,37 @@ +--- PyQt-x11-gpl-3.18.1.orig/configure.py 2009-06-16 03:47:29.000000000 -0500 ++++ PyQt-x11-gpl-3.18.1/configure.py 2012-12-27 08:45:18.859375913 -0500 +@@ -258,27 +258,27 @@ + } + + def code(self, extra_include_dirs, extra_lib_dir, extra_libs): +- generate_code("qt", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=extra_libs) ++ generate_code("qt", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=extra_libs, extra_cxxflags="-DANY=void") + + if "qtext" in pyqt_modules: +- generate_code("qtext", extra_define=qsci_define, extra_include_dirs=[opt_qsciincdir], extra_lib_dir=opt_qscilibdir, extra_libs=["qscintilla"], sip_flags=qtext_sip_flags) ++ generate_code("qtext", extra_define=qsci_define, extra_include_dirs=[opt_qsciincdir], extra_lib_dir=opt_qscilibdir, extra_libs=["qscintilla"], sip_flags=qtext_sip_flags, extra_cxxflags="-DANY=void") + + if "qtgl" in pyqt_modules: +- generate_code("qtgl", opengl=1) ++ generate_code("qtgl", opengl=1, extra_cxxflags="-DANY=void") + + if "qtpe" in pyqt_modules: +- generate_code("qtpe", extra_libs=["qpe"], sip_flags=qtpe_sip_flags) ++ generate_code("qtpe", extra_libs=["qpe"], sip_flags=qtpe_sip_flags, extra_cxxflags="-DANY=void") + + if "qtui" in pyqt_modules: +- generate_code("qtui", extra_libs=["qui"]) ++ generate_code("qtui", extra_libs=["qui"], extra_cxxflags="-DANY=void") + + if "qtaxcontainer" in pyqt_modules: +- generate_code("qtaxcontainer", extra_libs=["qaxcontainer"]) ++ generate_code("qtaxcontainer", extra_libs=["qaxcontainer"], extra_cxxflags="-DANY=void") + + # The rest don't need special handling. + for m in ("qtcanvas", "qtnetwork", "qtsql", "qttable", "qtxml"): + if m in pyqt_modules: +- generate_code(m) ++ generate_code(m, extra_cxxflags="-DANY=void") + + def tools(self): + tool_dirs = [] |