aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-20 08:28:57 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-20 08:38:31 +0100
commit87cc1c4e378008a0b2e703f67c316a48fe55c274 (patch)
tree26f0fc3131a4b7e1cb552084ff54402b3574485a
parentd612b73e9236426b80aa006b47883b425c755dec (diff)
downloadaports-87cc1c4e378008a0b2e703f67c316a48fe55c274.tar.bz2
aports-87cc1c4e378008a0b2e703f67c316a48fe55c274.tar.xz
main/py3-roman: drop python2
-rw-r--r--main/py3-roman/APKBUILD38
1 files changed, 9 insertions, 29 deletions
diff --git a/main/py3-roman/APKBUILD b/main/py3-roman/APKBUILD
index f30548285e..4c854067fe 100644
--- a/main/py3-roman/APKBUILD
+++ b/main/py3-roman/APKBUILD
@@ -1,51 +1,31 @@
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
-pkgname=py-roman
+pkgname=py3-roman
_pkgname=roman
pkgver=3.2
-pkgrel=1
+pkgrel=2
pkgdesc="Integer to Roman numerals converter"
url="https://pypi.python.org/pypi/roman"
arch="noarch"
license="Python-2.0"
-depends=""
-makedepends="python2-dev python3-dev py-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-roman" # Backwards compatibility
+provides="py-roman=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python3 setup.py build
}
check() {
- 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="142904551745c8b7874d52c8d04f483b0c18b18ba8bc3d3a51fcf509e09b3a3f8a28d0b88bdd8282957bf3d698b1bab86de7fb4808cde9b0e5cfb910deca35ab roman-3.2.tar.gz"