summaryrefslogtreecommitdiffstats
path: root/libraries
diff options
context:
space:
mode:
author ArTourter2020-05-02 07:18:55 +0200
committer Willy Sudiarto Raharjo2020-05-02 07:18:55 +0200
commitdb7fe28a094c29b9e89c2bd8ac81fb537f94dba2 (patch)
tree1d81a89848cdb917e5b8211d100bd53f09437f44 /libraries
parentd25d51ad43c98c6df74a34e142d0d7de18c4558a (diff)
downloadslackbuilds-db7fe28a094c29b9e89c2bd8ac81fb537f94dba2.tar.gz
libraries/nltk: Updated for version 3.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/nltk/README11
-rw-r--r--libraries/nltk/nltk.SlackBuild8
-rw-r--r--libraries/nltk/nltk.info8
3 files changed, 12 insertions, 15 deletions
diff --git a/libraries/nltk/README b/libraries/nltk/README
index e47befeee7..868d987c3c 100644
--- a/libraries/nltk/README
+++ b/libraries/nltk/README
@@ -2,11 +2,12 @@ Open source Python modules, linguistic data and documentation for research and
development in natural language processing, supporting dozens of NLP tasks,
with distributions for Windows, Mac OSX and Linux.
-This SlackBuild will create a package with the python2 version and the python3
-version if python3 is installed on the machine.
+As of version 3.5, python 2.7 is no longer supported and python3 is now
+required.
NLTK comes with many corpora, toy grammars, trained models, etc. A complete
list is posted at: http://nltk.org/nltk_data/. To retrieve all the data, use
-"python -m nltk.downloader all". To ensure system wideinstallation, you can
-run the command "python -m nltk.downloader -d /usr/share/nltk_data all" as
-root.
+"python3 -m nltk.downloader all". To ensure system wideinstallation, you can
+run the command "python3 -m nltk.downloader -d /usr/share/nltk_data all" as
+root. Note that the 'regex' package, also available on SBo, is required to run
+this command.
diff --git a/libraries/nltk/nltk.SlackBuild b/libraries/nltk/nltk.SlackBuild
index 33f1da43e9..9c30d81549 100644
--- a/libraries/nltk/nltk.SlackBuild
+++ b/libraries/nltk/nltk.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nltk
-VERSION=${VERSION:-3.4.5}
+VERSION=${VERSION:-3.5}
SRCVER=$VERSION
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,11 +59,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-python2 setup.py install --root=$PKG
-
-if $(command -v python3 &>/dev/null); then
- python3 setup.py install --root=$PKG
-fi
+python3 setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/libraries/nltk/nltk.info b/libraries/nltk/nltk.info
index 7803ae1e10..7503fa33d9 100644
--- a/libraries/nltk/nltk.info
+++ b/libraries/nltk/nltk.info
@@ -1,10 +1,10 @@
PRGNAM="nltk"
-VERSION="3.4.5"
+VERSION="3.5"
HOMEPAGE="http://www.nltk.org/"
-DOWNLOAD="https://files.pythonhosted.org/packages/f6/1d/d925cfb4f324ede997f6d47bea4d9babba51b49e87a767c170b77005889d/nltk-3.4.5.zip"
-MD5SUM="26bbf73e822136df16d7e9ce38120bd0"
+DOWNLOAD="https://files.pythonhosted.org/packages/92/75/ce35194d8e3022203cca0d2f896dbb88689f9b3fce8e9f9cff942913519d/nltk-3.5.zip"
+MD5SUM="2a827c8c8a50b98241c07f2758eb6961"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3 regex"
MAINTAINER="ArTourter"
EMAIL="artourter@gmail.com"