diff options
-rw-r--r-- | libre/django1.8/PKGBUILD | 70 | ||||
-rw-r--r-- | libre/python-markdown2/PKGBUILD | 55 | ||||
-rw-r--r-- | libre/python-markupsafe0/PKGBUILD | 53 | ||||
-rw-r--r-- | libre/python-psycopg2.6/PKGBUILD | 37 | ||||
-rw-r--r-- | libre/python2-memcached1.54/PKGBUILD | 38 |
5 files changed, 253 insertions, 0 deletions
diff --git a/libre/django1.8/PKGBUILD b/libre/django1.8/PKGBUILD new file mode 100644 index 000000000..a90272910 --- /dev/null +++ b/libre/django1.8/PKGBUILD @@ -0,0 +1,70 @@ +# $Id$ +# Maintainer: Dan McGee <dan@archlinux.org> +# Contributor: Shahar Weiss <sweiss4@gmx.net> + +pkgbase=django +pkgname=('python-django' 'python2-django') +pkgver=1.8.7 +pkgrel=1 +pkgdesc="A high-level Python Web framework that encourages rapid development and clean design" +arch=('any') +license=('BSD') +url="http://www.djangoproject.com/" +makedepends=('python2' 'python2-setuptools' 'python' 'python-setuptools') +source=("https://www.djangoproject.com/m/releases/${pkgver:0:3}/Django-$pkgver.tar.gz") +md5sums=('44c01355b5efa01938a89b8bd798b1ed') +sha256sums=('17a66de5cf59b5ee81c3dc57609b145bb45adddc0dc06937b998597d6e7b4523') + +prepare() { + cp -a "$srcdir/Django-$pkgver" "$srcdir/Django-$pkgver-python2" + + find "$srcdir/Django-$pkgver-python2" -name '*.py' | \ + xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" +} + +build() { + cd "$srcdir/Django-$pkgver" + python setup.py build + + cd "$srcdir/Django-$pkgver-python2" + python2 setup.py build +} + +package_python-django() { + depends=('python' 'python-setuptools') + optdepends=('python-psycopg2: for PostgreSQL backend') + cd "$srcdir/Django-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + + ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py + ln -s django-admin "$pkgdir"/usr/bin/django-admin3 + install -Dm644 extras/django_bash_completion \ + "$pkgdir"/usr/share/bash-completion/completions/django-admin.py + ln -s django-admin.py \ + "$pkgdir"/usr/share/bash-completion/completions/django-admin + ln -s django-admin.py \ + "$pkgdir"/usr/share/bash-completion/completions/manage.py + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-django() { + depends=('python2' 'python2-setuptools') + optdepends=('mysql-python: for MySQL backend' + 'python2-psycopg2: for PostgreSQL backend') + replaces=('django') + conflicts=('django') + cd "$srcdir/Django-$pkgver-python2" + python2 setup.py install --root="$pkgdir" --optimize=1 + + mv "$pkgdir"/usr/bin/django-admin.py "$pkgdir"/usr/bin/django-admin2.py + mv "$pkgdir"/usr/bin/django-admin "$pkgdir"/usr/bin/django-admin2 + # TODO: this probably won't work due to the `complete` command within not + # knowing about modified our exectuable names + install -Dm644 extras/django_bash_completion \ + "$pkgdir"/usr/share/bash-completion/completions/django-admin2.py + ln -s django-admin2.py \ + "$pkgdir"/usr/share/bash-completion/completions/django-admin2 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/libre/python-markdown2/PKGBUILD b/libre/python-markdown2/PKGBUILD new file mode 100644 index 000000000..cf326ca5a --- /dev/null +++ b/libre/python-markdown2/PKGBUILD @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: Andrew Antle <andrew dot antle at gmail dot com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Chaiwat Suttipongsakul <cwt at bashell dot com> + +pkgbase=python-markdown +pkgname=('python-markdown' 'python2-markdown') +_pkgbasename=Markdown +pkgver=2.6.11 +pkgrel=2 +pkgdesc="Python implementation of John Gruber's Markdown." +arch=('any') +url='http://pypi.python.org/pypi/Markdown' +license=('BSD') +depends=('python') +makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools') +source=("https://files.pythonhosted.org/packages/source/M/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz") +md5sums=('a67c1b2914f7d74eeede2ebe0fdae470') + +build() { + # bug in 2.4, some DOS line endings slipped in + find "$_pkgbasename-$pkgver/" -name '*py' | xargs sed -i 's|\r||g' + + cp -r $_pkgbasename-$pkgver "$srcdir/python2-markdown" + cd "$srcdir/python2-markdown" + find "$srcdir/python2-markdown" -name '*py' | xargs sed -i 's|#!/usr/bin/env python$|&2|' +} + +package_python-markdown() { + depends=('python') + cd "$srcdir/$_pkgbasename-$pkgver" + python3 setup.py install --root="$pkgdir" --optimize=0 + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python-markdown/LICENSE" +} + +package_python2-markdown() { + depends=('python2') + cd "$srcdir/python2-markdown" + python2 setup.py install --root="$pkgdir" --optimize=0 + mv "$pkgdir/usr/bin/markdown_py" "$pkgdir/usr/bin/markdown_py2" + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python2-markdown/LICENSE" +} + +check_python-markdown() { + [[ $(python -c "import markdown; print(markdown.version)") == "$pkgver" ]] + [[ $(python -c "import markdown; print(markdown.markdown('*test*'))") == "<p><em>test</em></p>" ]] +} + +check_python2-markdown() { + [[ $(python2 -c "import markdown; print(markdown.version)") == "$pkgver" ]] + [[ $(python2 -c "import markdown; print(markdown.markdown('*test*'))") == "<p><em>test</em></p>" ]] +} + diff --git a/libre/python-markupsafe0/PKGBUILD b/libre/python-markupsafe0/PKGBUILD new file mode 100644 index 000000000..d90ca5272 --- /dev/null +++ b/libre/python-markupsafe0/PKGBUILD @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer : Felix Yan <felixonmars@archlinux.org> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Alex Anthony <alex.anthony28991@gmail.com> + +pkgname=('python-markupsafe' 'python2-markupsafe') +pkgver=0.23 +pkgrel=4 +pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python" +arch=('i686' 'x86_64') +url="http://pypi.python.org/pypi/MarkupSafe" +license=('custom') +makedepends=('python-setuptools' 'python2-setuptools') +source=("http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz") +sha512sums=('4f1fd91ced5e7119584b56cf7b69cfe6fdd9613bd77412368a38e9ef5d1011ba5c76d1d3a0da3d60f9f474627e6c8c8b613a80a668b32d212f09072f8b1f5b28') + +prepare() { + cp -a MarkupSafe-${pkgver} python2-MarkupSafe-${pkgver} +} + +build() { + cd "${srcdir}/MarkupSafe-${pkgver}" + python setup.py build + + cd "${srcdir}/python2-MarkupSafe-${pkgver}" + python2 setup.py build +} + +check() { + cd "${srcdir}/MarkupSafe-${pkgver}" + python setup.py test + + cd "${srcdir}/python2-MarkupSafe-${pkgver}" + python2 setup.py test +} + +package_python-markupsafe() { + depends=('python') + + cd MarkupSafe-${pkgver} + python setup.py install --root="${pkgdir}" --optimize=1 + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-markupsafe/LICENSE" +} + +package_python2-markupsafe() { + depends=('python2') + + cd python2-MarkupSafe-${pkgver} + python2 setup.py install --root="${pkgdir}" --optimize=1 + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-markupsafe/LICENSE" +} diff --git a/libre/python-psycopg2.6/PKGBUILD b/libre/python-psycopg2.6/PKGBUILD new file mode 100644 index 000000000..25b10fb49 --- /dev/null +++ b/libre/python-psycopg2.6/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> +# Maintainer: Douglas Soares de Andrade <dsa@aur.archlinux.org> + +pkgbase=python-psycopg2 +pkgname=('python-psycopg2' 'python2-psycopg2') +pkgver=2.6.2 +pkgrel=2 +pkgdesc="A PostgreSQL database adapter for the Python programming language." +arch=('i686' 'x86_64') +url="http://initd.org/psycopg/" +license=('LGPL3') +makedepends=('python2' 'python' 'postgresql-libs>=8.4.1') +validpgpkeys=('8AD609956CF1899418E19A856013BD3AFCF957DE') +source=(http://initd.org/psycopg/tarballs/PSYCOPG-2-6/psycopg2-$pkgver.tar.gz{,.asc}) +sha256sums=('70490e12ed9c5c818ecd85d185d363335cc8a8cbf7212e3c185431c79ff8c05c' + 'SKIP') + +build() { + cd "$srcdir/psycopg2-$pkgver" + sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg +} + +package_python-psycopg2() { + depends=('python' 'postgresql-libs>=8.4.1') + + cd "$srcdir/psycopg2-$pkgver" + python setup.py install --root="$pkgdir" +} + +package_python2-psycopg2() { + depends=('python2' 'postgresql-libs>=8.4.1') + + cd "$srcdir/psycopg2-$pkgver" + python2 setup.py install --root="$pkgdir" +} diff --git a/libre/python2-memcached1.54/PKGBUILD b/libre/python2-memcached1.54/PKGBUILD new file mode 100644 index 000000000..1c349d9c8 --- /dev/null +++ b/libre/python2-memcached1.54/PKGBUILD @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org> +# Contributor: Nathan Jones <nathanj@insightbb.com> + +pkgname=python2-memcached +pkgdesc='Python interface to memcached' +pkgver=1.54 +pkgrel=2 +url='https://github.com/linsomniac/python-memcached' +arch=('any') +license=('PSF') +depends=('python2-six') +makedepends=('python2-setuptools' 'git' 'python2-six') +source=("git://github.com/linsomniac/python-memcached#tag=release-$pkgver") +md5sums=('SKIP') + +prepare() { + cd 'python-memcached' + + sed -i 's:/env python:/python2:' memcache.py +} + +package() { + cd 'python-memcached' + + python2 setup.py install --root=$pkgdir --optimize=1 +} + +check() { + cd 'python-memcached' + + python2 setup.py check +} + +# getver: -u 2 github.com/linsomniac/python-memcached/blob/master/ChangeLog +# vim:set ts=2 sw=2 et: |