diff options
author | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-04-13 03:13:59 -0500 |
---|---|---|
committer | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-04-13 03:13:59 -0500 |
commit | eec41f7c7784b5ed3b2f2424dd56ffd3c29a5f97 (patch) | |
tree | 1c0e9f27ada273f1157c583c1b617b060f95a344 | |
parent | 5d774f2af53790156197255531e980e11ccebddf (diff) |
Commiting libre package python2-socketpool-0.2.3-1
-rw-r--r-- | ~xihh/python2-socketpool/PKGBUILD | 26 | ||||
-rw-r--r-- | ~xihh/python2-socketpool/doc.patch | 14 |
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"]) + ] + + |