-
Notifications
You must be signed in to change notification settings - Fork 0
/
actions.py
91 lines (78 loc) · 4.32 KB
/
actions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir="PyQt-gpl-%s" % get.srcVERSION()
def setup():
shelltools.copytree("%s/PyQt-gpl-5.5" % get.workDIR(), "%s/Py2Qt-gpl-5.5" % get.workDIR())
pythonmodules.run("configure.py --confirm-license \
--assume-shared \
--no-timestamp \
--qsci-api \
--enable=QtDBus \
--enable=QtQml \
--enable=QtQuick \
--enable=QtQuickWidgets \
--enable=QtOpenGL \
--enable=QtTest \
--enable=QtSql \
--enable=QtSensors \
--enable=QtCore \
--enable=QtWidgets \
--enable=QtWebKitWidgets \
--enable=QtXml \
--enable=QtGui \
--enable=QtNetwork \
--enable=QtWebKit \
--enable=QtPrintSupport \
--enable=QtX11Extras \
--sip /usr/bin/sip \
--qmake='/usr/lib/qt5/bin/qmake' \
--destdir='/usr/lib/python3.4/site-packages' \
--sip-incdir='/usr/include/python3.4' \
CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
shelltools.cd("%s/Py2Qt-gpl-5.5" % get.workDIR())
shelltools.system("python configure.py --confirm-license \
--assume-shared \
--no-timestamp \
--qsci-api \
--enable=QtDBus \
--enable=QtQml \
--enable=QtQuick \
--enable=QtQuickWidgets \
--enable=QtOpenGL \
--enable=QtTest \
--enable=QtSql \
--enable=QtSensors \
--enable=QtCore \
--enable=QtWidgets \
--enable=QtWebKitWidgets \
--enable=QtXml \
--enable=QtGui \
--enable=QtNetwork \
--enable=QtWebKit \
--enable=QtPrintSupport \
--enable=QtX11Extras \
--destdir='/usr/lib/python2.7/site-packages' \
--sip-incdir='/usr/include/python2.7' \
--sip /usr/bin/sip \
--qmake='/usr/lib/qt5/bin/qmake'")
def build():
autotools.make()
shelltools.cd("%s/Py2Qt-gpl-5.5" % get.workDIR())
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
shelltools.cd("%s/Py2Qt-gpl-5.5" % get.workDIR())
autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
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()})
#pisitools.rename("/usr/bin/pyuic5", "pyuic5-python")
pisitools.dohtml("doc/html/*")
pisitools.dodoc("NEWS", "README","LICENSE*")