diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-19 00:33:37 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-19 00:34:38 +0200 |
commit | b61c6bee56fa0f17f812fcf0bf4a874361bb2ef3 (patch) | |
tree | 9589747562faed2cb572852ff5b30b8e353b3fbb /community | |
parent | 62b1db03684de2bc3144f960ee3c6251a22cb882 (diff) | |
download | aports-b61c6bee56fa0f17f812fcf0bf4a874361bb2ef3.tar.bz2 aports-b61c6bee56fa0f17f812fcf0bf4a874361bb2ef3.tar.xz |
community/py-click: update to 6.6 and add py2/py3 subpackages
Diffstat (limited to 'community')
-rw-r--r-- | community/py-click/APKBUILD | 60 |
1 files changed, 34 insertions, 26 deletions
diff --git a/community/py-click/APKBUILD b/community/py-click/APKBUILD index a3b01d6e90..f4b1a7a935 100644 --- a/community/py-click/APKBUILD +++ b/community/py-click/APKBUILD @@ -2,40 +2,48 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-click _pkgname=click -pkgver=5.1 +pkgver=6.6 pkgrel=0 -pkgdesc="A simple wrapper around optparse for powerful command line utilities." -url="https://pypi.python.org/pypi/click" +pkgdesc="A simple wrapper around optparse for powerful command line utilities" +url="http://click.pocoo.org/" arch="noarch" license="BSD" -depends="python" -depends_dev="" -makedepends="python-dev py-setuptools" -install="" -subpackages="" +depends="" +makedepends="python2-dev python3-dev py-setuptools" +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 -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" - python setup.py build || return 1 + cd "$builddir" + + python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$_builddir" - python 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)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } -md5sums="9c5323008cccfe232a8b161fc8196d41 click-5.1.tar.gz" -sha256sums="678c98275431fad324275dec63791e4a17558b40e5a110e20a82866139a85a5a click-5.1.tar.gz" -sha512sums="b860b0227644f5d1cc24d41e66985421ec971f11f3f596fb46508fdc787200b949e7ef29b2035421ebb0115384688da03c3c95a0d6acc58dd3b566b32a2b7c6a click-5.1.tar.gz" +md5sums="d0b09582123605220ad6977175f3e51d click-6.6.tar.gz" +sha256sums="cc6a19da8ebff6e7074f731447ef7e112bd23adf3de5c597cf9989f2fd8defe9 click-6.6.tar.gz" +sha512sums="5650cfe6c8b55a7e823e22248964143278d61383dac63497508a864807f1950f9dd5d76ce6a501e589dd81fed6e2a1248d3f8973be25a91950896b7408dc88bc click-6.6.tar.gz" |