aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-vobject
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-03-28 21:05:03 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-10 11:21:39 +0000
commit955a74ce66ee1c37e5b7c2b2860f0bd6cd22e202 (patch)
tree68ae39639fd41e9f3a4734fa0d7fabd6875b4f84 /main/py-vobject
parent4bec687cba32dbfec1d1887bd0aea3ed6c55eae4 (diff)
downloadaports-955a74ce66ee1c37e5b7c2b2860f0bd6cd22e202.tar.bz2
aports-955a74ce66ee1c37e5b7c2b2860f0bd6cd22e202.tar.xz
main/py-vobject: upgrade to 0.9.4.1
* Modernize abuild * Add support for python3 * Update homepage
Diffstat (limited to 'main/py-vobject')
-rw-r--r--main/py-vobject/APKBUILD55
1 files changed, 30 insertions, 25 deletions
diff --git a/main/py-vobject/APKBUILD b/main/py-vobject/APKBUILD
index 4bdb1a4c54..e573b4a156 100644
--- a/main/py-vobject/APKBUILD
+++ b/main/py-vobject/APKBUILD
@@ -1,40 +1,45 @@
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=py-vobject
_pkgname=vobject
-pkgver=0.8.1c
+pkgver=0.9.4.1
pkgrel=0
pkgdesc="Module for parsing and generating vCard and vCalendar files"
-url="http://vobject.skyhouseconsulting.com"
+url="http://eventable.github.io/vobject/"
arch="noarch"
license="Apache"
-depends="python2 py-dateutil py-icu"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
-source="http://vobject.skyhouseconsulting.com/${_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
-}
+depends="py-dateutil py-icu"
+makedepends="python2-dev py-setuptools python3-dev"
+subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
+source="$pkgname-$pkgver.tar.gz::https://github.com/eventable/$_pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py build || return 1
+ python3 setup.py build || return 1
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ depends="$python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
}
-md5sums="c9686dd74d39fdae140890d9c694c076 vobject-0.8.1c.tar.gz"
-sha256sums="594113117f2017ed837c8f3ce727616f9053baa5a5463a7420c8249b8fc556f5 vobject-0.8.1c.tar.gz"
-sha512sums="3c7071e040172c8ef9e93bb818fb3c5f04912322adaaf56794b00005ff1ee787d54ad6860835be4fb123fa4215c104e1cbc4031dcdab53e96f7dbed771c0fa79 vobject-0.8.1c.tar.gz"
+sha512sums="8c6a78efa93bdf30b69d2b11ef5cf575a489efb7d131ec3870de6fcda8717575b34041036d414801700507f65ceb41ed2a13b8eb2f420aeae2d563ef3aaa791a py-vobject-0.9.4.1.tar.gz"