diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-12-03 10:04:27 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-12-13 08:46:27 +0000 |
commit | 70c09d9d2feaa07ce6ec7a285845878121f9a2e2 (patch) | |
tree | c21303e86074825afd01114fa045df8d4fdf19f8 /testing | |
parent | 34cba518184ea553d3184da7de8b502854f5d583 (diff) | |
download | aports-70c09d9d2feaa07ce6ec7a285845878121f9a2e2.tar.bz2 aports-70c09d9d2feaa07ce6ec7a285845878121f9a2e2.tar.xz |
testing/py-cssselect: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-cssselect/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-cssselect/APKBUILD b/testing/py-cssselect/APKBUILD new file mode 100644 index 0000000000..cdbba8bc13 --- /dev/null +++ b/testing/py-cssselect/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=py-cssselect +_pkgname=cssselect +pkgver=0.7.1 +pkgrel=0 +pkgdesc="A Python library that parses CSS3 Selectors and translates them to XPath 1.0" +url="http://pypi.python.org/pypi/cssselect" +arch="noarch" +license="BSD" +depends="" +depends_dev="python-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://pypi.python.org/packages/source/c/$_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 install --root="${pkgdir}/" --optimize=1 +} + +package() { + cd "$_builddir" + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} + +md5sums="c6c5e9a2e7ca226ce03f6f67a771379c cssselect-0.7.1.tar.gz" |