python-qt5:fixed dep

This commit is contained in:
2015-09-06 21:44:08 +03:00
parent 4f010c6fcf
commit 512f0e30c0
3 changed files with 47 additions and 88 deletions
@@ -25,22 +25,22 @@ def setup():
--sip-incdir='/usr/include/python3.4' \
CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
shelltools.cd("%s/Py2Qt-gpl-5.4.2" % get.workDIR())
shelltools.system("python configure.py --confirm-license \
--assume-shared \
--no-timestamp \
--qsci-api \
--destdir='/usr/lib/python2.7/site-packages/' \
--sip-incdir='/usr/include/python2.7' \
--sip /usr/bin/sip \
--qmake='/usr/lib/qt5/bin/qmake'")
#shelltools.cd("%s/Py2Qt-gpl-5.4.2" % get.workDIR())
#shelltools.system("python configure.py --confirm-license \
#--assume-shared \
#--no-timestamp \
#--qsci-api \
#--destdir='/usr/lib/python2.7/site-packages/' \
# --sip-incdir='/usr/include/python2.7' \
#--sip /usr/bin/sip \
# --qmake='/usr/lib/qt5/bin/qmake'")
shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
def build():
autotools.make()
shelltools.cd("%s/Py2Qt-gpl-5.4.2" % get.workDIR())
autotools.make()
#shelltools.cd("%s/Py2Qt-gpl-5.4.2" % get.workDIR())
# autotools.make()
def install():
@@ -49,9 +49,10 @@ def install():
autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
pisitools.rename("/usr/bin/pyuic5", "py3uic5")
shelltools.cd("%s/Py2Qt-gpl-5.4.2" % get.workDIR())
autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
pisitools.rename("/usr/bin/pyuic5", "pyuic5")
#shelltools.cd("%s/Py2Qt-gpl-5.4.2" % get.workDIR())
#autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
#pisitools.rename("/usr/bin/pyuic5", "pyuic5")
pisitools.dohtml("doc/html/*")
pisitools.dodoc("NEWS", "README","LICENSE*")