aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-06-11 23:40:06 +0300
committerprspkt <prspkt@protonmail.com>2019-06-12 23:49:47 +0300
commit8d1c6b33391774a64430413805a34d6bcd616802 (patch)
tree6e1280fa5fa00978f2616bf000add7eec02a3e9d
parent7bc4bdd42ba99561aea3e924cb13a43ce48a8fec (diff)
downloadaports-8d1c6b33391774a64430413805a34d6bcd616802.tar.bz2
aports-8d1c6b33391774a64430413805a34d6bcd616802.tar.xz
testing/py-pyphen: drop python2
-rw-r--r--testing/py3-pyphen/APKBUILD (renamed from testing/py-pyphen/APKBUILD)34
1 files changed, 7 insertions, 27 deletions
diff --git a/testing/py-pyphen/APKBUILD b/testing/py3-pyphen/APKBUILD
index 27c5574572..fa7f770275 100644
--- a/testing/py-pyphen/APKBUILD
+++ b/testing/py3-pyphen/APKBUILD
@@ -1,6 +1,6 @@
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Drew DeVault <sir@cmpwn.com>
-pkgname=py-pyphen
+pkgname=py3-pyphen
_pkgname=Pyphen
pkgver=0.9.5
pkgrel=1
@@ -8,44 +8,24 @@ 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"
-makedepends="python2-dev python3-dev py2-setuptools py3-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="python3"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-pyphen" # Backwards compatibility
+replaces="py-pyphen=$pkgver-r$pkgrel" # Backwards compatibility
+
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"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="15b9a29517df2b873b5b8d4739d8fa48a09ab199ab9246c7a4fd25c46253a74a18a88fd9484978476b3b1c8d88fed7729382b9dbe4f425724fe54bcd6227de96 Pyphen-0.9.5.tar.gz"