diff options
author | prspkt <prspkt@protonmail.com> | 2019-02-15 08:58:12 +0200 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-02-23 15:00:50 +0200 |
commit | 6119108b7718de1379dc62a48bd07f916020cc53 (patch) | |
tree | 706f047fd4cc89f38e9924a8a619f387413198b4 | |
parent | 3a447c06cf2c4f0da71617eb6b3155dcdc904430 (diff) | |
download | aports-6119108b7718de1379dc62a48bd07f916020cc53.tar.bz2 aports-6119108b7718de1379dc62a48bd07f916020cc53.tar.xz |
community/py-jellyfish: drop python2 support
As of v0.7.0, upstream no longer provide support for python2.
-rw-r--r-- | community/py3-jellyfish/APKBUILD (renamed from community/py-jellyfish/APKBUILD) | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/community/py-jellyfish/APKBUILD b/community/py3-jellyfish/APKBUILD index 9295d6c247..3b9a1eec69 100644 --- a/community/py-jellyfish/APKBUILD +++ b/community/py3-jellyfish/APKBUILD @@ -1,45 +1,27 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Carlo Landmeter <clandmeter@gmail.com> -pkgname=py-jellyfish -_pkgname=${pkgname#py-} +pkgname=py3-jellyfish +_pkgname=jellyfish pkgver=0.6.1 pkgrel=0 pkgdesc="Python library for approximate and phonetic string matching" url="https://github.com/jamesturk/jellyfish" arch="all" license="BSD-2-Clause" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +replaces="py-jellyfish" # for backwards compatibility +provides="py-jellyfish=$pkgver-r$pkgrel" # for backwards compatibility +makedepends="python3-dev py3-setuptools" 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 } 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" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="2c694ed48daee7aa893121fefc2a4bcea75ff84f0f8d137ebfc1676e769cd05db1268b20a2163a4f8d4a860b69f9b65afa6fede5aba4770d89cf261827c44380 jellyfish-0.6.1.tar.gz" |