aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-sip
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-02-13 09:33:41 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-02-13 09:33:41 +0000
commitdee82aa931b11d8d6593c0f144eb971d7de7772a (patch)
treeb61323d2332b6de49eabf6fa819d767d1cf1410e /community/py-sip
parent4f94de892061cdfc850ae75f2ec4431021cecb6a (diff)
downloadaports-dee82aa931b11d8d6593c0f144eb971d7de7772a.tar.bz2
aports-dee82aa931b11d8d6593c0f144eb971d7de7772a.tar.xz
community/py-sip: fixed the build for PyQT5.sip and sip binary
Diffstat (limited to 'community/py-sip')
-rw-r--r--community/py-sip/APKBUILD21
1 files changed, 9 insertions, 12 deletions
diff --git a/community/py-sip/APKBUILD b/community/py-sip/APKBUILD
index 71718d8809..c1a5d2706a 100644
--- a/community/py-sip/APKBUILD
+++ b/community/py-sip/APKBUILD
@@ -3,13 +3,14 @@
pkgname=py-sip
_pkgname=sip
pkgver=4.19.14
-pkgrel=0
+pkgrel=1
pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
url="http://www.riverbankcomputing.com/software/sip/"
arch="all"
license="custom:sip"
+makedocdepends="py-sphinx"
makedepends="python2-dev python3-dev"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3 $pkgname-dev"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3 $pkgname-dev::noarch $pkgname-doc"
source="https://www.riverbankcomputing.com/static/Downloads/${_pkgname}/${_pkgname}-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
@@ -28,20 +29,16 @@ _build() {
local python="$1"
export PYTHON=$python
cd "$srcdir"/$python
- local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h.in)
- $python configure.py
- make CC="${CC:-gcc}" \
- CXX="${CXX:-g++}" \
- CFLAGS="$CFLAGS -fPIC" \
- CXXFLAGS="$CXXFLAGS"
+ $python configure.py --sip-module PyQt5.sip
+ make
}
package() {
- mkdir -p "$pkgdir"
+ mkdir -p "$pkgdir"
}
_py2() {
- replaces="$pkgname"
+ replaces="$pkgname"
_py python2
}
@@ -53,12 +50,12 @@ _py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
+
cd "$srcdir/$python"
make DESTDIR="$pkgdir" install
- chmod +x "$pkgdir"/usr/bin/sip
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/${python}.* "$subpkgdir"/usr/lib/
- install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
}
sha512sums="afde261331f38eac863d8cea0e343649f460f0b9a603d7fe91f14583904ea4b488bbd88d20fad5c985c43c6c1683fffee38676d94831ac8f2de40d9ed4d0423e sip-4.19.14.tar.gz"