aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-gettext
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-20 18:03:27 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-08-03 08:03:06 +0000
commit837f7ed46a7e4d36306989c4f9d11be642003f15 (patch)
tree903ac48b308dfbf3e988c0e38d3c50cd61395662 /testing/py3-gettext
parentc73f9d9b63010d010368603bc4cbf3f18fbaaf96 (diff)
downloadaports-837f7ed46a7e4d36306989c4f9d11be642003f15.tar.bz2
aports-837f7ed46a7e4d36306989c4f9d11be642003f15.tar.xz
testing/py3-gettext: rename from py-gettext
Diffstat (limited to 'testing/py3-gettext')
-rw-r--r--testing/py3-gettext/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/py3-gettext/APKBUILD b/testing/py3-gettext/APKBUILD
new file mode 100644
index 0000000000..86548c2691
--- /dev/null
+++ b/testing/py3-gettext/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py-gettext
+_pkgname=gettext
+pkgver=4.0
+pkgrel=0
+pkgdesc="Python implementation of Gettext"
+url="https://github.com/hannosch/python-gettext"
+arch="noarch"
+license="GPL-3.0"
+makedepends="python2-dev py-setuptools python3-dev"
+checkdepends="py-tox py-six"
+subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
+source="$pkgname-$pkgver.tar.gz::https://github.com/hannosch/python-gettext/archive/$pkgver.tar.gz"
+builddir="$srcdir/${pkgname/py/python}-$pkgver"
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py check
+ python3 setup.py check
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python=$1
+ pkgdesc="$pkgdesc - $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ _py python2
+ replaces="$pkgname"
+}
+
+_py3() {
+ _py python3
+}
+
+sha512sums="b33786ddd32d5e6c31b062ea88131788f8ba68fcd40e2a519e433584b662f766fd866fc249bc77ae06174d133fbae63b0ef9acf45161ff7d79ceab893afde873 py-gettext-4.0.tar.gz"