summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2013-01-08 02:42:24 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2013-01-08 02:42:48 -0600
commitc2eff4480adba5436fd175387796a20c988b2b9b (patch)
tree321064b1d1bc01969505a3ecda17ac388cb50250 /testing
parentabc55114f683b0cd9a3807a8f84759e7ef5ea4c1 (diff)
downloadaports-c2eff4480adba5436fd175387796a20c988b2b9b.tar.bz2
aports-c2eff4480adba5436fd175387796a20c988b2b9b.tar.xz
testing/py-dateutil: rewrite APKBUILD, upgrade to 2.1
Diffstat (limited to 'testing')
-rw-r--r--testing/py-dateutil/APKBUILD45
1 files changed, 30 insertions, 15 deletions
diff --git a/testing/py-dateutil/APKBUILD b/testing/py-dateutil/APKBUILD
index f1915d816..80cbe902c 100644
--- a/testing/py-dateutil/APKBUILD
+++ b/testing/py-dateutil/APKBUILD
@@ -1,23 +1,38 @@
-# Contributor: Francesco Colista <francesco.colista@gmail.com>
-# Maintainer:
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-dateutil
-_pkgname=python-dateutil
-pkgver=1.5
-pkgrel=1
-pkgdesc="Provides powerful extensions to the standard datetime module"
+pkgver=2.1
+pkgrel=0
+pkgdesc="Python extensions for datetime module"
url="http://labix.org/python-dateutil"
arch="noarch"
-license="PYTHON"
-depends=
-depends_dev="python-dev py-setuptools"
-makedepends="$depends_dev"
+license="BSD"
+depends="python"
+depends_dev=""
+makedepends="python-dev py-setuptools"
install=""
subpackages=""
-source="http://labix.org/download/$_pkgname/$_pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$_pkgname-$pkgver
+source="http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-$pkgver.tar.gz"
+
+_builddir="$srcdir"/python-dateutil-$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
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
package() {
cd "$_builddir"
- python setup.py install --root=$pkgdir
- install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
-md5sums="35f3732db3f2cc4afdc68a8533b60a52 python-dateutil-1.5.tar.gz"
+
+md5sums="1534bb15cf311f07afaa3aacba1c028b python-dateutil-2.1.tar.gz"