diff --git a/programming/language/python/sip/actions.py b/programming/language/python/sip/actions.py index 8d743505e0..600443ff8b 100644 --- a/programming/language/python/sip/actions.py +++ b/programming/language/python/sip/actions.py @@ -10,15 +10,29 @@ from pisi.actionsapi import pisitools from pisi.actionsapi import pythonmodules from pisi.actionsapi import get -WorkDir = "sip-%s" % get.srcVERSION() +#WorkDir = "sip-%s" % get.srcVERSION() -def setup(): +def setup(): + shelltools.cd("%s" % get.workDIR()) + shelltools.cd("sip-%s" % get.srcVERSION()) + shelltools.copytree("../sip-%s" % (get.srcVERSION().replace("_", "~")), "../sip-%s-pyqt5" % get.srcVERSION()) + pythonmodules.run('configure.py CFLAGS+="%s" CXXFLAGS+="%s"' % (get.CFLAGS(), get.CXXFLAGS())) + + shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION()) + pythonmodules.run('configure.py CFLAGS+="%s" CXXFLAGS+="%s" --sip-module PyQt5.sip --no-tools' % (get.CFLAGS(), get.CXXFLAGS())) def build(): autotools.make() + + shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION()) + autotools.make() def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION()) + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + pisitools.rename("/usr/bin/sip", "py2sip") diff --git a/programming/language/python/sip/pspec.xml b/programming/language/python/sip/pspec.xml index a330ccfea5..fb639523d0 100644 --- a/programming/language/python/sip/pspec.xml +++ b/programming/language/python/sip/pspec.xml @@ -32,8 +32,26 @@ /usr/include + + + python-pyqt5-sip + Python 2.x pyqt5 SIP bindings for C and C++ libraries + + libgcc + + + /usr/lib/python2.7/site-packages/PyQt5* + + + + 2019-01-14 + 4.19.12 + Rebuild pyqt5 sip. + Mustafa Cinasal + muscnsl@gmail.com + 2018-08-06 4.19.12 diff --git a/programming/language/python3/python3-sip/actions.py b/programming/language/python3/python3-sip/actions.py index c8d1ffbb8f..5c5257f735 100644 --- a/programming/language/python3/python3-sip/actions.py +++ b/programming/language/python3/python3-sip/actions.py @@ -10,15 +10,29 @@ from pisi.actionsapi import pisitools from pisi.actionsapi import pythonmodules from pisi.actionsapi import get -WorkDir = "sip-%s" % get.srcVERSION() +#WorkDir = "sip-%s" % get.srcVERSION() def setup(): + shelltools.cd("%s" % get.workDIR()) + shelltools.cd("sip-%s" % get.srcVERSION()) + shelltools.copytree("../sip-%s" % (get.srcVERSION().replace("_", "~")), "../sip-%s-pyqt5" % get.srcVERSION()) + shelltools.system("find . -type f -exec sed -i 's/Python.h/python3.6m\/Python.h/g' {} \;") + pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s"' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3") + + shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION()) + pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s" --sip-module PyQt5.sip --no-tools' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3") def build(): autotools.make() + + shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION()) + autotools.make() def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION()) + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) diff --git a/programming/language/python3/python3-sip/pspec.xml b/programming/language/python3/python3-sip/pspec.xml index 9ccc43cf58..e78e363ffb 100644 --- a/programming/language/python3/python3-sip/pspec.xml +++ b/programming/language/python3/python3-sip/pspec.xml @@ -33,8 +33,26 @@ /usr/share/licenses + + + python3-pyqt5-sip + Python 3.x pyqt5 SIP bindings for C and C++ libraries + + libgcc + + + /usr/lib/python3.6/site-packages/PyQt5* + + + + 2019-01-14 + 4.19.12 + Rebuild pyqt5 sip. + Mustafa Cinasal + muscnsl@gmail.com + 2018-08-06 4.19.12