diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-07 22:05:05 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-12-27 09:51:23 +0200 |
commit | 60da24348200d57ce63b65914f9ee695f4d3680b (patch) | |
tree | 33c347d572f180bcb5a7e63ce52242a3cdf4288a /testing/py-sphinxcontrib-actdiag | |
parent | 737152b8e224197e1c2a763d75f3609cda891cf7 (diff) | |
download | aports-60da24348200d57ce63b65914f9ee695f4d3680b.tar.bz2 aports-60da24348200d57ce63b65914f9ee695f4d3680b.tar.xz |
testing/py-sphinxcontrib-actdiag: upgrade to 0.8.5 and enable py3
Diffstat (limited to 'testing/py-sphinxcontrib-actdiag')
-rw-r--r-- | testing/py-sphinxcontrib-actdiag/APKBUILD | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/testing/py-sphinxcontrib-actdiag/APKBUILD b/testing/py-sphinxcontrib-actdiag/APKBUILD index ac8e270f81..bb1f236597 100644 --- a/testing/py-sphinxcontrib-actdiag/APKBUILD +++ b/testing/py-sphinxcontrib-actdiag/APKBUILD @@ -2,23 +2,21 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-sphinxcontrib-actdiag _pkgname=sphinxcontrib-actdiag -pkgver=0.8.1 +pkgver=0.8.5 pkgrel=0 pkgdesc="Sphinx "actdiag" extension" url="https://pypi.python.org/pypi/sphinxcontrib-actdiag" arch="noarch" license="BSD" -depends="python2 py-sphinx py-actdiag" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +depends="py-sphinx py-actdiag" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_builddir="$srcdir"/$_pkgname-$pkgver prepare() { local i - cd "$_builddir" + cd "$builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; @@ -27,15 +25,36 @@ prepare() { } 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" } -md5sums="651e6ca4e066f38cff80746fb727a105 sphinxcontrib-actdiag-0.8.1.tar.gz" -sha256sums="e48677d2d3089235c9df93bae0ad0aa567855a183f07dce8d1b5c69c05aa3301 sphinxcontrib-actdiag-0.8.1.tar.gz" -sha512sums="9bc98df11d0a67da4b4e254af34e8d3af66b6c016bc70539c74f39cf2822c1991a9842d3f9ac8f789ac324a8889346d58f9277b5becd34902942efe1ba32000d sphinxcontrib-actdiag-0.8.1.tar.gz" +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/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="4d66d548b40e39bb7039df268b08f3fb sphinxcontrib-actdiag-0.8.5.tar.gz" +sha256sums="da3ba0fdfaaa0b855860ee94e97045249ddc0d4040d127247210d46acf068786 sphinxcontrib-actdiag-0.8.5.tar.gz" +sha512sums="3e526e675a4e17bff5c29f56f80f3feeadb0e408a818dc97e7a0c9acfcb70bc50a5a44d38bd40347ff8709d58deff824fb47caf89a8eeacce5cce9659651a701 sphinxcontrib-actdiag-0.8.5.tar.gz" |