[arch-commits] Commit in nltk-data/repos/community-any (4 files)

Alexander Rødseth arodseth at archlinux.org
Tue Feb 26 10:11:20 UTC 2019


    Date: Tuesday, February 26, 2019 @ 10:11:19
  Author: arodseth
Revision: 436094

archrelease: copy trunk to community-any

Added:
  nltk-data/repos/community-any/LICENSE
    (from rev 436093, nltk-data/trunk/LICENSE)
  nltk-data/repos/community-any/PKGBUILD
    (from rev 436093, nltk-data/trunk/PKGBUILD)
Deleted:
  nltk-data/repos/community-any/LICENSE
  nltk-data/repos/community-any/PKGBUILD

----------+
 LICENSE  |    6 ++--
 PKGBUILD |   74 ++++++++++++++++++++++++++++++-------------------------------
 2 files changed, 40 insertions(+), 40 deletions(-)

Deleted: LICENSE
===================================================================
--- LICENSE	2019-02-26 10:11:09 UTC (rev 436093)
+++ LICENSE	2019-02-26 10:11:19 UTC (rev 436094)
@@ -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 436093, nltk-data/trunk/LICENSE)
===================================================================
--- LICENSE	                        (rev 0)
+++ LICENSE	2019-02-26 10:11:19 UTC (rev 436094)
@@ -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	2019-02-26 10:11:09 UTC (rev 436093)
+++ PKGBUILD	2019-02-26 10:11:19 UTC (rev 436094)
@@ -1,37 +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.3
-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:

Copied: nltk-data/repos/community-any/PKGBUILD (from rev 436093, nltk-data/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-02-26 10:11:19 UTC (rev 436094)
@@ -0,0 +1,37 @@
+# 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.4
+pkgrel=1
+pkgdesc='Corpora, grammars and other linguistic data for NLTK'
+arch=(any)
+url='https://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"
+
+  # Download the data
+  python -m nltk.downloader -d "$pkgdir/usr/share/nltk_data" all
+
+  # Extract the downloaded files
+  for _dir in "$pkgdir/usr/share/nltk_data/"*; do
+    unzip -u "$_dir/"\*.zip -d "$_dir"
+    rm -f "$_dir/"*.zip
+  done
+
+  # Correct file permissions
+  find "$pkgdir/usr/share/nltk_data/" -type f -exec chmod 0644 {} \;
+  find "$pkgdir/usr/share/nltk_data/" -type d -exec chmod 0755 {} \;
+
+  # Install the license
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/nltk-data/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list