[arch-commits] Commit in nltk-data/repos/community-any (4 files)
Alexander Rødseth
arodseth at archlinux.org
Fri Jan 26 19:21:15 UTC 2018
Date: Friday, January 26, 2018 @ 19:21:08
Author: arodseth
Revision: 287260
archrelease: copy trunk to community-any
Added:
nltk-data/repos/community-any/LICENSE
(from rev 287258, nltk-data/trunk/LICENSE)
nltk-data/repos/community-any/PKGBUILD
(from rev 287258, nltk-data/trunk/PKGBUILD)
Deleted:
nltk-data/repos/community-any/LICENSE
nltk-data/repos/community-any/PKGBUILD
----------+
LICENSE | 6 ++---
PKGBUILD | 72 +++++++++++++++++++++++++++++++------------------------------
2 files changed, 40 insertions(+), 38 deletions(-)
Deleted: LICENSE
===================================================================
--- LICENSE 2018-01-26 19:20:56 UTC (rev 287259)
+++ LICENSE 2018-01-26 19:21:08 UTC (rev 287260)
@@ -1,3 +0,0 @@
-Parts of NTLK-Data are distributed under various licenses,
-as documented in their respective README files.
-See: /usr/share/nltk/data/corpora/
Copied: nltk-data/repos/community-any/LICENSE (from rev 287258, nltk-data/trunk/LICENSE)
===================================================================
--- LICENSE (rev 0)
+++ LICENSE 2018-01-26 19:21:08 UTC (rev 287260)
@@ -0,0 +1,3 @@
+Parts of NTLK-Data are distributed under various licenses,
+as documented in their respective README files.
+See: /usr/share/nltk/data/corpora/
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-26 19:20:56 UTC (rev 287259)
+++ PKGBUILD 2018-01-26 19:21:08 UTC (rev 287260)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: Thomas Dziedzic < gostrc at gmail >
-# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
-# Contributor: Michal Bozon <michal.bozon__at__gmail.com>
-
-pkgname=nltk-data
-pkgver=3.2.1
-pkgrel=1
-pkgdesc='Corpora, grammars and other linguistic data for NLTK'
-arch=('any')
-url='http://www.nltk.org/data.html'
-license=('custom')
-makedepends=('unzip' "python-nltk=$pkgver")
-source=('LICENSE')
-md5sums=('69998d5f493a60e7a1467b8003ab8e22')
-
-package() {
- install -d "$pkgdir/usr/share/nltk_data"
- python -m nltk.downloader -d "$pkgdir/usr/share/nltk_data" all
-
- for _dir in "$pkgdir/usr/share/nltk_data/"*; do
- unzip -u "$_dir/"\*.zip -d "$_dir"
- rm -f "$_dir/"*.zip
- done
-
- find "$pkgdir/usr/share/nltk_data/" -type f -exec chmod 0644 {} \;
- find "$pkgdir/usr/share/nltk_data/" -type d -exec chmod 0755 {} \;
-
- install -d "$pkgdir/usr/share/licenses/nltk-data"
- install -m644 "$srcdir/LICENSE" \
- "$pkgdir/usr/share/licenses/nltk-data"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: nltk-data/repos/community-any/PKGBUILD (from rev 287258, nltk-data/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-01-26 19:21:08 UTC (rev 287260)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
+# Contributor: Michal Bozon <michal.bozon__at__gmail.com>
+
+pkgname=nltk-data
+pkgver=3.2.5
+pkgrel=1
+pkgdesc='Corpora, grammars and other linguistic data for NLTK'
+arch=('any')
+url='http://www.nltk.org/data.html'
+license=('custom')
+makedepends=("python-nltk=$pkgver" 'python-six' 'unzip')
+source=('LICENSE')
+md5sums=('69998d5f493a60e7a1467b8003ab8e22')
+
+package() {
+ install -d "$pkgdir/usr/share/nltk_data"
+
+ # Downloading the data.
+ # TODO: Do what the python script does, but in this PKGBUILD
+ python -m nltk.downloader -d "$pkgdir/usr/share/nltk_data" all
+
+ for _dir in "$pkgdir/usr/share/nltk_data/"*; do
+ unzip -u "$_dir/"\*.zip -d "$_dir"
+ rm -f "$_dir/"*.zip
+ done
+
+ find "$pkgdir/usr/share/nltk_data/" -type f -exec chmod 0644 {} \;
+ find "$pkgdir/usr/share/nltk_data/" -type d -exec chmod 0755 {} \;
+
+ install -d "$pkgdir/usr/share/licenses/nltk-data"
+ install -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/nltk-data"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list