aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-urlobject
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2014-11-23 14:52:53 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2014-11-27 07:54:00 +0000
commit851238efa753cf2ba802299483e4b956e4a68957 (patch)
treec8918754693915b6ab8f4630abd3e87251b05881 /testing/py-urlobject
parent347fdff0350b63e2388a76d2358fcb8cbe432e19 (diff)
downloadaports-851238efa753cf2ba802299483e4b956e4a68957.tar.bz2
aports-851238efa753cf2ba802299483e4b956e4a68957.tar.xz
testing/py-urlobject: new aport
A utility class for manipulating URLsi https://pypi.python.org/pypi/URLObject
Diffstat (limited to 'testing/py-urlobject')
-rw-r--r--testing/py-urlobject/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-urlobject/APKBUILD b/testing/py-urlobject/APKBUILD
new file mode 100644
index 0000000000..1e22d1cd3f
--- /dev/null
+++ b/testing/py-urlobject/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-urlobject
+_pkgname=URLObject
+pkgver=2.4.0
+pkgrel=0
+pkgdesc="A Python utility class for manipulating URLs"
+url="https://github.com/dperezrada/html2data"
+arch="noarch"
+license="Public Domain"
+depends="python"
+depends_dev=""
+makedepends="python-dev py-setuptools"
+install=""
+subpackages=""
+source="http://pypi.python.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
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="2ed819738a9f0a3051f31dc9924e3065 URLObject-2.4.0.tar.gz"
+sha256sums="f51272b12846db98af530b0a64f6593d2b1e8405f0aa580285b37ce8009b8d9c URLObject-2.4.0.tar.gz"
+sha512sums="1334c8d8dbb93f50fb6672ae5c2e1dbb8c880af65c18c96c7bc65bb46ae894ab0696d36236036c1e4434a6e75b692ecd0b37055ef9b55fb50ffbaf13197b1701 URLObject-2.4.0.tar.gz"