diff --git a/programming/language/python/sip/actions.py b/programming/language/python/sip/actions.py new file mode 100644 index 0000000000..efb21b6cc4 --- /dev/null +++ b/programming/language/python/sip/actions.py @@ -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") diff --git a/programming/language/python/sip/files/disable-rpaths.diff b/programming/language/python/sip/files/disable-rpaths.diff new file mode 100644 index 0000000000..7aab12987a --- /dev/null +++ b/programming/language/python/sip/files/disable-rpaths.diff @@ -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: diff --git a/programming/language/python/sip/files/fix-linking.diff b/programming/language/python/sip/files/fix-linking.diff new file mode 100644 index 0000000000..e97281a507 --- /dev/null +++ b/programming/language/python/sip/files/fix-linking.diff @@ -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 = diff --git a/programming/language/python/sip/files/no-strip.patch b/programming/language/python/sip/files/no-strip.patch new file mode 100644 index 0000000000..033b54f968 --- /dev/null +++ b/programming/language/python/sip/files/no-strip.patch @@ -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 diff --git a/programming/language/python/sip/pspec.xml b/programming/language/python/sip/pspec.xml new file mode 100644 index 0000000000..66f0e62763 --- /dev/null +++ b/programming/language/python/sip/pspec.xml @@ -0,0 +1,102 @@ + + + + + sip + http://www.riverbankcomputing.co.uk/sip + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + app:console + SIP is a tool for generating bindings for C++ classes so that they can be used by Python + 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. + + mirrors://sourceforge/pyqt/sip-4.16.7.tar.gz + + python-devel + + + no-strip.patch + disable-rpaths.diff + fix-linking.diff + + + + + sip + + /usr/bin + /usr/share/doc + + + + + python-sip + Python 2.x SIP bindings for C and C++ libraries + + sip + + + /usr/lib/python2* + + + + + sip-devel + Development files for sip + + sip + python-sip + + + /usr/include + + + + + + 2015-04-09 + 4.16.7 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-05-28 + 4.14.2 + Rebuild. + Serdar Soytetir + kaptan@pisilinux.org + + + 2013-09-14 + 4.14.2 + ReBump + PisiLinux Community + admins@pisilinux.org + + + 2013-09-09 + 4.15.1 + V.Bump + PisiLinux Community + admins@pisilinux.org + + + 2013-01-18 + 4.14.2 + Fixed + PisiLinux Community + admins@pisilinux.org + + + 2012-12-15 + 4.14.2 + First release + Marcin Bojara + marcin@pisilinux.org + + + diff --git a/programming/language/python/sip/translations.xml b/programming/language/python/sip/translations.xml new file mode 100644 index 0000000000..76845b4b69 --- /dev/null +++ b/programming/language/python/sip/translations.xml @@ -0,0 +1,28 @@ + + + + sip + C ve C++ kütüphaneleri için python bağlayıcıları oluşturan bir araç + Generator powiązań Pythona z bibliotekami klas C++ + 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. + 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. + 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. + Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików ze specyfikacjami klas. Obsługiwany jest Python 2 i 3. + + + + sip-devel + sip için geliştirme dosyaları + Pliki nagłówkowe sip + + + + python-sip + Moduł python2 wymagany przez wygenerowane powiązania + + + + python3-sip + Moduł python3 wymagany przez wygenerowane powiązania + +