1 |
commit: 4f4987ef923245fd500eb446c5bfdc27e9e79de8 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jun 6 01:26:45 2021 +0000 |
4 |
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> |
5 |
CommitDate: Fri Jun 11 15:23:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4f4987ef |
7 |
|
8 |
app-dicts/dictd-web1913: new |
9 |
|
10 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
app-dicts/dictd-web1913/Manifest | 12 +++ |
14 |
.../dictd-web1913/dictd-web1913-0.5.0_p1.ebuild | 89 ++++++++++++++++++++++ |
15 |
app-dicts/dictd-web1913/metadata.xml | 14 ++++ |
16 |
3 files changed, 115 insertions(+) |
17 |
|
18 |
diff --git a/app-dicts/dictd-web1913/Manifest b/app-dicts/dictd-web1913/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..4cfcc6878 |
21 |
--- /dev/null |
22 |
+++ b/app-dicts/dictd-web1913/Manifest |
23 |
@@ -0,0 +1,12 @@ |
24 |
+DIST pgw050ab.zip 1400825 BLAKE2B 7145d4ba24bb5dbfc89c6d2437a7056e1be3bf778040831e7b2e3f0420f9811c3b4f803238b174c76932c77099f3ab8f9144b410d219085068d8a7d09cf3e432 SHA512 bc9b7e2e43b40301cb44271dda1dc410fefcda912a6a199bfe7c309749f5a6ac036e17fe588460a3d78ffabbab6553b83077bb8a5658ca421cd16f8014c042f2 |
25 |
+DIST pgw050c.zip 1159912 BLAKE2B c0133d8ceff0c511d8e6e727eb33b87cef47d549eeb9c11f4db6713ff44fc52a1fbc18e40409f5778ee2f7354fd4561ef2f2cc3875e3985996f1eae19e01307e SHA512 4b782884c32b59d28e47206591060ca44fdeaa7050f5e91a316061fb8287ec0296b5b779638fd462861e96558b79f4b6585c332a783dc6ac7c671113cd57d466 |
26 |
+DIST pgw050de.zip 1172639 BLAKE2B e8557299d1b760e074a1da047f2ef4db27cdfeab91028a4ff682395d0263c81294698e32186a749de7440b7f84cbc71e0fd55ebc692b24b371883c65fbcf6b1a SHA512 69fe3979131b004eb259aef52c83efc1e4ecde951a6f6294ff16e63a9d60d52a6bbe9fadf93b68dd9df988cfcf36c7a13f594a10c54ea531212c3300a11caf18 |
27 |
+DIST pgw050fh.zip 1347072 BLAKE2B 9ffae0773b14c9878456ef497e5d16f78475e87acf805c325ff698043e931f5fa96af52edbffcd1eda6caef139132908841c5c28b5c8825166c4b32aae06404b SHA512 9d8dd9bc71c26dfd1ee42129484073c6c7fae89e2ec77407c4535c50b13c74268cd203d8136d79de75bd9efec920723e6d3e5c65c5dd893e8c3c53d61ccdd4d9 |
28 |
+DIST pgw050il.txt 3726925 BLAKE2B e3d6b6e8bc8fbebfabe41757dd8df64745a1026d277198f1082ccaa4ab9798c3892c5cdeed522a1e5eb9e39342243c77682c126f07a1edb5b48dab59c450f5b0 SHA512 697f6209ef559c8326dcea7360347a1b4da401a49903a2475648dd645a562069cf4da1e471b1f4b3acb558af09171e9c0ae6b09a45af2e63ddae46e7716e5e3f |
29 |
+DIST pgw050mo.zip 1036584 BLAKE2B 5a2ab8bbcb4738850fb52f17a5b56b82347ad95b5c0c630275078942de9c210c4a482cb5a08b629f9f3a15303ed1f76bf1796fac4584e43dd84c5d2e34958ee0 SHA512 6957eaf19ca83a3bf584149b2a205f709dbd8d072fbd7396657b1c7786f02b5f0d21b56bf054221c0057bf27b5d02e7c79f3deced9b7e51f6b9779cf8993db88 |
30 |
+DIST pgw050pq.zip 1044532 BLAKE2B fbd7e3dfbbacdb8154fe6c39ae1d781c238548b5ee1b985d4ed3003ac6a177ce09573a60d5f021630fc6fcc219f446a0682891e8dda0e124554e04bf0c3b8a10 SHA512 0b7993b1c5e5cab7233e6b569d56351c7c27f4727a5c927eb1cee0fca2b2fc854e627b63b61cbfa1403752bdf29675e26d40430be32ba1655451c69bb968f1a8 |
31 |
+DIST pgw050r.zip 601207 BLAKE2B 6fba41c89c755165bec9928796830dbe740c011e9b56983e4da72a8ab391eac3016ff3fd5396f970b7299342092f73b265b9daa223eff455460bb92d0ba194a1 SHA512 15efdfacf33a316441af1c6f2d980bb2e4f74cf15663a25eef2183ad1d50a475efb92a93a0d9ac9540fbc9b2ed89333f29e2e41f4c27c6932757ee4535faaa53 |
32 |
+DIST pgw050s.zip 1421850 BLAKE2B 264ec367db97bdbcc3caf81dd26920d7560a07521c98ee9754d53195d5c94c6d2ec7d8f627a03c92c77534c0f80cb902ef0bfa6db7369f8a7788e4594b641036 SHA512 c2b74ef60f65ea1c504247e6b0b3f3e677f57ef18e62bbae82a599ed37dc57825336f36f7ba060307fe0c6dd62751acb746c4f96677071eb798c5128b01faec0 |
33 |
+DIST pgw050tw.zip 1395640 BLAKE2B bf40aba3dbb3ae82393d54d2842e653759b4c0c206ee225df7134454f3038718dddf9bb9286307223d5232b206f6f24b8e5827702b5759c6fe69a7eef351c9c1 SHA512 1aa46777dbaa429587ebd30c7c4ad9736afe02187861eb60a67348e683afa9660cb76571cc5e57b0a423b9e1761805507173ef67352954935015d60180078052 |
34 |
+DIST pgw050xz.zip 579098 BLAKE2B 6e3155a8ca0a3541d3418527c1f7417b885f6e2f79577a6684dca24fddbcfa03d849f91ea73a9a6cfe27ecf3c5ea2c5c3ee6f31fabef4a1d161a58dafe5a38da SHA512 01d8151afdc185e77b2afbbe0e5602d8518f9ce51d14c25b0a3c9676d40252c42defb320ac843b40b466e2b481b7b7f80b3871c332733d770c5eb4363d4a1991 |
35 |
+DIST web1913-dict-patches-p1.tar.gz 15311 BLAKE2B 0849c15799ff4d7f06c42e22fb9e5693aaf1d16ba4ef77a06007c63bcf32b7cb12c1e526ad969a91f8082f79d10e502e6458fdbd113bd7922cd8b44f920c559e SHA512 b70d1ea571a067b7115572dba18aa1d05c4f51e596482c88c651883ba2937b5b569303a34c75056a0425e7feccab3715bb0c978fa46d539d5ceb56b5e296eb90 |
36 |
|
37 |
diff --git a/app-dicts/dictd-web1913/dictd-web1913-0.5.0_p1.ebuild b/app-dicts/dictd-web1913/dictd-web1913-0.5.0_p1.ebuild |
38 |
new file mode 100644 |
39 |
index 000000000..603c3b5ef |
40 |
--- /dev/null |
41 |
+++ b/app-dicts/dictd-web1913/dictd-web1913-0.5.0_p1.ebuild |
42 |
@@ -0,0 +1,89 @@ |
43 |
+# Copyright 1999-2021 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=7 |
47 |
+ |
48 |
+WV="${PV%_p*}" |
49 |
+GV="${WV//.}" |
50 |
+ |
51 |
+SN="web1913-dict-patches" |
52 |
+SV="${PV##*_}" |
53 |
+SD="${SN}-${SV}" |
54 |
+ |
55 |
+DESCRIPTION="Webster's Revised Unabridged Dictionary (1913) for dict" |
56 |
+HOMEPAGE="http://www.micra.com" |
57 |
+SRC_URI=" |
58 |
+ http://www.gutenberg.org/files/660/old/pgw${GV}ab.zip |
59 |
+ http://www.gutenberg.org/files/661/old/pgw${GV}c.zip |
60 |
+ http://www.gutenberg.org/files/662/old/pgw${GV}de.zip |
61 |
+ http://www.gutenberg.org/files/663/old/pgw${GV}fh.zip |
62 |
+ http://www.gutenberg.org/files/664/old/pgw${GV}il.txt |
63 |
+ http://www.gutenberg.org/files/665/old/pgw${GV}mo.zip |
64 |
+ http://www.gutenberg.org/files/666/old/pgw${GV}pq.zip |
65 |
+ http://www.gutenberg.org/files/667/old/pgw${GV}r.zip |
66 |
+ http://www.gutenberg.org/files/668/old/pgw${GV}s.zip |
67 |
+ http://www.gutenberg.org/files/669/old/pgw${GV}tw.zip |
68 |
+ http://www.gutenberg.org/files/670/old/pgw${GV}xz.zip |
69 |
+ https://git.sr.ht/~ag_eitilt/${SN}/archive/${SV}.tar.gz -> ${SD}.tar.gz |
70 |
+" |
71 |
+S="${WORKDIR}" |
72 |
+LICENSE="public-domain" |
73 |
+SLOT="0" |
74 |
+IUSE="" |
75 |
+KEYWORDS="~amd64" |
76 |
+ |
77 |
+RDEPEND=">=app-text/dictd-1.5.5" |
78 |
+BDEPEND=" |
79 |
+ ${RDEPEND} |
80 |
+ app-arch/unzip |
81 |
+ dev-libs/libxslt |
82 |
+" |
83 |
+ |
84 |
+PATCHES=( "${SD}/tag-nesting.patch" ) |
85 |
+ |
86 |
+src_unpack() { |
87 |
+ unpack ${A//pgw${GV}il.txt} |
88 |
+ cp "$DISTDIR/pgw${GV}il.txt" . || die |
89 |
+ cp "${SD}/xhtml-lat1.ent" "${SD}/xhtml-special.ent" "${SD}/xhtml-symbol.ent" . || die |
90 |
+ cp "${SD}/dictfmt-elements.txt" web1913.txt || die |
91 |
+} |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ default |
95 |
+ |
96 |
+ sed -e '/<! Begin file/,$ d' pgw050c.txt > COPYING.gutenberg || die |
97 |
+ |
98 |
+ for f in $(ls pgw$GV?*.txt) ; do |
99 |
+ echo "Cleaning '${f}'" || die |
100 |
+ sed -n -e '/<! Begin file/,$ p' -i "${f}" || die |
101 |
+ sed -f "${SD}/cleanup.sed" -i "${f}" || die |
102 |
+ cat "${SD}/micra-head.xml" "${f}" "${SD}/micra-foot.xml" > "${f%txt}xml" || die |
103 |
+ done |
104 |
+} |
105 |
+ |
106 |
+src_compile() { |
107 |
+ for f in $(ls pgw050?*.xml) ; do |
108 |
+ echo "Processing '${f}'" || die |
109 |
+ xsltproc "${SD}/dictfmt-elements.xsl" "${f}" >> web1913.txt || die |
110 |
+ done |
111 |
+ echo "Building dictionary" || die |
112 |
+ dictfmt -u " ${SRC_URI% * ->*}" \ |
113 |
+ -s "Webster's Revised Unabridged Dictionary, 1913 edition (v$WV ${SV})" \ |
114 |
+ --headword-separator " / " \ |
115 |
+ --columns 73 \ |
116 |
+ --utf8 \ |
117 |
+ -p web1913 \ |
118 |
+ < web1913.txt || die |
119 |
+ dictzip web1913.dict || die |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ insinto /usr/share/dict |
124 |
+ doins web1913.dict.dz web1913.index |
125 |
+} |
126 |
+ |
127 |
+pkg_postrm() { |
128 |
+ elog "You must unregister $PN and restart your dictd server before the" |
129 |
+ elog "dictionary is completely removed. If you are using OpenRC, both tasks may be" |
130 |
+ elog "accomplished by running '/etc/init.d/dictd restart'." |
131 |
+} |
132 |
|
133 |
diff --git a/app-dicts/dictd-web1913/metadata.xml b/app-dicts/dictd-web1913/metadata.xml |
134 |
new file mode 100644 |
135 |
index 000000000..04b8770a1 |
136 |
--- /dev/null |
137 |
+++ b/app-dicts/dictd-web1913/metadata.xml |
138 |
@@ -0,0 +1,14 @@ |
139 |
+<?xml version="1.0" encoding="UTF-8"?> |
140 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
141 |
+<pkgmetadata> |
142 |
+ <!-- maintainer needed --> |
143 |
+<upstream> |
144 |
+ <maintainer> |
145 |
+ <name>Patrick Cassidy</name> |
146 |
+ <email>cassidy@×××××.com</email> |
147 |
+ </maintainer> |
148 |
+</upstream> |
149 |
+<longdescription> |
150 |
+ A database for 'dict'-compatible dictionary software, based on the 1913 edition of Webster's Revised Unabridged Dictionary as digitized by MICRA, Inc. |
151 |
+</longdescription> |
152 |
+</pkgmetadata> |