aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-alabaster/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-07 20:46:05 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-11-08 17:40:39 +0100
commit9d15302d035422caa87dfd6f9a699e086e8c35aa (patch)
treed4c25d5c96ddb396acf562c106f1b2bc691ef9ba /main/py-alabaster/APKBUILD
parent7202ca0458afe3ce0115d03f3abc2957c6534225 (diff)
downloadaports-9d15302d035422caa87dfd6f9a699e086e8c35aa.tar.bz2
aports-9d15302d035422caa87dfd6f9a699e086e8c35aa.tar.xz
main/py-alabaster: upgrade to 0.7.9 and add py2/py3 subpackages
Diffstat (limited to 'main/py-alabaster/APKBUILD')
-rw-r--r--main/py-alabaster/APKBUILD56
1 files changed, 32 insertions, 24 deletions
diff --git a/main/py-alabaster/APKBUILD b/main/py-alabaster/APKBUILD
index f1b7c124c1..00f76e485f 100644
--- a/main/py-alabaster/APKBUILD
+++ b/main/py-alabaster/APKBUILD
@@ -1,40 +1,48 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer:
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-alabaster
-pkgver=0.7.8
+_pkgname=alabaster
+pkgver=0.7.9
pkgrel=0
pkgdesc="Modified Kr Sphinx doc theme"
url="https://github.com/bitprophet/alabaster"
arch="noarch"
license="BSD"
depends=""
-depends_dev=""
-makedepends="$depends_dev python2-dev py-setuptools"
-install=""
-subpackages=""
-source="alabaster-$pkgver.tar.gz::https://github.com/bitprophet/alabaster/archive/$pkgver.tar.gz"
-
-_builddir="$srcdir"/alabaster-$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
-}
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/bitprophet/$_pkgname/archive/$pkgver.tar.gz"
+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"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
}
-md5sums="b551009d679f0cbfa7d12e75e76c86a9 alabaster-0.7.8.tar.gz"
-sha256sums="ebfea26e1a6d459432d995717316ab786ebc8bd43d859228e5bea31b3ebd2a32 alabaster-0.7.8.tar.gz"
-sha512sums="62c9a871c781bde8f752d9bbe3fba1c4574b5c6a45e3d6ebc12db81a461cc073490e781900765b731d3991414e7f09aa54c7d85e5c8cfdb94a17e12593671f70 alabaster-0.7.8.tar.gz"
+md5sums="efcded08511153c141385299a0121f5a alabaster-0.7.9.tar.gz"
+sha256sums="fcabfbc1ee73ce31e5b786468adaafb11ef1c50e003989bdf3dcdfbc06ba5624 alabaster-0.7.9.tar.gz"
+sha512sums="33167bac954fa86a9820e158ad8955c25a6057ce82f1178f0145a3487244772b82c3001ed9fd7a13ddc680889986adbc9c178df2892256b5977b848f101366c5 alabaster-0.7.9.tar.gz"