summaryrefslogtreecommitdiff
path: root/~xihh/python2-socketpool
diff options
context:
space:
mode:
Diffstat (limited to '~xihh/python2-socketpool')
-rw-r--r--~xihh/python2-socketpool/PKGBUILD26
-rw-r--r--~xihh/python2-socketpool/doc.patch14
2 files changed, 40 insertions, 0 deletions
diff --git a/~xihh/python2-socketpool/PKGBUILD b/~xihh/python2-socketpool/PKGBUILD
new file mode 100644
index 000000000..9c853efea
--- /dev/null
+++ b/~xihh/python2-socketpool/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+pkgname=python2-socketpool
+pkgver=0.2.3
+pkgrel=1
+pkgdesc="Socket pool is a simple socket pool that suports multiple factories and backends. It can easily be used by gevent, eventlet or any other library."
+arch=('any')
+url="https://github.com/benoitc/socketpool"
+license=('MIT')
+depends=('python2')
+makedepends=('python2-distribute')
+options=(!emptydirs)
+source=("http://pypi.python.org/packages/source/s/socketpool/socketpool-$pkgver.tar.gz"
+ "doc.patch")
+md5sums=('aa7829958eb5df7f69f43c2946b17956'
+ 'b647167a37276f6dce2b9dc427a46dcc')
+
+package() {
+ cd "$srcdir/socketpool-$pkgver"
+
+ # Install doc at the proper location
+ patch -p1 < "$srcdir/doc.patch"
+
+ python2 setup.py install --prefix=/usr --root=$pkgdir/ --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/~xihh/python2-socketpool/doc.patch b/~xihh/python2-socketpool/doc.patch
new file mode 100644
index 000000000..19ae3cd58
--- /dev/null
+++ b/~xihh/python2-socketpool/doc.patch
@@ -0,0 +1,14 @@
+diff -ru socketpool-0.2.3.old/setup.py socketpool-0.2.3/setup.py
+--- socketpool-0.2.3.old/setup.py 2012-01-26 21:57:45.947850603 +0100
++++ socketpool-0.2.3/setup.py 2012-01-26 21:58:04.771081964 +0100
+@@ -23,8 +23,8 @@
+ long_description = f.read()
+
+ DATA_FILES = [
+- ('socketpool', ["LICENSE", "MANIFEST.in", "NOTICE", "README.rst",
+- "THANKS", "UNLICENSE"])
++ ('share/doc/socketpool', ["LICENSE", "MANIFEST.in", "NOTICE",
++ "README.rst", "THANKS", "UNLICENSE"])
+ ]
+
+