Date: Sunday, August 2, 2015 @ 18:21:37 Author: arodseth Revision: 137721
archrelease: copy trunk to community-any Added: python-nltk/repos/community-any/PKGBUILD (from rev 137720, python-nltk/trunk/PKGBUILD) Deleted: python-nltk/repos/community-any/PKGBUILD ----------+ PKGBUILD | 105 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 53 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2015-08-02 16:21:26 UTC (rev 137720) +++ PKGBUILD 2015-08-02 16:21:37 UTC (rev 137721) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Alexander Rødseth <rods...@gmail.com> -# Contributor: Thomas Dziedzic < gostrc at gmail > -# Contributor: Chris Baker <baker.chri...@gmail.com> - -pkgbase=python-nltk -pkgname=('python2-nltk' 'python-nltk') -pkgver=3.0.2 -pkgrel=1 -pkgdesc='Natural language processing in Python' -arch=('any') -url='http://www.nltk.org/' -license=('APACHE') -makedepends=('python-setuptools' 'python2-setuptools' 'git') -source=("git+https://github.com/nltk/nltk#tag=$pkgver") -md5sums=('SKIP') - -prepare() { - cp -r nltk nltk-py2 - # python 2 fix - cd nltk-py2 - find . -type f -exec sed -i 's:^#.*env python:#!/usr/bin/env python2:' {} + -} - -build() { - cd nltk - python setup.py build - cd "$srcdir/nltk-py2" - python2 setup.py build -} - -package_python-nltk() { - optdepends=('nltk-data: test data' - 'python-numpy: used for calculations' - 'python-matplotlib: used for plotting') - depends=('python-yaml') - - cd nltk - python setup.py install --root="$pkgdir" --optimize=1 -} - -package_python2-nltk() { - optdepends=('nltk-data: test data' - 'python2-numpy: used for calculations' - 'python2-matplotlib: used for plotting') - depends=('python2-yaml') - - cd nltk-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 -} - -# vim:set ts=2 sw=2 et: Copied: python-nltk/repos/community-any/PKGBUILD (from rev 137720, python-nltk/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2015-08-02 16:21:37 UTC (rev 137721) @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Alexander Rødseth <rods...@gmail.com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Chris Baker <baker.chri...@gmail.com> + +pkgbase=python-nltk +pkgname=('python2-nltk' 'python-nltk') +pkgver=3.0.4 +pkgrel=1 +pkgdesc='Natural language processing in Python' +arch=('any') +url='http://www.nltk.org/' +license=('APACHE') +makedepends=('python-setuptools' 'python2-setuptools' 'git') +source=("git+https://github.com/nltk/nltk#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -r nltk nltk-py2 + # python 2 fix + cd nltk-py2 + find . -type f -exec sed -i 's:^#.*env python:#!/usr/bin/env python2:' {} + +} + +build() { + cd nltk + python setup.py build + cd "$srcdir/nltk-py2" + python2 setup.py build +} + +package_python-nltk() { + optdepends=('nltk-data: test data' + 'python-numpy: used for calculations' + 'python-matplotlib: used for plotting') + depends=('python-yaml') + + cd nltk + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-nltk() { + optdepends=('nltk-data: test data' + 'python2-numpy: used for calculations' + 'python2-matplotlib: used for plotting') + depends=('python2-yaml') + + cd nltk-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# getver: pypi.python.org/pypi/nltk +# vim:set ts=2 sw=2 et: