aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-yurl
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-02 08:33:48 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-02 08:33:48 +0000
commit93f50b4d264972d167f4b050b2f8a87d0826a145 (patch)
tree3d65512a98ba4bd5cadeb8d4536328faacc25db7 /testing/py-yurl
parent8b0012bcfb0957b14d153da25c57c32308333bf0 (diff)
downloadaports-93f50b4d264972d167f4b050b2f8a87d0826a145.tar.bz2
aports-93f50b4d264972d167f4b050b2f8a87d0826a145.tar.xz
testing/py-yurl: upgrade to 0.13. added py3 support, splitted with py2 and py3 subpackages
Diffstat (limited to 'testing/py-yurl')
-rw-r--r--testing/py-yurl/APKBUILD52
1 files changed, 30 insertions, 22 deletions
diff --git a/testing/py-yurl/APKBUILD b/testing/py-yurl/APKBUILD
index 930969747d..3aa92f32f9 100644
--- a/testing/py-yurl/APKBUILD
+++ b/testing/py-yurl/APKBUILD
@@ -2,40 +2,48 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-yurl
_pkgname=YURL
-pkgver=0.12
+pkgver=0.13
pkgrel=0
pkgdesc="An alternative Python url manipulation library"
url="https://github.com/homm/yurl/"
arch="noarch"
license="unknown"
depends=""
-depends_dev=""
-makedepends="python-dev py-setuptools"
-install=""
-subpackages=""
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
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 || return 1
}
package() {
- cd "$_builddir"
- python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ 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"
}
-md5sums="5cec680e8f97867bb12e0029a8f73e55 YURL-0.12.tar.gz"
-sha256sums="a74b284fa9fa2d8b562e5b828051d4717e0364010b0c7cec23fdd9efc6663041 YURL-0.12.tar.gz"
-sha512sums="18c3777634126c68b36ae5ff76b03db64e75f65de062dc39d979c95fb0e4ac42f00d481da0dc0fa6ac4524007503a25b8e81d807b13fa8fad146fe80245c788a YURL-0.12.tar.gz"
+_py3() {
+ _py python3
+}
+
+
+
+md5sums="08b12cf23e545c1990dbeb45185b69e4 YURL-0.13.tar.gz"
+sha256sums="a8ba9c065da393704fc029f13d2d7d850a9dfd6b8deae6960749eecea282693d YURL-0.13.tar.gz"
+sha512sums="4eb6f12b266a8905ec56131fecf6d6c44a18258c3d76df4d2d758a2053065abe3695d7ed627da274e7a5aa30e9e1af49beee1a537b8f22aa8022ca926c78ab0b YURL-0.13.tar.gz"