diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-05-03 03:09:25 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-18 14:56:53 -0300 |
commit | 2ac0e81f71abb394c89fe700b7014f31fb5da271 (patch) | |
tree | a537ad4d4b5ca10acb4ea02ed17816ad6eaad318 | |
parent | c9782251778d2c53d5122c71694621b6a9aee6df (diff) | |
download | aports-2ac0e81f71abb394c89fe700b7014f31fb5da271.tar.gz aports-2ac0e81f71abb394c89fe700b7014f31fb5da271.tar.bz2 aports-2ac0e81f71abb394c89fe700b7014f31fb5da271.tar.xz |
testing/py3-compdb: upgrade to 0.2.0
- Switch to tagged releases
- Enable tests
- Drop py2- and py- versions
- Add replaces for py- version
- Add missing dependency on py3-setuptools
- Lighten load on makedepends
-rw-r--r-- | testing/py3-compdb/APKBUILD | 50 |
1 files changed, 17 insertions, 33 deletions
diff --git a/testing/py3-compdb/APKBUILD b/testing/py3-compdb/APKBUILD index 3179aadd80..deda2bf8b8 100644 --- a/testing/py3-compdb/APKBUILD +++ b/testing/py3-compdb/APKBUILD @@ -1,48 +1,32 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> # Contributor: Orson Teodoro <orsonteodoro@hotmail.com> # Maintainer: Orson Teodoro <orsonteodoro@hotmail.com> -pkgname=py-compdb -_pkgname=${pkgname#py-*} -pkgver=0_git20180122 -pkgrel=1 +pkgname=py3-compdb +_pkgname=${pkgname#py3-*} +pkgver=0.2.0 +pkgrel=0 pkgdesc="The compilation database Swiss army knife" url="https://github.com/Sarcasm/compdb" arch="noarch" license="MIT" -makedepends="python3-dev py-setuptools" -subpackages="$pkgname-doc py3-${pkgname#py-}:py3 py2-${pkgname#py-}:py2" -options="!check" -_gitrev="7a77fec75c8c562ef6c5046e6b0fe9f944ad5e38" -source="$pkgname-$pkgver.zip::https://github.com/Sarcasm/$_pkgname/archive/$_gitrev.zip" -builddir="$srcdir/"$_pkgname-$_gitrev +depends="py3-setuptools" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/Sarcasm/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/"$_pkgname-$pkgver +replaces="py-compdb" # Backwards compat build() { - cd "$builddir" - python2 setup.py build + python3 setup.py build +} + +check() { + python3 setup.py test } package() { - cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" install -d "$pkgdir"/usr/share/doc/$_pkgname/ install -t "$pkgdir"/usr/share/doc/$_pkgname/ README.rst } -_py() { - local python="$1" - pkgdesc="$pkgdesc ${python#python}" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -py3() { - cd "$builddir" - _py python3 -} - -py2() { - cd "$builddir" - _py python2 -} - -sha512sums="f7c08559339dca33739f997fec6151e218b9f208a204b60329f8b5250bed4682d085a61b8c8c4745a3e25d65353c6a06ee4b33954e59dedd5e692024e98015aa py-compdb-0_git20180122.zip" +sha512sums="9b3000db087243f20b91d4091d0eaa71951860eba87f74ce5dd895a2f249f816145c30a9e791752e82947d9d9f4bb9dc49738356d0af442f38aa1fd91c43cf22 py3-compdb-0.2.0.tar.gz" |