From 4f4987ef923245fd500eb446c5bfdc27e9e79de8 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 6 Jun 2021 03:26:45 +0200 Subject: app-dicts/dictd-web1913: new Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri --- app-dicts/dictd-web1913/Manifest | 12 +++ .../dictd-web1913/dictd-web1913-0.5.0_p1.ebuild | 89 ++++++++++++++++++++++ app-dicts/dictd-web1913/metadata.xml | 14 ++++ 3 files changed, 115 insertions(+) create mode 100644 app-dicts/dictd-web1913/Manifest create mode 100644 app-dicts/dictd-web1913/dictd-web1913-0.5.0_p1.ebuild create mode 100644 app-dicts/dictd-web1913/metadata.xml (limited to 'app-dicts') diff --git a/app-dicts/dictd-web1913/Manifest b/app-dicts/dictd-web1913/Manifest new file mode 100644 index 000000000..4cfcc6878 --- /dev/null +++ b/app-dicts/dictd-web1913/Manifest @@ -0,0 +1,12 @@ +DIST pgw050ab.zip 1400825 BLAKE2B 7145d4ba24bb5dbfc89c6d2437a7056e1be3bf778040831e7b2e3f0420f9811c3b4f803238b174c76932c77099f3ab8f9144b410d219085068d8a7d09cf3e432 SHA512 bc9b7e2e43b40301cb44271dda1dc410fefcda912a6a199bfe7c309749f5a6ac036e17fe588460a3d78ffabbab6553b83077bb8a5658ca421cd16f8014c042f2 +DIST pgw050c.zip 1159912 BLAKE2B c0133d8ceff0c511d8e6e727eb33b87cef47d549eeb9c11f4db6713ff44fc52a1fbc18e40409f5778ee2f7354fd4561ef2f2cc3875e3985996f1eae19e01307e SHA512 4b782884c32b59d28e47206591060ca44fdeaa7050f5e91a316061fb8287ec0296b5b779638fd462861e96558b79f4b6585c332a783dc6ac7c671113cd57d466 +DIST pgw050de.zip 1172639 BLAKE2B e8557299d1b760e074a1da047f2ef4db27cdfeab91028a4ff682395d0263c81294698e32186a749de7440b7f84cbc71e0fd55ebc692b24b371883c65fbcf6b1a SHA512 69fe3979131b004eb259aef52c83efc1e4ecde951a6f6294ff16e63a9d60d52a6bbe9fadf93b68dd9df988cfcf36c7a13f594a10c54ea531212c3300a11caf18 +DIST pgw050fh.zip 1347072 BLAKE2B 9ffae0773b14c9878456ef497e5d16f78475e87acf805c325ff698043e931f5fa96af52edbffcd1eda6caef139132908841c5c28b5c8825166c4b32aae06404b SHA512 9d8dd9bc71c26dfd1ee42129484073c6c7fae89e2ec77407c4535c50b13c74268cd203d8136d79de75bd9efec920723e6d3e5c65c5dd893e8c3c53d61ccdd4d9 +DIST pgw050il.txt 3726925 BLAKE2B e3d6b6e8bc8fbebfabe41757dd8df64745a1026d277198f1082ccaa4ab9798c3892c5cdeed522a1e5eb9e39342243c77682c126f07a1edb5b48dab59c450f5b0 SHA512 697f6209ef559c8326dcea7360347a1b4da401a49903a2475648dd645a562069cf4da1e471b1f4b3acb558af09171e9c0ae6b09a45af2e63ddae46e7716e5e3f +DIST pgw050mo.zip 1036584 BLAKE2B 5a2ab8bbcb4738850fb52f17a5b56b82347ad95b5c0c630275078942de9c210c4a482cb5a08b629f9f3a15303ed1f76bf1796fac4584e43dd84c5d2e34958ee0 SHA512 6957eaf19ca83a3bf584149b2a205f709dbd8d072fbd7396657b1c7786f02b5f0d21b56bf054221c0057bf27b5d02e7c79f3deced9b7e51f6b9779cf8993db88 +DIST pgw050pq.zip 1044532 BLAKE2B fbd7e3dfbbacdb8154fe6c39ae1d781c238548b5ee1b985d4ed3003ac6a177ce09573a60d5f021630fc6fcc219f446a0682891e8dda0e124554e04bf0c3b8a10 SHA512 0b7993b1c5e5cab7233e6b569d56351c7c27f4727a5c927eb1cee0fca2b2fc854e627b63b61cbfa1403752bdf29675e26d40430be32ba1655451c69bb968f1a8 +DIST pgw050r.zip 601207 BLAKE2B 6fba41c89c755165bec9928796830dbe740c011e9b56983e4da72a8ab391eac3016ff3fd5396f970b7299342092f73b265b9daa223eff455460bb92d0ba194a1 SHA512 15efdfacf33a316441af1c6f2d980bb2e4f74cf15663a25eef2183ad1d50a475efb92a93a0d9ac9540fbc9b2ed89333f29e2e41f4c27c6932757ee4535faaa53 +DIST pgw050s.zip 1421850 BLAKE2B 264ec367db97bdbcc3caf81dd26920d7560a07521c98ee9754d53195d5c94c6d2ec7d8f627a03c92c77534c0f80cb902ef0bfa6db7369f8a7788e4594b641036 SHA512 c2b74ef60f65ea1c504247e6b0b3f3e677f57ef18e62bbae82a599ed37dc57825336f36f7ba060307fe0c6dd62751acb746c4f96677071eb798c5128b01faec0 +DIST pgw050tw.zip 1395640 BLAKE2B bf40aba3dbb3ae82393d54d2842e653759b4c0c206ee225df7134454f3038718dddf9bb9286307223d5232b206f6f24b8e5827702b5759c6fe69a7eef351c9c1 SHA512 1aa46777dbaa429587ebd30c7c4ad9736afe02187861eb60a67348e683afa9660cb76571cc5e57b0a423b9e1761805507173ef67352954935015d60180078052 +DIST pgw050xz.zip 579098 BLAKE2B 6e3155a8ca0a3541d3418527c1f7417b885f6e2f79577a6684dca24fddbcfa03d849f91ea73a9a6cfe27ecf3c5ea2c5c3ee6f31fabef4a1d161a58dafe5a38da SHA512 01d8151afdc185e77b2afbbe0e5602d8518f9ce51d14c25b0a3c9676d40252c42defb320ac843b40b466e2b481b7b7f80b3871c332733d770c5eb4363d4a1991 +DIST web1913-dict-patches-p1.tar.gz 15311 BLAKE2B 0849c15799ff4d7f06c42e22fb9e5693aaf1d16ba4ef77a06007c63bcf32b7cb12c1e526ad969a91f8082f79d10e502e6458fdbd113bd7922cd8b44f920c559e SHA512 b70d1ea571a067b7115572dba18aa1d05c4f51e596482c88c651883ba2937b5b569303a34c75056a0425e7feccab3715bb0c978fa46d539d5ceb56b5e296eb90 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 new file mode 100644 index 000000000..603c3b5ef --- /dev/null +++ b/app-dicts/dictd-web1913/dictd-web1913-0.5.0_p1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +WV="${PV%_p*}" +GV="${WV//.}" + +SN="web1913-dict-patches" +SV="${PV##*_}" +SD="${SN}-${SV}" + +DESCRIPTION="Webster's Revised Unabridged Dictionary (1913) for dict" +HOMEPAGE="http://www.micra.com" +SRC_URI=" + http://www.gutenberg.org/files/660/old/pgw${GV}ab.zip + http://www.gutenberg.org/files/661/old/pgw${GV}c.zip + http://www.gutenberg.org/files/662/old/pgw${GV}de.zip + http://www.gutenberg.org/files/663/old/pgw${GV}fh.zip + http://www.gutenberg.org/files/664/old/pgw${GV}il.txt + http://www.gutenberg.org/files/665/old/pgw${GV}mo.zip + http://www.gutenberg.org/files/666/old/pgw${GV}pq.zip + http://www.gutenberg.org/files/667/old/pgw${GV}r.zip + http://www.gutenberg.org/files/668/old/pgw${GV}s.zip + http://www.gutenberg.org/files/669/old/pgw${GV}tw.zip + http://www.gutenberg.org/files/670/old/pgw${GV}xz.zip + https://git.sr.ht/~ag_eitilt/${SN}/archive/${SV}.tar.gz -> ${SD}.tar.gz +" +S="${WORKDIR}" +LICENSE="public-domain" +SLOT="0" +IUSE="" +KEYWORDS="~amd64" + +RDEPEND=">=app-text/dictd-1.5.5" +BDEPEND=" + ${RDEPEND} + app-arch/unzip + dev-libs/libxslt +" + +PATCHES=( "${SD}/tag-nesting.patch" ) + +src_unpack() { + unpack ${A//pgw${GV}il.txt} + cp "$DISTDIR/pgw${GV}il.txt" . || die + cp "${SD}/xhtml-lat1.ent" "${SD}/xhtml-special.ent" "${SD}/xhtml-symbol.ent" . || die + cp "${SD}/dictfmt-elements.txt" web1913.txt || die +} + +src_prepare() { + default + + sed -e '/ COPYING.gutenberg || die + + for f in $(ls pgw$GV?*.txt) ; do + echo "Cleaning '${f}'" || die + sed -n -e '/ "${f%txt}xml" || die + done +} + +src_compile() { + for f in $(ls pgw050?*.xml) ; do + echo "Processing '${f}'" || die + xsltproc "${SD}/dictfmt-elements.xsl" "${f}" >> web1913.txt || die + done + echo "Building dictionary" || die + dictfmt -u " ${SRC_URI% * ->*}" \ + -s "Webster's Revised Unabridged Dictionary, 1913 edition (v$WV ${SV})" \ + --headword-separator " / " \ + --columns 73 \ + --utf8 \ + -p web1913 \ + < web1913.txt || die + dictzip web1913.dict || die +} + +src_install() { + insinto /usr/share/dict + doins web1913.dict.dz web1913.index +} + +pkg_postrm() { + elog "You must unregister $PN and restart your dictd server before the" + elog "dictionary is completely removed. If you are using OpenRC, both tasks may be" + elog "accomplished by running '/etc/init.d/dictd restart'." +} diff --git a/app-dicts/dictd-web1913/metadata.xml b/app-dicts/dictd-web1913/metadata.xml new file mode 100644 index 000000000..04b8770a1 --- /dev/null +++ b/app-dicts/dictd-web1913/metadata.xml @@ -0,0 +1,14 @@ + + + + + + + Patrick Cassidy + cassidy@micra.com + + + + A database for 'dict'-compatible dictionary software, based on the 1913 edition of Webster's Revised Unabridged Dictionary as digitized by MICRA, Inc. + + -- cgit v1.2.3-65-gdbad