Date: Friday, September 29, 2017 @ 18:47:25 Author: jelle Revision: 261079
archrelease: copy trunk to community-any Added: python-nltk/repos/community-any/PKGBUILD (from rev 261078, python-nltk/trunk/PKGBUILD) Deleted: python-nltk/repos/community-any/PKGBUILD ----------+ PKGBUILD | 92 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 46 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-09-29 18:47:15 UTC (rev 261078) +++ PKGBUILD 2017-09-29 18:47:25 UTC (rev 261079) @@ -1,46 +0,0 @@ -# $Id$ -# Maintainer: Alexander F Rødseth <xypr...@archlinux.org> -# Contributor: Thomas Dziedzic <gos...@gmail.com> -# Contributor: Chris Baker <baker.chri...@gmail.com> - -pkgbase=python-nltk -pkgname=('python2-nltk' 'python-nltk') -pkgver=3.2.4 -pkgrel=1 -pkgdesc='Natural language processing in Python' -arch=('any') -url='http://www.nltk.org/' -license=('APACHE') -makedepends=('python-setuptools' 'python2-setuptools') -source=($pkgbase-$pkgver.tar.gz::"https://github.com/nltk/nltk/archive/$pkgver.tar.gz") -md5sums=('b1ad9085d19e9dd7568b18f1227d9bdb') - -prepare() { - cp -r nltk-$pkgver nltk-py2-$pkgver - # python 2 fix - cd nltk-py2-$pkgver - find . -type f -exec sed -i 's:^#.*env python:#!/usr/bin/env python2:' {} + -} - -build() { - (cd nltk-$pkgver; python setup.py build) - (cd nltk-py2-$pkgver; 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-$pkgver; 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-$pkgver; python2 setup.py install --root="$pkgdir" --optimize=1) -} Copied: python-nltk/repos/community-any/PKGBUILD (from rev 261078, python-nltk/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-09-29 18:47:25 UTC (rev 261079) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Alexander F Rødseth <xypr...@archlinux.org> +# Contributor: Thomas Dziedzic <gos...@gmail.com> +# Contributor: Chris Baker <baker.chri...@gmail.com> + +pkgbase=python-nltk +pkgname=('python2-nltk' 'python-nltk') +pkgver=3.2.5 +pkgrel=1 +pkgdesc='Natural language processing in Python' +arch=('any') +url='http://www.nltk.org/' +license=('APACHE') +makedepends=('python-setuptools' 'python2-setuptools') +source=($pkgbase-$pkgver.tar.gz::"https://github.com/nltk/nltk/archive/$pkgver.tar.gz") +md5sums=('d74e47981ac9c6ca2e5fb2049268faf1') + +prepare() { + cp -r nltk-$pkgver nltk-py2-$pkgver + # python 2 fix + cd nltk-py2-$pkgver + find . -type f -exec sed -i 's:^#.*env python:#!/usr/bin/env python2:' {} + +} + +build() { + (cd nltk-$pkgver; python setup.py build) + (cd nltk-py2-$pkgver; 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-$pkgver; 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-$pkgver; python2 setup.py install --root="$pkgdir" --optimize=1) +}