From e4f98c1617dbb3e2196545546c2abd21848607f5 Mon Sep 17 00:00:00 2001 From: "Joshua I. Haase H. (xihh)" Date: Fri, 13 Apr 2012 03:12:43 -0500 Subject: Commiting libre package python2-restkit-4.0.0-1 --- ~xihh/python2-restkit/PKGBUILD | 31 +++++++++++++++++++++++++++++++ ~xihh/python2-restkit/doc.patch | 14 ++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 ~xihh/python2-restkit/PKGBUILD create mode 100644 ~xihh/python2-restkit/doc.patch (limited to '~xihh/python2-restkit') diff --git a/~xihh/python2-restkit/PKGBUILD b/~xihh/python2-restkit/PKGBUILD new file mode 100644 index 000000000..244ff1f17 --- /dev/null +++ b/~xihh/python2-restkit/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Baptiste Jonglez +pkgname=python2-restkit +pkgver=4.0.0 +pkgrel=1 +pkgdesc="Restkit is an HTTP resource kit for Python. It allows you to easily access to HTTP resource and build objects around it." +arch=('any') +url="http://benoitc.github.com/restkit/index.html" +license=('MIT') +depends=('python2-http-parser' 'python2-socketpool') +makedepends=('python2-distribute') +provides=() +options=(!emptydirs) +source=("http://pypi.python.org/packages/source/r/restkit/restkit-$pkgver.tar.gz" + "doc.patch") +md5sums=('1bb0fa0115f82803472a2a6a8a30cf30' + '87fa9d990c28e3f328b31e322343b157') + +package() { + cd "$srcdir/restkit-$pkgver" + + # Install doc at the proper location + patch -p1 < "$srcdir/doc.patch" + + # Remove tests directory (conflicts with other python packages) + rm -rf tests + + python2 setup.py install --prefix=/usr --root=$pkgdir/ --optimize=1 + +} + +# vim:set ts=2 sw=2 et: diff --git a/~xihh/python2-restkit/doc.patch b/~xihh/python2-restkit/doc.patch new file mode 100644 index 000000000..f8e5a99d9 --- /dev/null +++ b/~xihh/python2-restkit/doc.patch @@ -0,0 +1,14 @@ +diff -ru restkit-4.0.0/setup.py restkit-4.0.0.new/setup.py +--- restkit-4.0.0/setup.py 2012-01-25 03:47:45.000000000 +0100 ++++ restkit-4.0.0.new/setup.py 2012-01-26 21:17:10.211046123 +0100 +@@ -39,8 +39,8 @@ + long_description = f.read() + + DATA_FILES = [ +- ('restkit', ["LICENSE", "MANIFEST.in", "NOTICE", "README.rst", +- "THANKS", "TODO.txt"]) ++ ('share/doc/restkit', ["LICENSE", "MANIFEST.in", "NOTICE", ++ "README.rst", "THANKS", "TODO.txt"]) + ] + + options=dict( -- cgit v1.2.3-54-g00ecf