python-qt5:version bump to 5.6

This commit is contained in:
2016-05-25 22:12:12 +03:00
parent f4cdd521be
commit a21e6fb15e
3 changed files with 50 additions and 38 deletions
@@ -10,10 +10,10 @@ from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir="PyQt-gpl-%s" % get.srcVERSION()
WorkDir="PyQt5_gpl-%s" % get.srcVERSION()
def setup():
shelltools.copytree("%s/PyQt-gpl-5.5.1" % get.workDIR(), "%s/Py2Qt-gpl-5.5.1" % get.workDIR())
shelltools.copytree("%s/PyQt5_gpl-%s" % (get.workDIR(),get.srcVERSION()), "%s/Py2Qt5_gpl-%s" % (get.workDIR(),get.srcVERSION()))
pythonmodules.run("configure.py --confirm-license \
--qsci-api \
--sip /usr/bin/sip \
@@ -23,7 +23,7 @@ def setup():
CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
shelltools.cd("%s/Py2Qt-gpl-5.5.1" % get.workDIR())
shelltools.cd("%s/Py2Qt5_gpl-%s" % (get.workDIR(),get.srcVERSION()))
pythonmodules.run("configure.py --confirm-license \
--qsci-api \
--destdir='/usr/lib/python2.7/site-packages' \
@@ -34,11 +34,11 @@ def setup():
def build():
autotools.make()
shelltools.cd("%s/Py2Qt-gpl-5.5.1" % get.workDIR())
shelltools.cd("%s/Py2Qt5_gpl-%s" % (get.workDIR(),get.srcVERSION()))
autotools.make()
def install():
shelltools.cd("%s/Py2Qt-gpl-5.5.1" % get.workDIR())
shelltools.cd("%s/Py2Qt5_gpl-%s" % (get.workDIR(),get.srcVERSION()))
autotools.rawInstall("-C pyrcc DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
autotools.rawInstall("-C pylupdate DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
@@ -51,13 +51,10 @@ def install():
pisitools.domove("/usr/share/sip/PyQt5/*", "/usr/share/sip/Py2Qt5")
pisitools.removeDir("/usr/share/sip/PyQt5")
shelltools.cd("%s/PyQt-gpl-5.5.1" % get.workDIR())
shelltools.cd("%s/PyQt5_gpl-%s" % (get.workDIR(),get.srcVERSION()))
autotools.rawInstall("-C pyrcc DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
autotools.rawInstall("-C pylupdate DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
#pisitools.insinto("/usr/share/sip/PyQt5", "./sip/*")
# Fix conflicts with python-pyqt5
#pisitools.rename("/usr/bin/pyuic5", "python3-pyuic5")
pisitools.dohtml("doc/html/*")