python-qt:added py2 support
This commit is contained in:
@@ -13,6 +13,7 @@ from pisi.actionsapi import get
|
|||||||
WorkDir="PyQt-gpl-%s" % get.srcVERSION()
|
WorkDir="PyQt-gpl-%s" % get.srcVERSION()
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
|
shelltools.copytree("%s/PyQt-gpl-5.4.2" % get.workDIR(), "%s/Py2Qt-gpl-5.4.2" % get.workDIR())
|
||||||
pythonmodules.run("configure.py --confirm-license \
|
pythonmodules.run("configure.py --confirm-license \
|
||||||
--assume-shared \
|
--assume-shared \
|
||||||
--no-timestamp \
|
--no-timestamp \
|
||||||
@@ -23,15 +24,31 @@ def setup():
|
|||||||
--sip-incdir='/usr/include/python3.4m' \
|
--sip-incdir='/usr/include/python3.4m' \
|
||||||
CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
|
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.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
|
shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
autotools.make()
|
autotools.make()
|
||||||
|
shelltools.cd("%s/Py2Qt-gpl-5.4.2" % get.workDIR())
|
||||||
|
autotools.make()
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
autotools.rawInstall("-C pyrcc 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()})
|
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()})
|
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")
|
||||||
|
|
||||||
pisitools.dohtml("doc/html/*")
|
pisitools.dohtml("doc/html/*")
|
||||||
pisitools.dodoc("NEWS", "README","LICENSE*")
|
pisitools.dodoc("NEWS", "README","LICENSE*")
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<PISI>
|
<PISI>
|
||||||
<Source>
|
<Source>
|
||||||
<Name>python3-qt5</Name>
|
<Name>python-qt5</Name>
|
||||||
<Homepage>http://www.riverbankcomputing.co.uk/software/pyqt</Homepage>
|
<Homepage>http://www.riverbankcomputing.co.uk/software/pyqt</Homepage>
|
||||||
<Packager>
|
<Packager>
|
||||||
<Name>Ayhan Yalçınsoy</Name>
|
<Name>Ayhan Yalçınsoy</Name>
|
||||||
@@ -37,28 +37,31 @@
|
|||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
<Package>
|
<Package>
|
||||||
<Name>python3-qt5-common</Name>
|
<Name>python-qt5-common</Name>
|
||||||
<Summary>Common files shared between python-qt5 and python3-qt5</Summary>
|
<Summary>Common files shared between python-qt5 and python3-qt5</Summary>
|
||||||
<RuntimeDependencies>
|
<RuntimeDependencies>
|
||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
|
<Dependency>python</Dependency>
|
||||||
<Dependency>qt5-base</Dependency>
|
<Dependency>qt5-base</Dependency>
|
||||||
|
<Dependency>qt5-declarative</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin/pylupdate5</Path>
|
<Path fileType="executable">/usr/bin/pylupdate5</Path>
|
||||||
<Path fileType="executable">/usr/bin/pyrcc5</Path>
|
<Path fileType="executable">/usr/bin/pyrcc5</Path>
|
||||||
<Path fileType="data">/usr/share/qt5/qsci/api</Path>
|
<Path fileType="data">/usr/share/qt5/qsci/api</Path>
|
||||||
<Path fileType="data">/usr/share/sip/PyQt5</Path>
|
<Path fileType="data">/usr/share/sip/PyQt5</Path>
|
||||||
|
<Path fileType="library">/usr/lib/qt5/plugins/PyQt5/libpyqt5qmlplugin.so</Path>
|
||||||
|
<Path fileType="library">/usr/lib/qt5/plugins/designer/libpyqt5.so</Path>
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<Package>
|
<Package>
|
||||||
<Name>python3-qt5</Name>
|
<Name>python-qt5</Name>
|
||||||
<Summary>A set of Python 3.x bindings for the Qt 5.x Toolkit</Summary>
|
<Summary>A set of Python 2.x bindings for the Qt 5.x Toolkit</Summary>
|
||||||
<RuntimeDependencies>
|
<RuntimeDependencies>
|
||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
<Dependency>dbus</Dependency>
|
<Dependency>dbus</Dependency>
|
||||||
<Dependency>python3</Dependency>
|
<Dependency release="current">python-qt5-common</Dependency>
|
||||||
<Dependency release="current">python3-qt5-common</Dependency>
|
|
||||||
<Dependency>qt5-base</Dependency>
|
<Dependency>qt5-base</Dependency>
|
||||||
<Dependency>qt5-declarative</Dependency>
|
<Dependency>qt5-declarative</Dependency>
|
||||||
<Dependency>qt5-sensors</Dependency>
|
<Dependency>qt5-sensors</Dependency>
|
||||||
@@ -70,8 +73,29 @@
|
|||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin/pyuic5</Path>
|
<Path fileType="executable">/usr/bin/pyuic5</Path>
|
||||||
|
<Path fileType="library">/usr/lib/python2.7/site-packages</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>python3-qt5</Name>
|
||||||
|
<Summary>A set of Python 3.x bindings for the Qt 5.x Toolkit</Summary>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>libgcc</Dependency>
|
||||||
|
<Dependency>dbus</Dependency>
|
||||||
|
<Dependency release="current">python-qt5-common</Dependency>
|
||||||
|
<Dependency>qt5-base</Dependency>
|
||||||
|
<Dependency>qt5-declarative</Dependency>
|
||||||
|
<Dependency>qt5-sensors</Dependency>
|
||||||
|
<Dependency>qt5-serialport</Dependency>
|
||||||
|
<Dependency>qt5-svg</Dependency>
|
||||||
|
<Dependency>qt5-webkit</Dependency>
|
||||||
|
<Dependency>qt5-x11extras</Dependency>
|
||||||
|
<Dependency>qt5-xmlpatterns</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="executable">/usr/bin/py3uic5</Path>
|
||||||
<Path fileType="library">/usr/lib/python3.4/site-packages</Path>
|
<Path fileType="library">/usr/lib/python3.4/site-packages</Path>
|
||||||
<Path fileType="library">/usr/lib/qt5/plugins</Path>
|
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user