[arch-commits] Commit in python-nltk/repos/community-any (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Sat Sep 28 15:05:13 UTC 2019
Date: Saturday, September 28, 2019 @ 15:05:13
Author: foxboron
Revision: 512007
archrelease: copy trunk to community-any
Added:
python-nltk/repos/community-any/PKGBUILD
(from rev 512006, python-nltk/trunk/PKGBUILD)
Deleted:
python-nltk/repos/community-any/PKGBUILD
----------+
PKGBUILD | 79 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 34 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-28 15:05:05 UTC (rev 512006)
+++ PKGBUILD 2019-09-28 15:05:13 UTC (rev 512007)
@@ -1,45 +0,0 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: Thomas Dziedzic <gostrc at gmail.com>
-# Contributor: Chris Baker <baker.chris.3 at gmail.com>
-
-pkgbase=python-nltk
-pkgname=('python2-nltk' 'python-nltk')
-pkgver=3.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=('a8e1f6dcb14463eaa6b50f30a3b88c5e')
-
-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 512006, python-nltk/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-09-28 15:05:13 UTC (rev 512007)
@@ -0,0 +1,34 @@
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+# Contributor: Chris Baker <baker.chris.3 at gmail.com>
+
+pkgname=python-nltk
+pkgver=3.4.5
+pkgrel=1
+pkgdesc='Natural language processing in Python'
+arch=('any')
+url='https://www.nltk.org/'
+license=('APACHE')
+depends=('python-yaml')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'nltk-data' 'python-requests')
+optdepends=('nltk-data: test data'
+ 'python-numpy: used for calculations'
+ 'python-matplotlib: used for plotting')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/nltk/nltk/archive/$pkgver.tar.gz")
+sha256sums=('fd26dcebe3a6fd24ea317d83729fc676f263751ced41b78f680f9b19d8c24cb4')
+
+build() {
+ cd nltk-$pkgver
+ python setup.py build
+}
+
+# check(){
+# cd nltk-$pkgver
+# python ./nltk/test/runtests.py
+# }
+
+package() {
+ cd nltk-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list