actions.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import pythonmodules
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import get
  11. WorkDir="PyQt5_gpl-%s" % get.srcVERSION()
  12. def setup():
  13. pythonmodules.run("configure.py --confirm-license \
  14. --qsci-api \
  15. --sip /usr/bin/sip \
  16. --qmake='/usr/bin/qmake-qt5' \
  17. --destdir='/usr/lib/python3.6/site-packages' \
  18. --sip-incdir='/usr/include/python3.6m' \
  19. CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
  20. shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
  21. def build():
  22. autotools.make()
  23. def install():
  24. shelltools.cd("%s/PyQt5_gpl-%s" % (get.workDIR(),get.srcVERSION()))
  25. autotools.rawInstall("-C pyrcc DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
  26. autotools.rawInstall("-C pylupdate DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
  27. autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
  28. #pisitools.dohtml("doc/html/*")
  29. pisitools.dodoc("NEWS", "README","LICENSE*")