diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-06 02:42:52 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-06 02:42:52 +0300 |
commit | bc2bd4a88d2b0f857deba2f61b7b125adf8566d9 (patch) | |
tree | e7567c14f6f998ddc7bad746314669f01e6c7b13 /testing/py3-sphinxcontrib-httpdomain | |
parent | ff4061c927e25323e568c1ff2b5d9be2548f5148 (diff) | |
download | aports-bc2bd4a88d2b0f857deba2f61b7b125adf8566d9.tar.bz2 aports-bc2bd4a88d2b0f857deba2f61b7b125adf8566d9.tar.xz |
testing/py-sphinxcontrib-httpdomain: upgrade to python3
Diffstat (limited to 'testing/py3-sphinxcontrib-httpdomain')
-rw-r--r-- | testing/py3-sphinxcontrib-httpdomain/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/py3-sphinxcontrib-httpdomain/APKBUILD b/testing/py3-sphinxcontrib-httpdomain/APKBUILD new file mode 100644 index 0000000000..9db9070c75 --- /dev/null +++ b/testing/py3-sphinxcontrib-httpdomain/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py3-sphinxcontrib-httpdomain +_pkgname=sphinxcontrib-httpdomain +pkgver=1.3.0 +pkgrel=0 +pkgdesc="Sphinx httpdomain extension" +url="https://pypi.python.org/pypi/sphinxcontrib-httpdomain" +arch="noarch" +license="BSD" +depends="py3-sphinx" +depends_dev="" +makedepends="py3-setuptools" +install="" +subpackages="" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver + +replaces="py-sphinxcontrib-httpdomain" # for backwards compatibility +provides="py-sphinxcontrib-httpdomain=$pkgver-r$pkgrel" # for backwards compatibility + +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 +} + +build() { + cd "$_builddir" + python3 setup.py build || return 1 +} + +package() { + cd "$_builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="ad7ea42bd4c7c0ee57b1cb25bbf24aab sphinxcontrib-httpdomain-1.3.0.tar.gz" +sha256sums="ba8fbe82eddc96cfa9d7b975b0422801a14ace9d7e051b8b2c725b92ea6137b5 sphinxcontrib-httpdomain-1.3.0.tar.gz" +sha512sums="2f6df6375337d651f4ed26c2aaf20929a4b31fae881ebc68fcab5cd085f52661c00a943872a9e7199d5af893b3f77434346fd493925cd148681da048aead20af sphinxcontrib-httpdomain-1.3.0.tar.gz" |