diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-06 16:57:44 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-07 00:09:02 +0300 |
commit | b74efe17f970df8815aa914454b3d38ad3cc31a5 (patch) | |
tree | 690d215b91da7e9c1f08391a381935ac445b2a76 /testing/py3-sphinxcontrib-actdiag | |
parent | 5289c77d9e6af368755f891e35f8a0d0d94e669e (diff) | |
download | aports-b74efe17f970df8815aa914454b3d38ad3cc31a5.tar.bz2 aports-b74efe17f970df8815aa914454b3d38ad3cc31a5.tar.xz |
testing/py-sphinxcontrib-actdiag: drop python2
Diffstat (limited to 'testing/py3-sphinxcontrib-actdiag')
-rw-r--r-- | testing/py3-sphinxcontrib-actdiag/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/py3-sphinxcontrib-actdiag/APKBUILD b/testing/py3-sphinxcontrib-actdiag/APKBUILD new file mode 100644 index 0000000000..4813c19ecf --- /dev/null +++ b/testing/py3-sphinxcontrib-actdiag/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py3-sphinxcontrib-actdiag +_pkgname=sphinxcontrib-actdiag +pkgver=0.8.5 +pkgrel=2 +pkgdesc="Sphinx "actdiag" extension" +url="https://pypi.python.org/pypi/sphinxcontrib-actdiag" +arch="noarch" +license="BSD" +depends="py3-actdiag py3-sphinx" +makedepends="py3-setuptools" +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 +} + +replaces="py-sphinxcontrib-actdiag" # for backwards compatibility +provides="py-sphinxcontrib-actdiag=$pkgver-r$pkgrel" # for backwards compatibility + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +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" |