1 |
commit: e60a19f8005228ce3b1830fc7d67674c58352842 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jun 6 01:08:20 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Jun 11 15:23:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e60a19f8 |
7 |
|
8 |
app-dicts/dictd-jargon: new package |
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-jargon/Manifest | 1 + |
14 |
.../dictd-jargon/dictd-jargon-4.2.3-r2.ebuild | 56 ++++++++++++++++++++++ |
15 |
app-dicts/dictd-jargon/metadata.xml | 18 +++++++ |
16 |
3 files changed, 75 insertions(+) |
17 |
|
18 |
diff --git a/app-dicts/dictd-jargon/Manifest b/app-dicts/dictd-jargon/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..2a1af9de4 |
21 |
--- /dev/null |
22 |
+++ b/app-dicts/dictd-jargon/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST jarg423.txt 1413674 BLAKE2B 943fae047e5773fcf4af5e6720533ef2886e6be93e9eb0a10beeb4aa263bde619f639ada35a431992d08bb470a2914201d02e6a83ccc755fcae55f9c96abd9b6 SHA512 98afd7f9f010c7f6c43ba2f368add48c8faf37c922e41de4d804a39bcc2fec6a18de51765a609aa2bd7396baaf3c772a22f1d07ae185ae0fe206dafa166a84ea |
25 |
|
26 |
diff --git a/app-dicts/dictd-jargon/dictd-jargon-4.2.3-r2.ebuild b/app-dicts/dictd-jargon/dictd-jargon-4.2.3-r2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..f7db0c22e |
29 |
--- /dev/null |
30 |
+++ b/app-dicts/dictd-jargon/dictd-jargon-4.2.3-r2.ebuild |
31 |
@@ -0,0 +1,56 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DESCRIPTION="The Jargon File for dict" |
38 |
+HOMEPAGE="http://www.catb.org/~esr/jargon/index.html" |
39 |
+SRC_URI="http://www.catb.org/~esr/jargon/oldversions/jarg${PV//.}.txt" |
40 |
+S="${WORKDIR}" |
41 |
+LICENSE="public-domain" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64" |
44 |
+ |
45 |
+RDEPEND=">=app-text/dictd-1.5.5" |
46 |
+BDEPEND="${RDEPEND}" |
47 |
+ |
48 |
+src_unpack() { |
49 |
+ cp "${DISTDIR}/${A}" jargon.txt || die |
50 |
+} |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ eapply_user |
54 |
+ # This sed script works for all versions >=3.0.0 until <4.4.0 (when the |
55 |
+ # entire format changes). |
56 |
+ sed \ |
57 |
+ -e '/^The Jargon Lexicon/,/:(Lexicon Entries End Here):/!{w jargon.doc' -e 'd}' \ |
58 |
+ -e 's/^ \s*/\t/' -e 's/^ //' \ |
59 |
+ -e 's/\([^\t]\)\t/\1 /g' \ |
60 |
+ -e 's/^\(:[^:]*:\)\s*/\1/' \ |
61 |
+ -e '/^= . =/,/^$/d' \ |
62 |
+ -e '/^\S/{: l;N;s/\n *\(.\)/ \1/g;t l}' \ |
63 |
+ -e 's/\([^A-Za-z ]\) \+\([2-9][0-9]\?\|1[0-9]\)\.\( \+\|$\)/\1\n\n\2. /g' \ |
64 |
+ -e 's/^\([2-9][0-9]\?\|1[0-9]\)\.\( \+\|$\)/\n\1. /g' \ |
65 |
+ -i jargon.txt || die |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ dictfmt -u "$SRC_URI" \ |
70 |
+ -s "The Jargon File (version $PV)" \ |
71 |
+ --columns 80 \ |
72 |
+ -j jargon \ |
73 |
+ < jargon.txt || die |
74 |
+ dictzip jargon.dict || die |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ newdoc jargon.doc jargon.txt |
79 |
+ insinto /usr/share/dict |
80 |
+ doins jargon.dict.dz jargon.index |
81 |
+} |
82 |
+ |
83 |
+pkg_postrm() { |
84 |
+ elog "You must unregister ${PN} and restart your dictd server before the" |
85 |
+ elog "dictionary is completely removed. If you are using OpenRC, both tasks may be" |
86 |
+ elog "accomplished by running '/etc/init.d/dictd restart'." |
87 |
+} |
88 |
|
89 |
diff --git a/app-dicts/dictd-jargon/metadata.xml b/app-dicts/dictd-jargon/metadata.xml |
90 |
new file mode 100644 |
91 |
index 000000000..810d9618d |
92 |
--- /dev/null |
93 |
+++ b/app-dicts/dictd-jargon/metadata.xml |
94 |
@@ -0,0 +1,18 @@ |
95 |
+<?xml version="1.0" encoding="UTF-8"?> |
96 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
97 |
+<pkgmetadata> |
98 |
+ <!-- maintainer needed --> |
99 |
+<upstream> |
100 |
+ <maintainer status="inactive"> |
101 |
+ <name>Eric S. Raymond</name> |
102 |
+ <email>esr@×××××××.com</email> |
103 |
+ </maintainer> |
104 |
+ <maintainer status="inactive"> |
105 |
+ <name>Guy Steele</name> |
106 |
+ <email>gls@×××××.com</email> |
107 |
+ </maintainer> |
108 |
+</upstream> |
109 |
+<longdescription> |
110 |
+ A database for 'dict'-compatible dictionary software, based on the classic Jargon File describing the slang that developed around computer programming in the '70s and '80s. |
111 |
+</longdescription> |
112 |
+</pkgmetadata> |