Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=993007e8fc4f96ec54fe28c83e9a50a08b323990
commit 993007e8fc4f96ec54fe28c83e9a50a08b323990 Author: kikadf <[email protected]> Date: Mon Dec 9 14:05:43 2013 +0100 sip-4.14.7-2-x86_64 * Add python 3.x support * Split package diff --git a/source/xlib/sip/FrugalBuild b/source/xlib/sip/FrugalBuild index 7705837..59a8d67 100644 --- a/source/xlib/sip/FrugalBuild +++ b/source/xlib/sip/FrugalBuild @@ -5,10 +5,11 @@ options+=('asneeded') pkgname=sip pkgver=4.14.7 -pkgrel=1 -pkgdesc="SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries" +pkgrel=2 +pkgdesc="Python 2.x SIP bindings for C and C++ libraries" url="http://www.riverbankcomputing.co.uk/software/sip" depends=('python>=2.7') +rodepends=("$pkgname-tool") groups=('xlib') archs=('i686' 'x86_64') _F_sourceforge_dirname="pyqt" @@ -17,13 +18,40 @@ Finclude sourceforge sha1sums=('ee048f6db7257d1eae2d9d2e407c1657c8888023') options=('scriptlet') +subpkgs=("${subpkgs[@]}" "$pkgname-python3") +subdescs=("${subdescs[@]}" "Python 3.x SIP bindings for C and C++ libraries") +subdepends=("${subdepends[@]}" "python-3.0>=3.3.0") +subrodepends=("${subrodepends[@]}" "$pkgname-tool") +subgroups=("${subgroups[@]}" 'xlib-extra') +subarchs=("${subarchs[@]}" 'i686 x86_64') + +subpkgs=("${subpkgs[@]}" "$pkgname-tool") +subdescs=("${subdescs[@]}" "A tool that makes it easy to create Python bindings for C and C++ libraries") +subdepends=("${subdepends[@]}" "") +subrodepends=("${subrodepends[@]}" "") +subgroups=("${subgroups[@]}" 'xlib') +subarchs=("${subarchs[@]}" 'i686 x86_64') + + build() { - Fcd + cp -r $Fsrcdir/$pkgname-$pkgver $Fsrcdir/python3-$pkgname-$pkgver || Fdie + Fcd python3-$pkgname-$pkgver + python3 configure.py || Fdie + Fsed "CFLAGS = -pipe -O2 -w" "CFLAGS = $CFLAGS -w" sipgen/Makefile + Fsed "CFLAGS = -pipe -fPIC -O2 -w" "CFLAGS = $CFLAGS -fPIC -w" siplib/Makefile + Fbuild + + Fsplit $pkgname-tool /usr/bin + + Fsplit $pkgname-python3 /usr + + cd $Fsrcdir/$pkgname-$pkgver || Fdie python configure.py || Fdie Fsed "CFLAGS = -pipe -O2 -w" "CFLAGS = $CFLAGS -w" sipgen/Makefile Fsed "CFLAGS = -pipe -fPIC -O2 -w" "CFLAGS = $CFLAGS -fPIC -w" siplib/Makefile Fbuild + Frm /usr/bin } # optimization OK _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
