diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2018-09-19 05:39:50 +0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-09-19 05:42:54 +0300 |
commit | 4ffd88e219ca12ba0be510fad746e800530c8cce (patch) | |
tree | 9a4cbd57785b4edea995942d6f5a1ecca414463c /testing | |
parent | d0e6771f7086b5f2971304288c8118be5d689635 (diff) | |
download | aports-4ffd88e219ca12ba0be510fad746e800530c8cce.tar.bz2 aports-4ffd88e219ca12ba0be510fad746e800530c8cce.tar.xz |
testing/py-tabulate: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-tabulate/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/py-tabulate/APKBUILD b/testing/py-tabulate/APKBUILD new file mode 100644 index 0000000000..9ea0ad5d2b --- /dev/null +++ b/testing/py-tabulate/APKBUILD @@ -0,0 +1,54 @@ +# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> +pkgname=py-tabulate +pkgver=0.8.2 +pkgrel=0 +pkgdesc="Pretty-print tabular data" +url="https://bitbucket.org/astanin/python-tabulate" +arch="noarch" +license="MIT" +makedepends="python2-dev python3-dev" +checkdepends="pytest py-nose" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="https://files.pythonhosted.org/packages/source/t/tabulate/tabulate-$pkgver.tar.gz" +builddir="$srcdir/${pkgname#py-}-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check + python2 setup.py test + python3 setup.py test +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir" +} + +_py2() { + 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="9e34fb84e16f4b2c1378c0f53c5ef803438fcae7bc1637ac8975f358a11653f641bba0ea19529858e8e62aa45bb5bccd3b6f0492fd2d9d9c9a3bf963dd1ac0a7 tabulate-0.8.2.tar.gz" |