Wed May 3 09:37:31 2023 UTC ()
nltk_data: update MASTER_SITES

fix typo in script, update date


(wiz)
diff -r1.3 -r1.4 pkgsrc/meta-pkgs/nltk_data/common.mk
diff -r1.1 -r1.2 pkgsrc/meta-pkgs/nltk_data/split.py

cvs diff -r1.3 -r1.4 pkgsrc/meta-pkgs/nltk_data/common.mk (expand / switch to unified diff)

--- pkgsrc/meta-pkgs/nltk_data/common.mk 2023/03/16 11:06:02 1.3
+++ pkgsrc/meta-pkgs/nltk_data/common.mk 2023/05/03 09:37:31 1.4
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: common.mk,v 1.3 2023/03/16 11:06:02 jperkin Exp $ 1# $NetBSD: common.mk,v 1.4 2023/05/03 09:37:31 wiz Exp $
2 2
3MASTER_SITES= https://github.com/nltk/nltk_data/raw/ee3fb3aecd8bce44a44e2303d679fe32c0ec437b/packages/${TYPE}/ 3MASTER_SITES?= https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/packages/${TYPE}/
4EXTRACT_SUFX?= .zip 4EXTRACT_SUFX?= .zip
5 5
6MAINTAINER?= pkgsrc-users@NetBSD.org 6MAINTAINER?= pkgsrc-users@NetBSD.org
7HOMEPAGE?= https://www.nltk.org/data.html 7HOMEPAGE?= https://www.nltk.org/data.html
8COMMENT?= Natural Language Toolkit (NLTK) Data 8COMMENT?= Natural Language Toolkit (NLTK) Data
9 9
10INSTALLATION_DIRS+= share/nltk_data/${TYPE} 10INSTALLATION_DIRS+= share/nltk_data/${TYPE}
11 11
12UNPACK?= no 12UNPACK?= no
13 13
14RESTRICTED?= Not investigated if this may be re-distributed. 14RESTRICTED?= Not investigated if this may be re-distributed.
15NO_BIN_ON_CDROM?= ${RESTRICTED} 15NO_BIN_ON_CDROM?= ${RESTRICTED}
16NO_SRC_ON_CDROM?= ${RESTRICTED} 16NO_SRC_ON_CDROM?= ${RESTRICTED}

cvs diff -r1.1 -r1.2 pkgsrc/meta-pkgs/nltk_data/split.py (expand / switch to unified diff)

--- pkgsrc/meta-pkgs/nltk_data/split.py 2021/11/24 15:56:18 1.1
+++ pkgsrc/meta-pkgs/nltk_data/split.py 2023/05/03 09:37:31 1.2
@@ -14,36 +14,36 @@ for child in root[0]: @@ -14,36 +14,36 @@ for child in root[0]:
14 os.mkdir(path) 14 os.mkdir(path)
15 except Exception: 15 except Exception:
16 pass 16 pass
17 name = child.attrib["name"] 17 name = child.attrib["name"]
18 if "webpage" in child.attrib: 18 if "webpage" in child.attrib:
19 webpage = "HOMEPAGE=\t" + child.attrib["webpage"] 19 webpage = "HOMEPAGE=\t" + child.attrib["webpage"]
20 else: 20 else:
21 webpage = "" 21 webpage = ""
22 if "license" in child.attrib: 22 if "license" in child.attrib:
23 license = child.attrib["license"] 23 license = child.attrib["license"]
24 subdir = child.attrib["subdir"] 24 subdir = child.attrib["subdir"]
25 url = child.attrib["url"] 25 url = child.attrib["url"]
26 with open(path + "/Makefile", "w") as f: 26 with open(path + "/Makefile", "w") as f:
27 print(f"""# $NetBSD: split.py,v 1.1 2021/11/24 15:56:18 wiz Exp $ 27 print(f"""# $NetBSD: split.py,v 1.2 2023/05/03 09:37:31 wiz Exp $
28 28
29DISTNAME= {id} 29DISTNAME= {id}
30PKGNAME= nltk_data-{id}-20211124 30PKGNAME= nltk_data-{id}-20230502
31CATEGORIES= textproc 31CATEGORIES= textproc
32DIST_SUBDIR= ${{PKGNAME_NOREV}} 32DIST_SUBDIR= ${{PKGNAME_NOREV}}
33 33
34{webpage} 34{webpage}
35COMMENT= NLTK Data - {name} 35COMMENT= NLTK Data - {name}
36#LICENSE= {license} 36#LICENSE= {license}
37 37
38TYPE= {subdir} 38TYPE= {subdir}
39 39
40.include "../../meta-pkgs/nltk_data/common.mk" 40.include "../../meta-pkgs/nltk_data/common.mk"
41.include "../../mk/bsd.pkg.mk" 41.include "../../mk/bsd.pkg.mk"
42""", file=f, end='') 42""", file=f, end='')
43 with open(path + "/DESCR", "w") as f: 43 with open(path + "/DESCR", "w") as f:
44 print(f"""This package contains data for NLTK, the Natural Language Toolkit. 44 print(f"""This package contains data for NLTK, the Natural Language Toolkit.
45 45
46This package contains data from/for {name}.""", file=f) 46This package contains data from/for {name}.""", file=f)
47 with open(path + "/PLIST", "w") as f: 47 with open(path + "/PLIST", "w") as f:
48 print(f"""@comment $NetBSD: split.py,v 1.1 2021/11/24 15:56:18 wiz Exp $ 48 print(f"""@comment $NetBSD: split.py,v 1.2 2023/05/03 09:37:31 wiz Exp $
49share/nltk/{subdir}/{id}.zip""", file=f) 49share/nltk_data/{subdir}/{id}.zip""", file=f)