| @@ -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 | |
29 | DISTNAME= {id} | | 29 | DISTNAME= {id} |
30 | PKGNAME= nltk_data-{id}-20211124 | | 30 | PKGNAME= nltk_data-{id}-20230502 |
31 | CATEGORIES= textproc | | 31 | CATEGORIES= textproc |
32 | DIST_SUBDIR= ${{PKGNAME_NOREV}} | | 32 | DIST_SUBDIR= ${{PKGNAME_NOREV}} |
33 | | | 33 | |
34 | {webpage} | | 34 | {webpage} |
35 | COMMENT= NLTK Data - {name} | | 35 | COMMENT= NLTK Data - {name} |
36 | #LICENSE= {license} | | 36 | #LICENSE= {license} |
37 | | | 37 | |
38 | TYPE= {subdir} | | 38 | TYPE= {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 | |
46 | This package contains data from/for {name}.""", file=f) | | 46 | This 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 $ |
49 | share/nltk/{subdir}/{id}.zip""", file=f) | | 49 | share/nltk_data/{subdir}/{id}.zip""", file=f) |