diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-07 21:10:40 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-08 22:55:59 +0100 |
commit | 3bbf3f06ed225e1d5286714de8bd4de2091ee26f (patch) | |
tree | 013371bd0294226c443a222c41ccf9d7681e7fcd | |
parent | fff532a788f8ac245ba882b70ff63e7327873216 (diff) | |
download | aports-3bbf3f06ed225e1d5286714de8bd4de2091ee26f.tar.bz2 aports-3bbf3f06ed225e1d5286714de8bd4de2091ee26f.tar.xz |
main/py-snowballstemmer: upgrade to 1.2.1, add py2/py3 subpackages
-rw-r--r-- | main/py-snowballstemmer/APKBUILD | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/main/py-snowballstemmer/APKBUILD b/main/py-snowballstemmer/APKBUILD index 384d1b28ca..ad62019ffb 100644 --- a/main/py-snowballstemmer/APKBUILD +++ b/main/py-snowballstemmer/APKBUILD @@ -1,28 +1,48 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-snowballstemmer _pkgname=snowballstemmer -pkgver=1.2.0 +pkgver=1.2.1 pkgrel=0 pkgdesc="Snowball stemming library collection for Python" url="https://github.com/shibukawa/snowball_py" arch="noarch" license="BSD" depends="" -makedepends="python2-dev" +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 || return 1 + python3 setup.py build || return 1 } 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" || return 1 + $python setup.py install --prefix=/usr --root="$subpkgdir" } -md5sums="51f2ef829db8129dd0f2354f0b209970 snowballstemmer-1.2.0.tar.gz" -sha256sums="6d54f350e7a0e48903a4e3b6b2cabd1b43e23765fbc975065402893692954191 snowballstemmer-1.2.0.tar.gz" -sha512sums="3359657867b9478bb58e6cc67a08212a490d5af07fed7098871b1e6a59def0031bd0c2a846cc9a0d70c94c64ba4d2ccb2f41afedde61d4a7235d26f68374bd02 snowballstemmer-1.2.0.tar.gz" +md5sums="643b019667a708a922172e33a99bf2fa snowballstemmer-1.2.1.tar.gz" +sha256sums="919f26a68b2c17a7634da993d91339e288964f93c274f1343e3bbbe2096e1128 snowballstemmer-1.2.1.tar.gz" +sha512sums="09f860f383d84d12a83c87ef6654fba4ac10bca07e8d2ce88dd428c72754110d56a4b698e125a18818699a289455bf61cf67ea68e349ee8a12d6dfff0a3fbed9 snowballstemmer-1.2.1.tar.gz" |