diff options
author | Stefan Wagner <stw@bit-strickerei.de> | 2018-11-17 17:49:45 +0100 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-11-18 00:58:10 +0200 |
commit | 4bbce7c82366947a55a0ff386379bfcb3a0d9764 (patch) | |
tree | 36755a2b508fdffd965c785cd8182ae65edbb5c6 /testing/py-pyphen | |
parent | a727cd822d12852a5d7892836389ace7705b04e1 (diff) | |
download | aports-4bbce7c82366947a55a0ff386379bfcb3a0d9764.tar.bz2 aports-4bbce7c82366947a55a0ff386379bfcb3a0d9764.tar.xz |
testing/py-pyphen: upgrade to 0.9.5
Diffstat (limited to 'testing/py-pyphen')
-rw-r--r-- | testing/py-pyphen/APKBUILD | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/testing/py-pyphen/APKBUILD b/testing/py-pyphen/APKBUILD index 6309fcca94..b96e388039 100644 --- a/testing/py-pyphen/APKBUILD +++ b/testing/py-pyphen/APKBUILD @@ -1,27 +1,52 @@ # Contributor: William Pitcock <nenolod@dereferenced.org> +# Contributor: Stefan Wagner <stw@bit-strickerei.de> # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=py-pyphen _pkgname=Pyphen -pkgver=0.9.4 +pkgver=0.9.5 pkgrel=0 pkgdesc="python-based dictionary hyphenator library" url="http://www.pyphen.org/" arch="noarch" license="GPL-2.0-or-later MPL LGPL-2.0-or-later" -depends="python2" -makedepends="python2-dev py-setuptools" -source="https://files.pythonhosted.org/packages/source/P/Pyphen/Pyphen-$pkgver.tar.gz" - +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" 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" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } -sha512sums="b48dcf02c5cdf5d7ee6d6968644958af9f31fba046612016d9ae1b8cfe44d438fe769592961f93f3342cc3f3af2dfc6cd40bbfe1be67e59de9a352c33f102917 Pyphen-0.9.4.tar.gz" +sha512sums="15b9a29517df2b873b5b8d4739d8fa48a09ab199ab9246c7a4fd25c46253a74a18a88fd9484978476b3b1c8d88fed7729382b9dbe4f425724fe54bcd6227de96 Pyphen-0.9.5.tar.gz" |