diff options
author | prspkt <prspkt@protonmail.com> | 2019-04-04 01:16:38 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-04-04 01:22:52 +0300 |
commit | 4a34156112d72065e4d0ca0762d993f65634cec7 (patch) | |
tree | 7bbd06d9d3aff7774422279e0e1479f08c1695e6 | |
parent | 3cf9b38e3b960f8967931950fc51988e1841792b (diff) | |
download | aports-4a34156112d72065e4d0ca0762d993f65634cec7.tar.bz2 aports-4a34156112d72065e4d0ca0762d993f65634cec7.tar.xz |
testing/py-venusian: add python3
-rw-r--r-- | testing/py-venusian/APKBUILD | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/testing/py-venusian/APKBUILD b/testing/py-venusian/APKBUILD index d64c60a2a7..54aef86165 100644 --- a/testing/py-venusian/APKBUILD +++ b/testing/py-venusian/APKBUILD @@ -8,11 +8,10 @@ pkgdesc="A Python library for deferring decorator actions" url="https://pypi.python.org/pypi/venusian" arch="noarch" license="BSD" -depends="python2" depends_dev="" -makedepends="python2-dev py-setuptools" +makedepends="python2-dev python3-dev py-setuptools" install="" -subpackages="" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$_pkgname-$pkgver @@ -27,13 +26,31 @@ prepare() { } build() { - cd "$_builddir" - python2 setup.py build || return 1 + cd "$builddir" + python2 setup.py build + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + 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" } sha512sums="b305850e3a32a2591413386d01af63927d9ae2be1db579d3c12396d4e367ae61cd4b1c8697459646e84ca9affded00f62553156193e9eecfdc39a3c8a5ec0cca venusian-1.2.0.tar.gz" |