diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-20 17:11:44 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-20 17:11:44 -0300 |
commit | 90d82e34e89044fff6f52519577197f3ac48a5ad (patch) | |
tree | 2fb173b1b8493871a008abb85ba77e006427de54 /testing/py3-django-debug-toolbar | |
parent | e6480fa8f38c0cd3c62d004ecc8a90e60e918f62 (diff) | |
download | aports-90d82e34e89044fff6f52519577197f3ac48a5ad.tar.bz2 aports-90d82e34e89044fff6f52519577197f3ac48a5ad.tar.xz |
testing/py3-django-debug-toolbar: rename from py-django-debug-toolbar
Diffstat (limited to 'testing/py3-django-debug-toolbar')
-rw-r--r-- | testing/py3-django-debug-toolbar/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/py3-django-debug-toolbar/APKBUILD b/testing/py3-django-debug-toolbar/APKBUILD new file mode 100644 index 0000000000..8e152a9801 --- /dev/null +++ b/testing/py3-django-debug-toolbar/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=py-django-debug-toolbar +pkgver=1.11 +pkgrel=1 +pkgdesc="Configurable set of panels that display various debug information about the current request/response" +url="https://github.com/jazzband/django-debug-toolbar" +arch="noarch" +license="BSD-3-Clause" +depends="py-django py-sqlparse" +makedepends="python2-dev python3-dev py-setuptools" +options="!check" #no testsuite +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/django-debug-toolbar/archive/$pkgver.tar.gz" +builddir="$srcdir"/django-debug-toolbar-$pkgver + +build() { + cd "$builddir" + python2 setup.py --quiet build + python3 setup.py --quiet build +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir"/usr/bin +} + +check() { + cd "$builddir" + python2 tests.py + python3 tests.py +} + +_py2() { + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + local pyver="${1:6:1}" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py --quiet install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="8085b02fc25571e7b3bff02ff2bda8bec81a6000c6ed9e2aea10ec45eb1a3e5adf2ee95fcfbb0a11660fd716ebf2e35a9bdefbaf767b4afc732368a197857e62 py-django-debug-toolbar-1.11.tar.gz" |