diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-20 19:28:13 -0300 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-08-03 08:03:06 +0000 |
commit | 4ebe0e4a948d368659db1a71e206093711f95daa (patch) | |
tree | 9f6d31dd8b292d6d58bb9771e2445c2aacee4d7d /testing/py3-gettext | |
parent | 837f7ed46a7e4d36306989c4f9d11be642003f15 (diff) | |
download | aports-4ebe0e4a948d368659db1a71e206093711f95daa.tar.bz2 aports-4ebe0e4a948d368659db1a71e206093711f95daa.tar.xz |
testing/py3-gettext: switch to py3
Diffstat (limited to 'testing/py3-gettext')
-rw-r--r-- | testing/py3-gettext/APKBUILD | 41 |
1 files changed, 11 insertions, 30 deletions
diff --git a/testing/py3-gettext/APKBUILD b/testing/py3-gettext/APKBUILD index 86548c2691..2989d116d3 100644 --- a/testing/py3-gettext/APKBUILD +++ b/testing/py3-gettext/APKBUILD @@ -1,50 +1,31 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py-gettext +pkgname=py3-gettext _pkgname=gettext pkgver=4.0 -pkgrel=0 +pkgrel=1 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" +license="GPL-3.0-or-later" +makedepends="py3-setuptools" +checkdepends="py3-tox py3-six" source="$pkgname-$pkgver.tar.gz::https://github.com/hannosch/python-gettext/archive/$pkgver.tar.gz" -builddir="$srcdir/${pkgname/py/python}-$pkgver" +builddir="$srcdir/python-$_pkgname-$pkgver" + +replaces="py-gettext" # Backwards compatibility +provides="py-gettext=$pkgver-r$pkgrel" # Backwards compatibility 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 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="b33786ddd32d5e6c31b062ea88131788f8ba68fcd40e2a519e433584b662f766fd866fc249bc77ae06174d133fbae63b0ef9acf45161ff7d79ceab893afde873 py-gettext-4.0.tar.gz" +sha512sums="b33786ddd32d5e6c31b062ea88131788f8ba68fcd40e2a519e433584b662f766fd866fc249bc77ae06174d133fbae63b0ef9acf45161ff7d79ceab893afde873 py3-gettext-4.0.tar.gz" |