sip
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
# 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 pythonmodules
|
||||
from pisi.actionsapi import get
|
||||
|
||||
#WorkDir = "sip-%s" % get.srcVERSION()
|
||||
@@ -17,12 +17,12 @@ def setup():
|
||||
shelltools.cd("sip-%s" % get.srcVERSION())
|
||||
shelltools.copytree("../sip-%s" % (get.srcVERSION().replace("_", "~")), "../sip-%s-pyqt5" % get.srcVERSION())
|
||||
|
||||
shelltools.system("find . -type f -exec sed -i 's/Python.h/python3.6m\/Python.h/g' {} \;")
|
||||
|
||||
pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s"' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
|
||||
#shelltools.system("find . -type f -exec sed -i 's/Python.h/python3.6m\/Python.h/g' {} \;")
|
||||
pisitools.cflags.add("-Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-cast-function-type")
|
||||
pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s" LFLAGS="-Wl,-O1,--as-needed -shared -lpthread %s"' % (get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS()), pyVer = "3")
|
||||
|
||||
shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
|
||||
pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s" --sip-module PyQt5.sip --no-tools' % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
|
||||
pythonmodules.run('configure.py CFLAGS="%s" CXXFLAGS="%s" LFLAGS="-Wl,-O1,--as-needed -shared -lpthread %s" --sip-module PyQt5.sip --no-tools' % (get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS()), pyVer = "3")
|
||||
|
||||
|
||||
def build():
|
||||
@@ -36,3 +36,6 @@ def install():
|
||||
|
||||
shelltools.cd("../sip-%s-pyqt5" % get.srcVERSION())
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dohtml("doc/html/*")
|
||||
pisitools.dodoc("LICENSE", "README")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>python3-sip</Name>
|
||||
@@ -9,12 +9,13 @@
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<PartOf>programming.language.python3</PartOf>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>SIP is a tool for generating bindings for C++ classes so that they can be used by Python3</Summary>
|
||||
<Description>SIP is a tool for generating bindings for C and C++ libraries so that they can be used by Python3. It takes any C or C++ libraries and converts them into Python extension modules.</Description>
|
||||
<Archive sha1sum="16dcfcc7fa9bc2f07d24591690111f59e6b6aff3" type="targz">https://www.riverbankcomputing.com/static/Downloads/sip/4.19.20/sip-4.19.20.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency versionFrom="5.14.0">qt5-base-devel</Dependency>
|
||||
<Dependency versionFrom="5.13.1">qt5-base-devel</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
@@ -41,17 +42,28 @@
|
||||
<Dependency>libgcc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/python3.6/site-packages/PyQt5*</Path>
|
||||
<Path fileType="library">/usr/lib/python3*/site-packages/PyQt5*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-sip-docs</Name>
|
||||
<Summary>Documentation files for python3-sip</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">python3-sip</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/doc/python3-sip</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="13">
|
||||
<Date>2019-12-29</Date>
|
||||
<Date>2020-01-14</Date>
|
||||
<Version>4.19.20</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Update>
|
||||
<Update release="12">
|
||||
<Date>2019-09-13</Date>
|
||||
|
||||
@@ -6,4 +6,16 @@
|
||||
<Description xml:lang="tr">SIP3 C ve C++ kütüphanelerini Python'da kullanabilmek için bağlayıcılar oluşturan bir araçtır. Herhangi bir C veya C++ kütüphanesini Python genişletme modülüne dönüştürür.</Description>
|
||||
<Description xml:lang="pl">Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików ze specyfikacjami klas. Obsługiwany jest Python 2 i 3.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python3-pyqt5-sip</Name>
|
||||
<Summary xml:lang="tr">C ve C++ kütüphaneleri için python PyQt5 bağlayıcıları oluşturan bir araç</Summary>
|
||||
<Description xml:lang="tr">SIP3 C ve C++ kütüphanelerini Python'da PyQt5 ile kullanabilmek için bağlayıcılar oluşturan bir araçtır. Herhangi bir C veya C++ kütüphanesini Python PyQt5 genişletme modülüne dönüştürür.</Description>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-sip-docs</Name>
|
||||
<Summary xml:lang="tr">python3-sip için belgelendirme dosyaları</Summary>
|
||||
<Description xml:lang="tr">python3-sip-docs, python3-sip için belgelendirme dosyalarını içerir.</Description>
|
||||
</Package>
|
||||
</PISI>
|
||||
|
||||
Reference in New Issue
Block a user