aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-19 14:04:26 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-19 15:35:37 +0100
commitdf873cebffb7c22fa701e267470620a99d4ea290 (patch)
tree61a35f1df2faf79d94de14488f7972a8a3de7281
parent77aca1031e4c1dae86cf3a329aabebb3e3c87ec8 (diff)
downloadaports-df873cebffb7c22fa701e267470620a99d4ea290.tar.gz
aports-df873cebffb7c22fa701e267470620a99d4ea290.tar.bz2
aports-df873cebffb7c22fa701e267470620a99d4ea290.tar.xz
main/py3-babel: drop python2
-rw-r--r--main/py3-babel/APKBUILD43
1 files changed, 11 insertions, 32 deletions
diff --git a/main/py3-babel/APKBUILD b/main/py3-babel/APKBUILD
index 9b6a5afe25..becf7fa9ff 100644
--- a/main/py3-babel/APKBUILD
+++ b/main/py3-babel/APKBUILD
@@ -1,48 +1,27 @@
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
-pkgname=py-babel
+pkgname=py3-babel
_pkgname=Babel
pkgver=2.7.0
-pkgrel=1
-pkgdesc="Python i18n tool"
+pkgrel=2
+pkgdesc="Python3 i18n tool"
url="http://babel.pocoo.org/"
arch="noarch"
-license="BSD"
-depends="py-tz"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+license="BSD-3-Clause"
+depends="python3 py3-tz"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-babel" # Backwards compatibility
+provides="py-babel=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python3 setup.py build
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/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="96314c7b26f6915a825e0344fa06e4f1d9a71b97a52b16f2f696c2e81c69318974547620135912b11edb95668a717ec49f1be68eef5a4753092d8e4cdc39a1e5 Babel-2.7.0.tar.gz"