diff options
author | TBK <tbk@jjtc.dk> | 2018-04-05 15:46:11 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-04-06 05:10:34 +0000 |
commit | ed1350d09fdb7795eaa30cb8797976cc33912d79 (patch) | |
tree | 8922883043d1c36969694ce55e2be9b3951b9c9d | |
parent | 63fe1f7b6b6a571039ca4faa079875a9587ee0e2 (diff) | |
download | aports-ed1350d09fdb7795eaa30cb8797976cc33912d79.tar.bz2 aports-ed1350d09fdb7795eaa30cb8797976cc33912d79.tar.xz |
community/py-more-itertools: new aport
-rw-r--r-- | community/py-more-itertools/APKBUILD | 53 | ||||
-rwxr-xr-x[-rw-r--r--] | community/tlp/tlp.initd | 0 |
2 files changed, 53 insertions, 0 deletions
diff --git a/community/py-more-itertools/APKBUILD b/community/py-more-itertools/APKBUILD new file mode 100644 index 0000000000..14c649ad77 --- /dev/null +++ b/community/py-more-itertools/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: TBK <alpine@jjtc.eu> +# Maintainer: TBK <alpine@jjtc.eu> +pkgname=py-more-itertools +_pkgname=more-itertools +pkgver=4.1.0 +pkgrel=0 +pkgdesc="More routines for operating on iterables, beyond itertools." +url="https://pypi.python.org/pypi/more-itertools" +arch="noarch" +license="MIT" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$_pkgname-$pkgver.tar.gz::https://github.com/erikrose/more-itertools/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc ${python#python}" + depends="$python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + replaces="$pkgname" + depends="py2-six" + _py python2 +} + +_py3() { + depends="py3-six" + _py python3 +} + +sha512sums="7992e132bcd72696bc0acb19b94126340988b42a0db1aad9920788d66f79ce20bafc63af3b48db0a7690d5d92dd470a9343bad4f0d4716a2419956dcc3d04505 more-itertools-4.1.0.tar.gz" diff --git a/community/tlp/tlp.initd b/community/tlp/tlp.initd index 05b4c3b975..05b4c3b975 100644..100755 --- a/community/tlp/tlp.initd +++ b/community/tlp/tlp.initd |