aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-10 10:27:33 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-12-27 10:50:45 +0200
commit23e867078a9b4a2afc13d5d3e6754eb3f0d1f8da (patch)
treeffcc0269fae81f280d0047d97241d62211f1e39a
parentb823d370c060cb86f09f299c5240c86ce1756e1c (diff)
downloadaports-23e867078a9b4a2afc13d5d3e6754eb3f0d1f8da.tar.bz2
aports-23e867078a9b4a2afc13d5d3e6754eb3f0d1f8da.tar.xz
testing/py-blinker: enable py3
-rw-r--r--testing/py-blinker/APKBUILD44
1 files changed, 24 insertions, 20 deletions
diff --git a/testing/py-blinker/APKBUILD b/testing/py-blinker/APKBUILD
index 011e005c11..ceac9845e8 100644
--- a/testing/py-blinker/APKBUILD
+++ b/testing/py-blinker/APKBUILD
@@ -3,37 +3,41 @@
pkgname=py-blinker
_pkgname=blinker
pkgver=1.4
-pkgrel=0
+pkgrel=1
pkgdesc="Fast, simple object-to-object and broadcast signalling"
url="http://pypi.python.org/pypi/blinker"
arch="noarch"
license="MIT"
-depends="python2"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
+makedepends="python2-dev py-setuptools python3-dev"
+subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-
-_builddir="$srcdir"/$_pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py build || return 1
+ python3 setup.py build || return 1
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python=$1
+ pkgdesc="$pkgdesc - $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ _py python2
+ replaces="$pkgname"
+}
+
+_py3() {
+ _py python3
}
md5sums="8b3722381f83c2813c52de3016b68d33 blinker-1.4.tar.gz"