diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-07 22:09:46 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-12-27 09:51:10 +0200 |
commit | 737152b8e224197e1c2a763d75f3609cda891cf7 (patch) | |
tree | 6528613eef004245d89615544720e32bb5f470bb /testing/py-sphinxcontrib-blockdiag/APKBUILD | |
parent | f388ce5f9f0f7d3f9db7a78c96dfd97b806c5767 (diff) | |
download | aports-737152b8e224197e1c2a763d75f3609cda891cf7.tar.bz2 aports-737152b8e224197e1c2a763d75f3609cda891cf7.tar.xz |
testing/py-sphinxcontrib-blockdiag: upgrade to 1.5.5 and enable py3
Diffstat (limited to 'testing/py-sphinxcontrib-blockdiag/APKBUILD')
-rw-r--r-- | testing/py-sphinxcontrib-blockdiag/APKBUILD | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/testing/py-sphinxcontrib-blockdiag/APKBUILD b/testing/py-sphinxcontrib-blockdiag/APKBUILD index 57f944d0c9..6efd53c92f 100644 --- a/testing/py-sphinxcontrib-blockdiag/APKBUILD +++ b/testing/py-sphinxcontrib-blockdiag/APKBUILD @@ -2,23 +2,21 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-sphinxcontrib-blockdiag _pkgname=sphinxcontrib-blockdiag -pkgver=1.3.0 +pkgver=1.5.5 pkgrel=0 pkgdesc="Sphinx "blockdiag" extension" url="https://pypi.python.org/pypi/sphinxcontrib-blockdiag" arch="noarch" license="BSD" -depends="python2 py-sphinx py-blockdiag" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +depends="py-sphinx py-blockdiag" +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,37 @@ 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="522ad3e313c6b080ad6cba70f702b694 sphinxcontrib-blockdiag-1.3.0.tar.gz" -sha256sums="23ebe09da94591afefdb529ab345e23040713770fd900595d588149c1ad09451 sphinxcontrib-blockdiag-1.3.0.tar.gz" -sha512sums="514d4571d7a171f6167b5e2f229c0762cdc9c2b28065b54788eab390ce4130bb8f3790010b1720c04d7ae559b2a5fa4bbceb2dcdfc8b7aad69abc1723ab12690 sphinxcontrib-blockdiag-1.3.0.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="a867f4f392d2c47816b958bfba034c6e sphinxcontrib-blockdiag-1.5.5.tar.gz" +sha256sums="7cdff966d8f372b9536374954314a6cf4280e0e48bc2321a4f25cc7f2114f8f0 sphinxcontrib-blockdiag-1.5.5.tar.gz" +sha512sums="8633a0802cf61c6b3af06032f1e0db663004bd62cb6c579407aa44a29a2d37ae03f704775747e8214649d2f9c25d2505f65003a1a0b337e6e3f9a2674a0bf647 sphinxcontrib-blockdiag-1.5.5.tar.gz" |