diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-08-17 17:14:13 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-08-17 17:37:27 +0200 |
commit | b92e6ffad81988f82a5624708e2edb0cae4d6447 (patch) | |
tree | 5a15376950a7c95aeb0544ade69630c7c000a17b /main/py-sphinxcontrib-websupport | |
parent | 1c7b6a297fbc3173b480c84a755d0094a45d968c (diff) | |
download | aports-b92e6ffad81988f82a5624708e2edb0cae4d6447.tar.bz2 aports-b92e6ffad81988f82a5624708e2edb0cae4d6447.tar.xz |
main/py-sphinxcontrib-websupport: move from testing
Needed in main because it is required by main/py-sphinx.
Diffstat (limited to 'main/py-sphinxcontrib-websupport')
-rw-r--r-- | main/py-sphinxcontrib-websupport/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/main/py-sphinxcontrib-websupport/APKBUILD b/main/py-sphinxcontrib-websupport/APKBUILD new file mode 100644 index 0000000000..7874e51ee0 --- /dev/null +++ b/main/py-sphinxcontrib-websupport/APKBUILD @@ -0,0 +1,54 @@ +# Maintainer: André Klitzing <aklitzing@gmail.com> +pkgname=py-sphinxcontrib-websupport +_pkgname=sphinxcontrib-websupport +pkgver=1.0.1 +pkgrel=2 +pkgdesc="Sphinx API for Web Apps" +url="https://pypi.python.org/pypi/sphinxcontrib-websupport" +arch="noarch" +license="BSD" +depends="py-sphinx" +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 + +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check +} + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +_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" +} + + +sha512sums="67807b2505e063639163b020f0e62469b0c2838c303516cce9a8d90181cc7b8a10d76532adb1267556d40f95966efc20ec9f8ee1a6731056bda827a6f97f40ec sphinxcontrib-websupport-1.0.1.tar.gz" |