[arch-commits] Commit in python-nltk/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sat Sep 28 15:05:05 UTC 2019


    Date: Saturday, September 28, 2019 @ 15:05:05
  Author: foxboron
Revision: 512006

upgpkg: python-nltk 3.4.5-1

Modified:
  python-nltk/trunk/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++++++++++------------------------------
 1 file changed, 19 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 14:56:43 UTC (rev 512005)
+++ PKGBUILD	2019-09-28 15:05:05 UTC (rev 512006)
@@ -2,44 +2,33 @@
 # 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
+pkgname=python-nltk
+pkgver=3.4.5
 pkgrel=1
 pkgdesc='Natural language processing in Python'
 arch=('any')
 url='https://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')
+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')
 
-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)
+  cd nltk-$pkgver
+  python setup.py build
 }
 
-package_python-nltk() {
-  optdepends=('nltk-data: test data'
-              'python-numpy: used for calculations'
-              'python-matplotlib: used for plotting')
-  depends=('python-yaml')
+# check(){
+#   cd nltk-$pkgver
+#   python ./nltk/test/runtests.py
+# }
 
-  (cd nltk-$pkgver; python setup.py install --root="$pkgdir" --optimize=1)
+package() {
+  cd nltk-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }
-
-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)
-}


More information about the arch-commits mailing list