diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-07-16 02:34:53 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-07-16 02:34:53 (GMT) |
commit | 3b0cdff2fe8a8763f9fbc999e5ac296dbd1c3e34 (patch) | |
tree | 6fc2e4f5e0a42ea4074f211b50ff049c6800facc /abs | |
parent | 6d366e3272d669d8497432270f9fea52be858f83 (diff) | |
download | linhes_pkgbuild-3b0cdff2fe8a8763f9fbc999e5ac296dbd1c3e34.zip linhes_pkgbuild-3b0cdff2fe8a8763f9fbc999e5ac296dbd1c3e34.tar.gz linhes_pkgbuild-3b0cdff2fe8a8763f9fbc999e5ac296dbd1c3e34.tar.bz2 |
python-pyparsing: initial inclusion
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/python_modules/python-pyparsing/PKGBUILD | 64 | ||||
-rw-r--r-- | abs/core/python_modules/python-pyparsing/__changelog | 2 |
2 files changed, 66 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pyparsing/PKGBUILD b/abs/core/python_modules/python-pyparsing/PKGBUILD new file mode 100644 index 0000000..510d8bf --- /dev/null +++ b/abs/core/python_modules/python-pyparsing/PKGBUILD @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Alexander F Rødseth <xyproto@archlinux.org> +# Contributor: Chris Brannon <cmbrannon79@gmail.com> +# Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org> +# Contributor: Arvid Ephraim Picciani <aep@exys.org> +# Contributor: Michael Krauss <hippodriver@gmx.net> + +pkgname=python-pyparsing +pkgname=('python2-pyparsing') +pkgver=2.2.0 +pkgrel=1 +pkgdesc='General parsing module for Python' +arch=('any') +url='http://pyparsing.wikispaces.com/' +makedepends=('python2-setuptools' 'subversion') +license=('MIT') +source=("svn://svn.code.sf.net/p/pyparsing/code/tags/pyparsing_$pkgver") +sha256sums=('SKIP') + +prepare() { + cp -a pyparsing_$pkgver{,-py2} + + # :/ + sed -i '1i#coding=utf-8' pyparsing_$pkgver-py2/src/unitTests.py +} + +build() { +# cd "$srcdir"/pyparsing_$pkgver/src +# python setup.py build + + cd "$srcdir"/pyparsing_$pkgver-py2/src + python2 setup.py build +} + +check() { + export LC_CTYPE=en_US.UTF-8 + +# cd "$srcdir"/pyparsing_$pkgver/src +# python unitTests.py + + cd "$srcdir"/pyparsing_$pkgver-py2/src + python2 unitTests.py +} + +package_python-pyparsing() { + depends=('python') + + cd pyparsing_$pkgver/src + + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pyparsing() { + depends=('python2') + + cd pyparsing_$pkgver-py2/src + + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: diff --git a/abs/core/python_modules/python-pyparsing/__changelog b/abs/core/python_modules/python-pyparsing/__changelog new file mode 100644 index 0000000..4f818ef --- /dev/null +++ b/abs/core/python_modules/python-pyparsing/__changelog @@ -0,0 +1,2 @@ +PKGBUILD: don't build py 3 stuff + |