diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-26 18:57:13 -0300 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-09-30 19:37:38 +0000 |
commit | e369c1fd7707a73f2c3e2b11b613198d9a4106de (patch) | |
tree | e51caca0341c1c1fda09e28b1a1552c125064838 /main | |
parent | a07b851a3049b76416dbadc3b33cc4751fdce9d2 (diff) | |
download | aports-e369c1fd7707a73f2c3e2b11b613198d9a4106de.tar.bz2 aports-e369c1fd7707a73f2c3e2b11b613198d9a4106de.tar.xz |
main/py3-yaml: drop py2
Closes !169
Diffstat (limited to 'main')
-rw-r--r-- | main/py3-yaml/APKBUILD | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/main/py3-yaml/APKBUILD b/main/py3-yaml/APKBUILD index 9b3a974182..25944a4dda 100644 --- a/main/py3-yaml/APKBUILD +++ b/main/py3-yaml/APKBUILD @@ -1,19 +1,21 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-yaml +pkgname=py3-yaml _pkgname=PyYAML pkgver=5.1.2 -pkgrel=0 -pkgdesc="Python bindings for YAML" +pkgrel=1 +pkgdesc="Python3 bindings for YAML" url="http://pyyaml.org" arch="all" license="MIT" -makedepends="python2-dev python3-dev yaml-dev cython2 cython3" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +makedepends="python3-dev yaml-dev cython3" source="$_pkgname-$pkgver.tar.gz::https://github.com/yaml/pyyaml/archive/$pkgver.tar.gz" builddir="$srcdir/pyyaml-$pkgver" +replaces="py-yaml" # Backwards compatibility +provides="py-yaml=$pkgver-r$pkgrel" # Backwards compatibility + prepare() { cd "$builddir" default_prepare @@ -22,36 +24,17 @@ prepare() { build() { cd "$builddir" - python2 setup.py --with-libyaml build python3 setup.py --with-libyaml 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)" - 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="7bc3dceadcfd512ede67581625887d00822464f20d3b646904f4a73afce8cf3b9766829c6004b626c31757edf8e2eedc27e60d96bee13afa68d3296a8a7f33bb PyYAML-5.1.2.tar.gz" |