sip:moved into main

This commit is contained in:
2015-09-06 16:32:15 +03:00
parent bca7ed74e7
commit cd4bebd7a6
6 changed files with 206 additions and 0 deletions
@@ -0,0 +1,29 @@
#!/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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
WorkDir = "%s-%s" % (get.srcNAME(), get.srcVERSION())
py2dir = get.curPYTHON()
def setup():
pythonmodules.run('configure.py \
-b /usr/bin \
-d /usr/lib/%s/site-packages \
-e /usr/include/%s \
CFLAGS+="%s" CXXFLAGS+="%s"' % (py2dir, py2dir, get.CFLAGS(), get.CXXFLAGS()))
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#pisitools.remove("/usr/bin/sip")
pisitools.dodoc("LICENSE*", "NEWS", "README")
@@ -0,0 +1,10 @@
--- siputils.py
+++ siputils.py
@@ -737,6 +737,7 @@ class Makefile:
rpaths is the cannonical list of rpaths.
"""
flags = []
+ return flags
prefix = self.optional_string("RPATH")
if prefix:
@@ -0,0 +1,11 @@
--- specs/linux-g++ 2009/08/31 11:59:37 1.1
+++ specs/linux-g++ 2009/08/31 12:00:19
@@ -53,7 +53,7 @@
QMAKE_LFLAGS =
QMAKE_LFLAGS_RELEASE =
QMAKE_LFLAGS_DEBUG =
-QMAKE_LFLAGS_SHLIB = -shared
+QMAKE_LFLAGS_SHLIB = -shared -lpython2.7
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
QMAKE_LFLAGS_SONAME = -Wl,-soname,
QMAKE_LFLAGS_THREAD =
@@ -0,0 +1,26 @@
Index: sip-4.8.2/specs/linux-g++
===================================================================
--- sip-4.8.2.orig/specs/linux-g++
+++ sip-4.8.2/specs/linux-g++
@@ -83,7 +83,7 @@ QMAKE_COPY_DIR = $(COPY) -r
QMAKE_MOVE = mv -f
QMAKE_DEL_FILE = rm -f
QMAKE_DEL_DIR = rmdir
-QMAKE_STRIP = strip
+QMAKE_STRIP =
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
QMAKE_CHK_DIR_EXISTS = test -d
QMAKE_MKDIR = mkdir -p
Index: sip-4.8.2/specs/linux-lsb
===================================================================
--- sip-4.8.2.orig/specs/linux-lsb
+++ sip-4.8.2/specs/linux-lsb
@@ -83,7 +83,7 @@ QMAKE_COPY_DIR = $(COPY) -r
QMAKE_MOVE = mv -f
QMAKE_DEL_FILE = rm -f
QMAKE_DEL_DIR = rmdir
-QMAKE_STRIP = strip
+QMAKE_STRIP =
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
QMAKE_CHK_DIR_EXISTS = test -d
QMAKE_MKDIR = mkdir -p
+102
View File
@@ -0,0 +1,102 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>sip</Name>
<Homepage>http://www.riverbankcomputing.co.uk/sip</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>SIP is a tool for generating bindings for C++ classes so that they can be used by Python</Summary>
<Description>SIP is a tool for generating bindings for C and C++ libraries so that they can be used by Python. It takes any C or C++ libraries and converts them into Python extension modules.</Description>
<!--<Archive sha1sum="51b913205e1a31e65eea154437438b9c9b5c36d8" type="targz">mirrors://sourceforge/pyqt/sip-4.14.3.tar.gz</Archive>-->
<Archive sha1sum="ec467c1ca9f9ead16be869eccc2e7cae72750d56" type="targz">mirrors://sourceforge/pyqt/sip-4.16.7.tar.gz</Archive>
<BuildDependencies>
<Dependency>python-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">no-strip.patch</Patch>
<Patch>disable-rpaths.diff</Patch>
<Patch>fix-linking.diff</Patch>
</Patches>
</Source>
<Package>
<Name>sip</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>python-sip</Name>
<Summary>Python 2.x SIP bindings for C and C++ libraries</Summary>
<RuntimeDependencies>
<Dependency release="current">sip</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/python2*</Path>
</Files>
</Package>
<Package>
<Name>sip-devel</Name>
<Summary>Development files for sip</Summary>
<RuntimeDependencies>
<Dependency release="current">sip</Dependency>
<Dependency release="current">python-sip</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="6">
<Date>2015-04-09</Date>
<Version>4.16.7</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2014-05-28</Date>
<Version>4.14.2</Version>
<Comment>Rebuild.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-09-14</Date>
<Version>4.14.2</Version>
<Comment>ReBump</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-09-09</Date>
<Version>4.15.1</Version>
<Comment>V.Bump</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-01-18</Date>
<Version>4.14.2</Version>
<Comment>Fixed</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-12-15</Date>
<Version>4.14.2</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,28 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>sip</Name>
<Summary xml:lang="tr">C ve C++ kütüphaneleri için python bağlayıcıları oluşturan bir araç</Summary>
<Summary xml:lang="pl">Generator powiązań Pythona z bibliotekami klas C++</Summary>
<Description xml:lang="tr">SIP 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="fr">SIP est un outil de génération de bindings (liens) pour librairies C et C++ afin de les rendre utilisables depuis Python. Il prend n'importe quelle librairie C ou C++ et la convertit en module d'extension Python.</Description>
<Description xml:lang="es">SIP es una herramienta para generar librerías de acceso a clases C++, para poder usarlos desde Python. Puede tomar cualquier librería C o C++ y convertirlo en módulos de extensión para Python.</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>sip-devel</Name>
<Summary xml:lang="tr">sip için geliştirme dosyaları</Summary>
<Summary xml:lang="pl">Pliki nagłówkowe sip</Summary>
</Package>
<Package>
<Name>python-sip</Name>
<Summary xml:lang="pl">Moduł python2 wymagany przez wygenerowane powiązania</Summary>
</Package>
<Package>
<Name>python3-sip</Name>
<Summary xml:lang="pl">Moduł python3 wymagany przez wygenerowane powiązania</Summary>
</Package>
</PISI>