libraries/nltk: Updated for version 3.5.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
ArTourter 2020-05-02 12:18:55 +07:00 committed by Willy Sudiarto Raharjo
parent d25d51ad43
commit db7fe28a09
3 changed files with 12 additions and 15 deletions

View file

@ -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.

View file

@ -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

View file

@ -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"