Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 696248 | Differences between
and this patch

Collapse All | Expand All

(-)a/app-dicts/dictd-devils/Manifest (-3 / +4 lines)
Lines 1-3 Link Here
1
DIST devils-dict-pre.tar.gz 175823 BLAKE2B caf11573aa4a8e1774a15a54eab7ed0a9069588498d51d382e030da7dccca2fb7e03170506becfcdb8246f8802655bca22abe568d839cee608e5310951328d93 SHA512 b085f0b8e8ead1070f31fdcfff7489b09550a92c50fb5e4018f2a953b456871900eee65e91f916e4be155ded20cb906d683bdc5fb5b5370201ce664d8fd8c40d
1
AUX format.patch 4284 BLAKE2B 9d688f2e418278fdf162142b369d8d6a815d31e08b64ddfc3b3fc7fbe3dd628dfd2486a199b914ad6d08a0445240f0647ce4964d0a17a6e9f33f15c1c810d094 SHA512 e7e43b7e4ec875959b9b73f0ce273eb0fb4fce60cb6414f30f0fcbccb54001a48605024c543be34137d84fabc498582d44609f44e3335a8dc05f9a6172e1ed6b
2
EBUILD dictd-devils-0-r1.ebuild 470 BLAKE2B cccac1db5fcf1e7a7101c07e126c8ef2f638c8076efec6c0b841442427eaf60e0cb5c0bfd3b918cf5959dcf302d1d074754c60e4d37c611aabd783554ea75fac SHA512 ad1fa1fc873d5cda0041a511846c85b20f88e6ec2731cd53905192be6220866250b629f3d260d238f1d809310cae9a1093a19fe0fbc0009c96a3819bbce08653
2
DIST dictd-devils-20150822.zip 164703 BLAKE2B cb8ac80e02617c4ced72b81de6e82d9b590953599444cc304647a50c78f080172fc0d15158de8f9a1d42abff37f68732f9076636c8102a2ebd85592c0bb0be10 SHA512 d2264626a8a34df7d9cabb671838b717a40385511d13b58bb60bf78481ad4e7ae6c9ab02a58847dddda7d3957efb3d0f67465fb9eabcbc515e2383fb202684a2
3
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
3
EBUILD dictd-devils-20150822.ebuild 1954 BLAKE2B 48297f777e80aa3d7deb31f68d597419bde75d68dfc8527fca57551266145b2fe1b9fd7b37efd69d01a927bba59330ebe875b247193fbee80027facd443ab537 SHA512 03e0f8bc29d8938ad2ab8263467ad840c2af345aaab002f057946fa2332dcba36fa612e7417eb68022aa12611e914d69b560f558363159b176b39c15400462d7
4
MISC metadata.xml 447 BLAKE2B e32b3b21e2115fb3c7a891970a98a7d51f98842041fbb27bfc83a75a62ada541d42b34da60d6586e420da96ff45fd1624a2eaddacdc4b2288442af914420eb9c SHA512 e0381958e0ef0161a02a346177ef4c6a49e1960f695c986f5187e396f677f32649f13e801f46943b5e57790d6e65726baa5b3b1984180de10e237ffcfc6b6840
(-)a/app-dicts/dictd-devils/dictd-devils-0-r1.ebuild (-22 lines)
Lines 1-22 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=0
5
6
MY_P=devils-dict-pre
7
S=${WORKDIR}
8
DESCRIPTION="The Devil's Dictionary for dict"
9
HOMEPAGE="http://www.dict.org/"
10
SRC_URI="ftp://ftp.dict.org/pub/dict/pre/${MY_P}.tar.gz"
11
12
LICENSE="GPL-2"
13
SLOT="0"
14
IUSE=""
15
KEYWORDS="amd64 ppc ppc64 sparc x86"
16
17
DEPEND=">=app-text/dictd-1.5.5"
18
19
src_install() {
20
	insinto /usr/lib/dict
21
	doins devils.dict.dz devils.index || die
22
}
(-)a/app-dicts/dictd-devils/dictd-devils-20150822.ebuild (+69 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
DESCRIPTION="The Devil's Dictionary for dict"
7
HOMEPAGE="http://www.dict.org/"
8
SRC_URI="http://www.gutenberg.org/files/972/972.zip -> $P.zip"
9
10
LICENSE="public-domain"
11
SLOT="0"
12
IUSE=""
13
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
14
15
DEPEND=">=app-text/dictd-1.5.5"
16
17
S="$WORKDIR"
18
19
src_prepare() {
20
	eapply "$FILESDIR/format.patch"
21
	eapply_user
22
23
	sed -e 's/\r//g' -i 972.txt
24
	sed -e "/^ *THE DEVIL'S DICTIONARY/,/^End of Project Gutenberg's The Devil's Dictionary/!{w COPYING.gutenberg" -e 'd}' -i 972.txt
25
	sed -e '/^\S/{: l;N;s/\n *\(.\)/ \1/g;t l}' -i 972.txt
26
	sed -e "s/^\\([A-Zor .'?-]*[^,A-Zor .'?-]\\)/ \1/" -i 972.txt
27
	sed -e '/^ /y/,/\a/' -i 972.txt
28
}
29
30
src_compile() {
31
	head -n -6 972.txt | \
32
		dictfmt -u "${SRC_URI% ->*}" \
33
		-s "The Devil's Dictionary (2015-08-22 Project Gutenberg version)" \
34
		--headword-separator " or " \
35
		--columns 80 \
36
		-h devils
37
	sed -e 'y/\a/,/' -i devils.dict
38
	dictzip devils.dict
39
}
40
41
src_install() {
42
	dodoc COPYING.gutenberg
43
	insinto /usr/lib/dict
44
	doins devils.dict.dz devils.index || die
45
}
46
47
pkg_preinst() {
48
	HAS_OLD_VERSION=$(has_version app-dicts/$PN)
49
}
50
51
pkg_postinst() {
52
	if $HAS_OLD_VERSION ; then
53
		elog "You must restart your dictd server before the $PN dictionary is"
54
		elog "completely updated.  If you are using OpenRC, this may be accomplished by"
55
		elog "running '/etc/init.d/dictd restart'."
56
	else
57
		elog "You must register $PN and restart your dictd server before the"
58
		elog "dictionary is available for use.  If you are using OpenRC, both tasks may be"
59
		elog "accomplished by running '/etc/init.d/dictd restart'."
60
	fi
61
}
62
63
pkg_postrm() {
64
	if ! $HAS_OLD_VERSION ; then
65
		elog "You must unregister $PN and restart your dictd server before the"
66
		elog "dictionary is completely removed.  If you are using OpenRC, both tasks may be"
67
		elog "accomplished by running '/etc/init.d/dictd restart'."
68
	fi
69
}
(-)a/app-dicts/dictd-devils/files/format.patch (+110 lines)
Line 0 Link Here
1
--- a/972.txt
2
+++ b/972.txt
3
@@ -124,7 +124,7 @@
4
 ABORIGINIES, n.  Persons of little worth found cumbering the soil of a
5
 newly discovered country.  They soon cease to cumber; they fertilize.
6
 
7
-ABRACADABRA.
8
+ABRACADABRA,
9
 
10
   By _Abracadabra_ we signify
11
       An infinite number of things.
12
@@ -1405,7 +1405,7 @@
13
   Ignores the Law as 't were a straw,
14
       And wants to sin--don't let him.
15
 
16
-CUI BONO?  [Latin]  What good would that do _me_?
17
+CUI BONO?,  [Latin]  What good would that do _me_?
18
 
19
 CUNNING, n.  The faculty that distinguishes a weak animal or person
20
 from a strong one.  It brings its possessor much mental satisfaction
21
@@ -2571,7 +2571,7 @@
22
 these persons from swift and awful death is one of the most striking
23
 proofs of God's mercy to those that hate Him.
24
 
25
-FORMA PAUPERIS.  [Latin]  In the character of a poor person--a
26
+FORMA PAUPERIS,  [Latin]  In the character of a poor person--a
27
 method by which a litigant without money for lawyers is considerately
28
 permitted to lose his case.
29
 
30
@@ -3074,7 +3074,7 @@
31
 
32
 
33
 
34
-HABEAS CORPUS.  A writ by which a man may be taken out of jail when
35
+HABEAS CORPUS,  A writ by which a man may be taken out of jail when
36
 confined for the wrong crime.
37
 
38
 HABIT, n.  A shackle for the free.
39
@@ -3539,7 +3539,7 @@
40
 
41
 
42
 
43
-I is the first letter of the alphabet, the first word of the language,
44
+I, is the first letter of the alphabet, the first word of the language,
45
 the first thought of the mind, the first object of affection.  In
46
 grammar it is a pronoun of the first person and singular number.  Its
47
 plural is said to be _We_, but how there can be more than one myself
48
@@ -3718,7 +3718,7 @@
49
 Pollo Doncas
50
 
51
 
52
-IMPOSTOR n.  A rival aspirant to public honors.
53
+IMPOSTOR, n.  A rival aspirant to public honors.
54
 
55
 IMPROBABILITY, n.
56
 
57
@@ -4252,7 +4252,7 @@
58
 
59
 
60
 
61
-J is a consonant in English, but some nations use it as a vowel--
62
+J, is a consonant in English, but some nations use it as a vowel--
63
 than which nothing could be more absurd.  Its original form, which has
64
 been but slightly modified, was that of the tail of a subdued dog, and
65
 it was not a letter but a character, standing for a Latin verb,
66
@@ -4323,7 +4323,7 @@
67
 
68
 
69
 
70
-K is a consonant that we get from the Greeks, but it can be traced
71
+K, is a consonant that we get from the Greeks, but it can be traced
72
 away back beyond them to the Cerathians, a small commercial nation
73
 inhabiting the peninsula of Smero.  In their tongue it was called
74
 _Klatch_, which means "destroyed."  The form of the letter was
75
@@ -4767,7 +4767,7 @@
76
 live with.  The liver is heaven's best gift to the goose; without it
77
 that bird would be unable to supply us with the Strasbourg _pate_.
78
 
79
-LL.D.  Letters indicating the degree _Legumptionorum Doctor_, one
80
+LL.D.,  Letters indicating the degree _Legumptionorum Doctor_, one
81
 learned in laws, gifted with legal gumption.  Some suspicion is cast
82
 upon this derivation by the fact that the title was formerly _LL.d._,
83
 and conferred only upon gentlemen distinguished for their wealth.  At
84
@@ -8612,7 +8612,7 @@
85
 civilization and enlightenment, despite their obvious agency in this
86
 incomparable dictionary.
87
 
88
-TZETZE (or TSETSE) FLY, n.  An African insect (_Glossina morsitans_)
89
+TZETZE FLY or TSETSE FLY, n.  An African insect (_Glossina morsitans_)
90
 whose bite is commonly regarded as nature's most efficacious remedy
91
 for insomnia, though some patients prefer that of the American
92
 novelist (_Mendax interminabilis_).
93
@@ -8781,7 +8781,7 @@
94
 
95
 
96
 
97
-W (double U) has, of all the letters in our alphabet, the only
98
+W, (double U) has, of all the letters in our alphabet, the only
99
 cumbrous name, the names of the others being monosyllabic.  This
100
 advantage of the Roman alphabet over the Grecian is the more valued
101
 after audibly spelling out some simple Greek word, like
102
@@ -9040,7 +9040,7 @@
103
 
104
 
105
 
106
-X in our alphabet being a needless letter has an added invincibility
107
+X, in our alphabet being a needless letter has an added invincibility
108
 to the attacks of the spelling reformers, and like them, will
109
 doubtless last as long as the language.  X is the sacred symbol of ten
110
 dollars, and in such words as Xmas, Xn, etc., stands for Christ, not,
(-)a/app-dicts/dictd-devils/metadata.xml (-1 / +8 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
3
<pkgmetadata>
4
<!-- maintainer-needed -->
4
<maintainer type="person">
5
	<name>Samuel May</name>
6
	<email>ag.eitilt@gmail.com</email>
7
	<description>Primary ebuild maintainer</description>
8
</maintainer>
9
<longdescription>
10
	A database for 'dict'-compatible dictionary software, based on Ambrose Bierce's satirical The Devil's Dictionary.
11
</longdescription>
5
</pkgmetadata>
12
</pkgmetadata>
(-)a/app-dicts/dictd-elements/Manifest (-3 / +3 lines)
Lines 1-3 Link Here
1
DIST elements-20001107-pre.tar.gz 16934 BLAKE2B 5b351c30cdc8fc6161a1ff1c2ccfc0b3ae9456d8fec9b57215ff20b07b99b4b267fd1824981458eb9e27ba6d628f5aa23b282dfe4a529752f7301447fc10b3c1 SHA512 93c8426582e0715eb1f261ab60b15da48943464993a027693617f699a4a2ee89d33f19ba820ae046e1221d8d57139d54987a2abf35b6c59ba26c2b66199cf51b
1
DIST dictd-elements-20030309.db 46325 BLAKE2B 70b5003a1dc5825ef67c4b2ceb8a322d5827cc28c3be61ea2d2e125343b1d03816385ea298c9794e25edf1f1e4361bc8f141876b1fba3f9005926a33ad28bffe SHA512 a09d152f4b7ed6f0fb43d7eed08abd469565b0d63d92e965e872dc90174298f8c661c9c22ab9c605fc865d7e1f3366dcbd27d17f1be274d0610b0938f8bb9b40
2
EBUILD dictd-elements-2000.22.07-r1.ebuild 479 BLAKE2B 5fd9bd8b5582894b68cbe6ca141db4b5202fe38be7c0e2b2751e6c8cddaa6cc359938b717d513771fd58d86d03f86c4d85b0869a5760fa618f6934c4a0d62cdd SHA512 74deec90bd5eae3622950320eaef87d78a9f58888bfcfca883b045fb28fe73e5da1dd253f9a94e6b40b9ead048d99803b0ea5e331f26d3ada376a4462b1d2c33
2
EBUILD dictd-elements-20030309.ebuild 1744 BLAKE2B 5568599a55caec6dd78c24e74ab9bdd57b09b93ff13deab0c8f9bfba0b321243f3fe492e50258edd2c14754f298da13945a23cab8f9613cfd38ddadfb6a5c4b4 SHA512 af26c37506fdbc9e5cc97047e5e0905d12807848c08d1d8a52ec23b83fdd6aea0b1424a227eecd54cc98919ebf42265634d2718f14d9fe82aae9a8cdecd757d5
3
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
3
MISC metadata.xml 544 BLAKE2B 0b49e39cb85cb8639430a096a32a751c3b12d6ea0ea2ae33bef9800da183dbb8fb727747bf480498657f4a8a149d80aee446de628df0a8edb17417ac8feb4fb8 SHA512 ad68116d797e27193389fa24c578d6e2dcebf12f24c56f4c1c493be38b73db95af9d37faa5f6e468d8b7fd2da4d07e87898331e2a4f5d87434e3b48212b89c2f
(-)a/app-dicts/dictd-elements/dictd-elements-2000.22.07-r1.ebuild (-23 lines)
Lines 1-23 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=0
5
6
MY_P=elements-20001107-pre
7
DESCRIPTION="The elements database for dict"
8
SRC_URI="ftp://ftp.dict.org/pub/dict/pre/${MY_P}.tar.gz"
9
HOMEPAGE="http://www.dict.org"
10
11
LICENSE="GPL-2"
12
SLOT="0"
13
IUSE=""
14
KEYWORDS="amd64 ppc ppc64 sparc x86"
15
16
DEPEND=">=app-text/dictd-1.5.5"
17
18
S=${WORKDIR}
19
20
src_install() {
21
	insinto /usr/lib/dict
22
	doins elements.dict.dz elements.index || die
23
}
(-)a/app-dicts/dictd-elements/dictd-elements-20030309.ebuild (+64 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
DESCRIPTION="Jay Kominek's database of the elements for dict"
7
HOMEPAGE="http://www.dict.org"
8
SRC_URI="https://web.archive.org/web/20121223051336/http://www.miranda.org:80/~jkominek/elements/elements.db -> $P.db"
9
10
LICENSE="public-domain"
11
SLOT="0"
12
IUSE=""
13
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
14
15
DEPEND=">=app-text/dictd-1.5.5"
16
17
S="$WORKDIR"
18
19
src_unpack() {
20
	cp "$DISTDIR/$A" elements.db
21
}
22
23
src_prepare() {
24
	eapply_user
25
	sed -e '/^%h/{h;n;n;s/Symbol: //;T;x;G;s/\n/ /}' -i elements.db
26
	sed -e '/^%h/{N;N;s/%h.*\n%d\n\(%h.*\)/\1\n%d/}' -i elements.db
27
}
28
29
src_compile() {
30
	dictfmt -u "${SRC_URI% ->*}" \
31
		-s "Jay Kominek's Elements database (version $PV)" \
32
		--headword-separator " " \
33
		--columns 80 \
34
		-p elements \
35
		< elements.db
36
	dictzip elements.dict
37
}
38
39
src_install() {
40
	insinto /usr/lib/dict
41
	doins elements.dict.dz elements.index || die
42
}
43
44
pkg_preinst() {
45
	HAS_OLD_VERSION=$(has_version app-dicts/$PN)
46
}
47
48
pkg_postinst() {
49
	if $HAS_OLD_VERSION ; then
50
		elog "You must restart your dictd server before the $PN dictionary is"
51
		elog "completely updated.  If you are using OpenRC, this may be accomplished by"
52
		elog "running '/etc/init.d/dictd restart'."
53
	else
54
		elog "You must register $PN and restart your dictd server before the"
55
		elog "dictionary is available for use.  If you are using OpenRC, both tasks may be"
56
		elog "accomplished by running '/etc/init.d/dictd restart'."
57
	fi
58
}
59
60
pkg_postrm() {
61
	elog "You must unregister $PN and restart your dictd server before the"
62
	elog "dictionary is completely removed.  If you are using OpenRC, both tasks may be"
63
	elog "accomplished by running '/etc/init.d/dictd restart'."
64
}
(-)a/app-dicts/dictd-elements/metadata.xml (-1 / +13 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
3
<pkgmetadata>
4
<!-- maintainer-needed -->
4
<maintainer type="person">
5
	<name>Samuel May</name>
6
	<email>ag.eitilt@gmail.com</email>
7
	<description>Primary ebuild maintainer</description>
8
</maintainer>
9
<upstream>
10
	<maintainer status="inactive">
11
		<name>Jay Kominek</name>
12
	</maintainer>
13
</upstream>
14
<longdescription>
15
	A database for 'dict'-compatible dictionary software, based on Jay Kominek's descriptions of the atomic elements.
16
</longdescription>
5
</pkgmetadata>
17
</pkgmetadata>
(-)a/app-dicts/dictd-foldoc/Manifest (-3 / +3 lines)
Lines 1-3 Link Here
1
DIST foldoc-20010313.tar.gz 2166599 BLAKE2B 5f9c7cf2875ef75dd278a94fa2eecdbbad7b891442e1755fc801fde80861d6adcf66d76c93580660440f2c5eb0fb5f234fa4ee0e4b9adbd930cbfdb6855db6bb SHA512 bcea2e6e350e7dc9c7811dd7904ea646ace3e2d6421c9f8f04a14e317fde07a0a8f3028ec7d108ee6fdeba21fd6a72e17d67f4e13d53ccb582908e73df6c1a53
1
DIST dictd-foldoc-20180405.txt 5413737 BLAKE2B 18152975d8ac0cdcde3141324f60430df1933b3c139b4fa156e0915e5062dcc97f2e2201f16ac5c1d0a552f2ada9f652d71e2845907afc9847960f5860b005a1 SHA512 da165a6673c592940655a9bf8c7d94da4e4586518bbb4bbe8130a5fdc7bf16b70703d757ee107a832c90d7b2701f00dba9e61097725c52a9632a093bee52da2c
2
EBUILD dictd-foldoc-2001.03.13-r1.ebuild 489 BLAKE2B 20c017def2051d026aefbe0c7b556ca65eb9157c584d39b2a54988975bfe6e6f17a6d3d2b07ad0abdb260a7e1689782649bc44566520d71b6e06ac87851e2d05 SHA512 47cd4c7a38fce05331890deeb2dabc93a04ca71d69d8f33f65169835536174ff0062dbdf8602a286b293b0cc2ba0343c425c849165cbd5492ae079efb93465e8
2
EBUILD dictd-foldoc-20180405.ebuild 1625 BLAKE2B d143ae0f69fd70f7b923277248c34afaa1596753a481c6e75600ccecdaea311f54935fd7736d444576ba5e70260b637da6f1863b1ef767c5bbd2c912f9cfce27 SHA512 824ea1da255e7fd6cba2de221539c7e9ce252f5c994034bf071ba91cf8b89aa0beb2e623fc48140c9de3661c050bd14c2779a9a656be395d7b6655ceeca386fe
3
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
3
MISC metadata.xml 555 BLAKE2B 3b4c9ea576c9c768ca5843387f495e298f41d2a742487a978451f8b5a8314159a406e75234e999387a307ec8ba6090f79adc8bad2383e0f13bfa64055d5539d2 SHA512 ae1337490e156ffeaead49c5f09aaca0d0fe89377578ce6da0fafb186c960d1fc9b7cd2dcfcddfd861fc86192d723565f813bd00722d576aac8241d281fb0a6a
(-)a/app-dicts/dictd-foldoc/dictd-foldoc-2001.03.13-r1.ebuild (-23 lines)
Lines 1-23 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=0
5
6
MY_P=foldoc-20010313
7
DESCRIPTION="The Free On-line Dictionary of Computing for dict"
8
HOMEPAGE="http://www.dict.org/"
9
SRC_URI="ftp://ftp.dict.org/pub/dict/pre/${MY_P}.tar.gz"
10
11
LICENSE="GPL-2"
12
SLOT="0"
13
IUSE=""
14
KEYWORDS="amd64 ppc ppc64 sparc x86"
15
16
DEPEND=">=app-text/dictd-1.5.5"
17
18
S=${WORKDIR}
19
20
src_install() {
21
	insinto /usr/lib/dict
22
	doins foldoc.dict.dz foldoc.index || die
23
}
(-)a/app-dicts/dictd-foldoc/dictd-foldoc-20180405.ebuild (+62 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
DESCRIPTION="The Free On-line Dictionary of Computing for dict"
7
HOMEPAGE="https://foldoc.org/"
8
SRC_URI="https://web.archive.org/web/20180405153121/http://foldoc.org/Dictionary -> $P.txt"
9
10
LICENSE="FDL-1.1+"
11
SLOT="0"
12
IUSE=""
13
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
14
15
DEPEND=">=app-text/dictd-1.5.5"
16
17
S="$WORKDIR"
18
19
src_unpack() {
20
	cp "$DISTDIR/$A" foldoc.txt
21
}
22
23
src_prepare() {
24
	eapply_user
25
	sed -e '/^$/{N;s/\n\([^\t]\+\)/\1/g;T;h;n;d}' -i foldoc.txt
26
}
27
28
src_compile() {
29
	tail -n +3 foldoc.txt | \
30
		dictfmt -u "$HOMEPAGE/Dictionary" \
31
		-s "The Free On-line Dictionary of Computing (version $PV)" \
32
		--utf8 \
33
		-f foldoc
34
	dictzip foldoc.dict
35
}
36
37
src_install() {
38
	insinto /usr/lib/dict
39
	doins foldoc.dict.dz foldoc.index || die
40
}
41
42
pkg_preinst() {
43
	HAS_OLD_VERSION=$(has_version app-dicts/$PN)
44
}
45
46
pkg_postinst() {
47
	if $HAS_OLD_VERSION ; then
48
		elog "You must restart your dictd server before the $PN dictionary is"
49
		elog "completely updated.  If you are using OpenRC, this may be accomplished by"
50
		elog "running '/etc/init.d/dictd restart'."
51
	else
52
		elog "You must register $PN and restart your dictd server before the"
53
		elog "dictionary is available for use.  If you are using OpenRC, both tasks may be"
54
		elog "accomplished by running '/etc/init.d/dictd restart'."
55
	fi
56
}
57
58
pkg_postrm() {
59
	elog "You must unregister $PN and restart your dictd server before the"
60
	elog "dictionary is completely removed.  If you are using OpenRC, both tasks may be"
61
	elog "accomplished by running '/etc/init.d/dictd restart'."
62
}
(-)a/app-dicts/dictd-foldoc/metadata.xml (-1 / +13 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
3
<pkgmetadata>
4
<!-- maintainer-needed -->
4
<maintainer type="person">
5
	<name>Samuel May</name>
6
	<email>ag.eitilt@gmail.com</email>
7
	<description>Primary ebuild maintainer</description>
8
</maintainer>
9
<upstream>
10
	<maintainer>
11
		<name>Denis Howe</name>
12
	</maintainer>
13
</upstream>
14
<longdescription>
15
	A database for 'dict'-compatible dictionary software, based on the Free On-line Dictionary of Computing describing various topics in computing.
16
</longdescription>
5
</pkgmetadata>
17
</pkgmetadata>
(-)a/app-dicts/dictd-jargon/Manifest (-3 / +3 lines)
Lines 1-3 Link Here
1
DIST jargon_4.2.3.tar.gz 650370 BLAKE2B ba3198fbd371fc9cef53edc465ad165364981deb315d5abc0d7dcd9d0cfee4afd3bad9554845ac2c5f98d547081890b474eba3557b9f61e69a235708f8841745 SHA512 7eba12c741cc2be7ab77c061fde38f7f083bf54d37428c3b6eb567bdde7002b6e70fd73411e354c8b5124ec2d7dd9ef1030b7cf8dec3d0b89ac450cf20ed22c7
1
DIST jarg423.txt 1413674 BLAKE2B 943fae047e5773fcf4af5e6720533ef2886e6be93e9eb0a10beeb4aa263bde619f639ada35a431992d08bb470a2914201d02e6a83ccc755fcae55f9c96abd9b6 SHA512 98afd7f9f010c7f6c43ba2f368add48c8faf37c922e41de4d804a39bcc2fec6a18de51765a609aa2bd7396baaf3c772a22f1d07ae185ae0fe206dafa166a84ea
2
EBUILD dictd-jargon-4.2.3-r1.ebuild 473 BLAKE2B 0a7e25c850a32c3e20447d3569f2d73fbd17b1f635516cbca4081445d0ca7b9be3028e3c70591adbc46590c2514e098f15e53d3a0fac050922adcc55b0be5410 SHA512 fc51bc49d35e9f6ea186925bcce9fba86deca88b69be2439ab0f6f4bcdc1c513512783696ad36909867ff75b97e9249bba1a99ec6ee8a59ae6e60e3a1b820434
2
EBUILD dictd-jargon-4.2.3-r2.ebuild 2115 BLAKE2B 2732485c7568e6ed83b42b9e106a833c78bbf9ceb64263f058a34e12a07b12d0c31eaceaf8d48e3a6d9cba2702f2b91b3e11fc4da4c1b73af9439aa03ff61238 SHA512 7093d9fe969d4ef9a759a9dbff9a735b10fbef85ac9c4eea27f7428c8eaba18482366d699d8583e723fde8a2cd4dbd4245f6ce0956f2e79e394a99628b253b84
3
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
3
MISC metadata.xml 741 BLAKE2B a65e47b1c232936db4fb56ac8cde52a5b86ae8ef880ab3c0c0169da1e05bee8e2f6baa7b348a46107ad5d0b4819718f5055f4559add9c5c0cac273e03f041076 SHA512 fff599050cff274f0c8b750179c4518036dee653fa010bf9db9fa86952e58457846c97c377411db8bfcfc4176cff6fc09735b633abc23a1bab528aa475824c6f
(-)a/app-dicts/dictd-jargon/dictd-jargon-4.2.3-r1.ebuild (-24 lines)
Lines 1-24 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=0
5
6
MY_P=${PN/dictd-/}_${PV}
7
DESCRIPTION="Jargon lexicon"
8
HOMEPAGE="http://www.dict.org/"
9
SRC_URI="ftp://ftp.dict.org/pub/dict/pre/${MY_P}.tar.gz"
10
11
LICENSE="GPL-2"
12
SLOT="0"
13
IUSE=""
14
KEYWORDS="amd64 ppc ppc64 sparc x86"
15
16
DEPEND=">=app-text/dictd-1.5.5"
17
18
S=${WORKDIR}
19
20
src_install () {
21
	dodoc README
22
	insinto /usr/lib/dict
23
	doins jargon.dict.dz jargon.index || die
24
}
(-)a/app-dicts/dictd-jargon/dictd-jargon-4.2.3-r2.ebuild (+73 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
DESCRIPTION="The Jargon File for dict"
7
HOMEPAGE="http://www.catb.org/~esr/jargon/index.html"
8
SRC_URI="http://www.catb.org/~esr/jargon/oldversions/jarg${PV//.}.txt"
9
10
LICENSE="public-domain"
11
SLOT="0"
12
IUSE=""
13
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
14
15
DEPEND=">=app-text/dictd-1.5.5"
16
17
S="$WORKDIR"
18
19
src_unpack() {
20
	cp "$DISTDIR/$A" jargon.txt
21
}
22
23
src_prepare() {
24
	eapply_user
25
	# This sed script works for all versions >=3.0.0 until <4.4.0 (when the
26
	# entire format changes).
27
	sed -e '/^The Jargon Lexicon/,/:(Lexicon Entries End Here):/!{w jargon.doc' -e 'd}' -i jargon.txt
28
	sed -e 's/^    \s*/\t/' -e 's/^   //' -i jargon.txt
29
	sed -e 's/\([^\t]\)\t/\1  /g' -i jargon.txt
30
	sed -e 's/^\(:[^:]*:\)\s*/\1/' -i jargon.txt
31
	sed -e '/^= . =/,/^$/d' -i jargon.txt
32
	sed -e '/^\S/{: l;N;s/\n *\(.\)/ \1/g;t l}' \
33
		-e 's/\([^A-Za-z ]\) \+\([2-9][0-9]\?\|1[0-9]\)\.\( \+\|$\)/\1\n\n\2. /g' \
34
		-e 's/^\([2-9][0-9]\?\|1[0-9]\)\.\( \+\|$\)/\n\1. /g' \
35
		-i jargon.txt
36
}
37
38
src_compile() {
39
	dictfmt -u "$SRC_URI" \
40
		-s "The Jargon File (version $PV)" \
41
		--columns 80 \
42
		-j jargon \
43
		< jargon.txt
44
	dictzip jargon.dict
45
}
46
47
src_install() {
48
	newdoc jargon.doc jargon.txt
49
	insinto /usr/lib/dict
50
	doins jargon.dict.dz jargon.index || die
51
}
52
53
pkg_preinst() {
54
	HAS_OLD_VERSION=$(has_version app-dicts/$PN)
55
}
56
57
pkg_postinst() {
58
	if $HAS_OLD_VERSION ; then
59
		elog "You must restart your dictd server before the $PN dictionary is"
60
		elog "completely updated.  If you are using OpenRC, this may be accomplished by"
61
		elog "running '/etc/init.d/dictd restart'."
62
	else
63
		elog "You must register $PN and restart your dictd server before the"
64
		elog "dictionary is available for use.  If you are using OpenRC, both tasks may be"
65
		elog "accomplished by running '/etc/init.d/dictd restart'."
66
	fi
67
}
68
69
pkg_postrm() {
70
	elog "You must unregister $PN and restart your dictd server before the"
71
	elog "dictionary is completely removed.  If you are using OpenRC, both tasks may be"
72
	elog "accomplished by running '/etc/init.d/dictd restart'."
73
}
(-)a/app-dicts/dictd-jargon/metadata.xml (-1 / +18 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
3
<pkgmetadata>
4
<!-- maintainer-needed -->
4
<maintainer type="person">
5
	<name>Samuel May</name>
6
	<email>ag.eitilt@gmail.com</email>
7
	<description>Primary ebuild maintainer</description>
8
</maintainer>
9
<upstream>
10
	<maintainer status="inactive">
11
		<name>Eric Raymond</name>
12
		<email>esr@thyrsus.com</email>
13
	</maintainer>
14
	<maintainer status="inactive">
15
		<name>Guy Steele</name>
16
		<email>gls@think.com</email>
17
	</maintainer>
18
</upstream>
19
<longdescription>
20
	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.
21
</longdescription>
5
</pkgmetadata>
22
</pkgmetadata>
(-)a/app-dicts/dictd-web1913/Manifest (-3 / +14 lines)
Lines 1-3 Link Here
1
DIST dict-web1913-1.4-pre.tar.gz 13147422 BLAKE2B ef142f5bdb20b2def00feee6bfa58b5056c156918fa2e51882f83cc8738ad3f8a646900249a83c0c287363676dc8c1d26d104adfc931ce3384bdc6cb879c7f60 SHA512 028aece920edf52672f7abf59d962f539b6704722a781296108d648a3327506bf8b2b486ecc97688e9de37a265f8f30342c8b147fcb101c46269b43c2d2b55e1
1
DIST pgw050ab.zip 1400825 BLAKE2B 7145d4ba24bb5dbfc89c6d2437a7056e1be3bf778040831e7b2e3f0420f9811c3b4f803238b174c76932c77099f3ab8f9144b410d219085068d8a7d09cf3e432 SHA512 bc9b7e2e43b40301cb44271dda1dc410fefcda912a6a199bfe7c309749f5a6ac036e17fe588460a3d78ffabbab6553b83077bb8a5658ca421cd16f8014c042f2
2
EBUILD dictd-web1913-1.4-r1.ebuild 495 BLAKE2B 63a1dd167aea7e995c8bdbeffe0bc8927b0b990a2c22abd6bff30f132674ac8f816ad26664dba34af02e601a7cfc4e68ca68ce210fae3b035be68e77f3fef10b SHA512 65807bc9e225a48c4ab33a54c68f27fd90785626bdce212cb545c2bd81b638d370ca150b6c171b2c5547edffdf41e3fbc2342b8a3c59c0f737c38619d86f92ad
2
DIST pgw050c.zip 1159912 BLAKE2B c0133d8ceff0c511d8e6e727eb33b87cef47d549eeb9c11f4db6713ff44fc52a1fbc18e40409f5778ee2f7354fd4561ef2f2cc3875e3985996f1eae19e01307e SHA512 4b782884c32b59d28e47206591060ca44fdeaa7050f5e91a316061fb8287ec0296b5b779638fd462861e96558b79f4b6585c332a783dc6ac7c671113cd57d466
3
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
3
DIST pgw050de.zip 1172639 BLAKE2B e8557299d1b760e074a1da047f2ef4db27cdfeab91028a4ff682395d0263c81294698e32186a749de7440b7f84cbc71e0fd55ebc692b24b371883c65fbcf6b1a SHA512 69fe3979131b004eb259aef52c83efc1e4ecde951a6f6294ff16e63a9d60d52a6bbe9fadf93b68dd9df988cfcf36c7a13f594a10c54ea531212c3300a11caf18
4
DIST pgw050fh.zip 1347072 BLAKE2B 9ffae0773b14c9878456ef497e5d16f78475e87acf805c325ff698043e931f5fa96af52edbffcd1eda6caef139132908841c5c28b5c8825166c4b32aae06404b SHA512 9d8dd9bc71c26dfd1ee42129484073c6c7fae89e2ec77407c4535c50b13c74268cd203d8136d79de75bd9efec920723e6d3e5c65c5dd893e8c3c53d61ccdd4d9
5
DIST pgw050il.txt 3726925 BLAKE2B e3d6b6e8bc8fbebfabe41757dd8df64745a1026d277198f1082ccaa4ab9798c3892c5cdeed522a1e5eb9e39342243c77682c126f07a1edb5b48dab59c450f5b0 SHA512 697f6209ef559c8326dcea7360347a1b4da401a49903a2475648dd645a562069cf4da1e471b1f4b3acb558af09171e9c0ae6b09a45af2e63ddae46e7716e5e3f
6
DIST pgw050mo.zip 1036584 BLAKE2B 5a2ab8bbcb4738850fb52f17a5b56b82347ad95b5c0c630275078942de9c210c4a482cb5a08b629f9f3a15303ed1f76bf1796fac4584e43dd84c5d2e34958ee0 SHA512 6957eaf19ca83a3bf584149b2a205f709dbd8d072fbd7396657b1c7786f02b5f0d21b56bf054221c0057bf27b5d02e7c79f3deced9b7e51f6b9779cf8993db88
7
DIST pgw050pq.zip 1044532 BLAKE2B fbd7e3dfbbacdb8154fe6c39ae1d781c238548b5ee1b985d4ed3003ac6a177ce09573a60d5f021630fc6fcc219f446a0682891e8dda0e124554e04bf0c3b8a10 SHA512 0b7993b1c5e5cab7233e6b569d56351c7c27f4727a5c927eb1cee0fca2b2fc854e627b63b61cbfa1403752bdf29675e26d40430be32ba1655451c69bb968f1a8
8
DIST pgw050r.zip 601207 BLAKE2B 6fba41c89c755165bec9928796830dbe740c011e9b56983e4da72a8ab391eac3016ff3fd5396f970b7299342092f73b265b9daa223eff455460bb92d0ba194a1 SHA512 15efdfacf33a316441af1c6f2d980bb2e4f74cf15663a25eef2183ad1d50a475efb92a93a0d9ac9540fbc9b2ed89333f29e2e41f4c27c6932757ee4535faaa53
9
DIST pgw050s.zip 1421850 BLAKE2B 264ec367db97bdbcc3caf81dd26920d7560a07521c98ee9754d53195d5c94c6d2ec7d8f627a03c92c77534c0f80cb902ef0bfa6db7369f8a7788e4594b641036 SHA512 c2b74ef60f65ea1c504247e6b0b3f3e677f57ef18e62bbae82a599ed37dc57825336f36f7ba060307fe0c6dd62751acb746c4f96677071eb798c5128b01faec0
10
DIST pgw050tw.zip 1395640 BLAKE2B bf40aba3dbb3ae82393d54d2842e653759b4c0c206ee225df7134454f3038718dddf9bb9286307223d5232b206f6f24b8e5827702b5759c6fe69a7eef351c9c1 SHA512 1aa46777dbaa429587ebd30c7c4ad9736afe02187861eb60a67348e683afa9660cb76571cc5e57b0a423b9e1761805507173ef67352954935015d60180078052
11
DIST pgw050xz.zip 579098 BLAKE2B 6e3155a8ca0a3541d3418527c1f7417b885f6e2f79577a6684dca24fddbcfa03d849f91ea73a9a6cfe27ecf3c5ea2c5c3ee6f31fabef4a1d161a58dafe5a38da SHA512 01d8151afdc185e77b2afbbe0e5602d8518f9ce51d14c25b0a3c9676d40252c42defb320ac843b40b466e2b481b7b7f80b3871c332733d770c5eb4363d4a1991
12
DIST web1913-dict-patches-p1.tar.gz 15247 BLAKE2B 814a5ca36c6b33f065e8fa6f6550d4344434eba9eee3af5bdb1ce6ddba5ebb6c90d3cf4d9ac74b49ab1a113c176711ec73f828bec49172eaf80c8d182746864b SHA512 d49d8c42148a52b170de61118b3f7c2510b5341af2603c00b6565634380ef2b024b3a6396e2cb2139e05c6a49733d76d72c011811a931210662e159f733ff428
13
EBUILD dictd-web1913-0.5.0_p1.ebuild 3026 BLAKE2B 3a38235a7bfdc65aece86eb250bb1f031ba2470062214b4ebdec3e54976144b37edb1add7094ae121792fac3059261a440c61416b4c33c4261cf2a56464d8159 SHA512 5b9c7a7e270b0c3fc715e9996783a2c19c9a673de6367668c4ac10884b07d8d73c5a8cec6af969fc73576399c80e738e827ba38fdaa267b9e1b4a36d9ea5089f
14
MISC metadata.xml 595 BLAKE2B 6d72a618900f53519ff8262fece939bda02af071a4707e4b81a55c522fe8d3a9460af0af55b8acc931d7d340f3442e2fe6a830962d4a1779f38c016bf30e9c1d SHA512 d9ed1be7cc2c8fe702fa8e5e41e18e14f2e1597aaa36b3976084ea6bef74f8e8626aee66319f67831379fe48a11d19e331aa0d8ed22d2374ae9cfc428f25cc19
(-)a/app-dicts/dictd-web1913/dictd-web1913-0.5.0_p1.ebuild (+102 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
WV=${PV%_p*}
7
GV=${WV//.}
8
9
SN="web1913-dict-patches"
10
SV=${PV##*_}
11
SD="$SN-$SV"
12
13
DESCRIPTION="Webster's Revised Unabridged Dictionary (1913) for dict"
14
HOMEPAGE="http://www.micra.com/"
15
SRC_URI="http://www.gutenberg.org/files/660/old/pgw${GV}ab.zip \
16
	http://www.gutenberg.org/files/661/old/pgw${GV}c.zip \
17
	http://www.gutenberg.org/files/662/old/pgw${GV}de.zip \
18
	http://www.gutenberg.org/files/663/old/pgw${GV}fh.zip \
19
	http://www.gutenberg.org/files/664/old/pgw${GV}il.txt \
20
	http://www.gutenberg.org/files/665/old/pgw${GV}mo.zip \
21
	http://www.gutenberg.org/files/666/old/pgw${GV}pq.zip \
22
	http://www.gutenberg.org/files/667/old/pgw${GV}r.zip \
23
	http://www.gutenberg.org/files/668/old/pgw${GV}s.zip \
24
	http://www.gutenberg.org/files/669/old/pgw${GV}tw.zip \
25
	http://www.gutenberg.org/files/670/old/pgw${GV}xz.zip \
26
	https://git.sr.ht/~ag_eitilt/$SN/archive/$SV.tar.gz -> $SD.tar.gz"
27
28
LICENSE="public-domain"
29
SLOT="0"
30
IUSE=""
31
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
32
33
DEPEND=">=app-text/dictd-1.5.5 \
34
	dev-libs/libxslt"
35
36
S="$WORKDIR"
37
38
src_unpack() {
39
	unpack ${A//pgw${GV}il.txt}
40
	cp "$DISTDIR/pgw${GV}il.txt" .
41
	cp "$SD/xhtml-lat1.ent" "$SD/xhtml-special.ent" "$SD/xhtml-symbol.ent" .
42
	cp "$SD/dictfmt-elements.txt" web1913.txt
43
}
44
45
src_prepare() {
46
	eapply "$SD/tag-nesting.patch"
47
	eapply_user
48
49
	sed -e '/<! Begin file/,$ d' pgw050c.txt > COPYING.gutenberg
50
51
	for f in $(ls pgw$GV?*.txt) ; do
52
		echo "Cleaning '$f'"
53
		sed -n -e '/<! Begin file/,$ p' -i "$f"
54
		sed -f "$SD/cleanup.sed" -i "$f"
55
		cat "$SD/micra-head.xml" "$f" "$SD/micra-foot.xml" > "${f%txt}xml"
56
	done
57
}
58
59
src_compile() {
60
	for f in $(ls pgw050?*.xml) ; do
61
		echo "Processing '$f'"
62
		xsltproc "$SD/dictfmt-elements.xsl" "$f" >> web1913.txt
63
	done
64
	echo "Building dictionary"
65
	dictfmt -u " ${SRC_URI% * ->*}" \
66
		-s "Webster's Revised Unabridged Dictionary, 1913 edition (v$WV $SV)" \
67
		--headword-separator " / " \
68
		--columns 73 \
69
		--utf8 \
70
		-p web1913 \
71
		< web1913.txt
72
	dictzip web1913.dict
73
}
74
75
src_install() {
76
	dodoc COPYING.gutenberg "$SD/README"
77
	newdoc "$SD/dictfmt-elements.txt" COPYING.micra
78
	insinto /usr/lib/dict
79
	doins web1913.dict.dz web1913.index || die
80
}
81
82
pkg_preinst() {
83
	HAS_OLD_VERSION=$(has_version app-dicts/$PN)
84
}
85
86
pkg_postinst() {
87
	if $HAS_OLD_VERSION ; then
88
		elog "You must restart your dictd server before the $PN dictionary is"
89
		elog "completely updated.  If you are using OpenRC, this may be accomplished by"
90
		elog "running '/etc/init.d/dictd restart'."
91
	else
92
		elog "You must register $PN and restart your dictd server before the"
93
		elog "dictionary is available for use.  If you are using OpenRC, both tasks may be"
94
		elog "accomplished by running '/etc/init.d/dictd restart'."
95
	fi
96
}
97
98
pkg_postrm() {
99
	elog "You must unregister $PN and restart your dictd server before the"
100
	elog "dictionary is completely removed.  If you are using OpenRC, both tasks may be"
101
	elog "accomplished by running '/etc/init.d/dictd restart'."
102
}
(-)a/app-dicts/dictd-web1913/dictd-web1913-1.4-r1.ebuild (-23 lines)
Lines 1-23 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=0
5
6
MY_P=${P/td/t}-pre
7
DESCRIPTION="Webster's Revised Unabridged Dictionary (1913) for dict"
8
HOMEPAGE="http://www.dict.org/"
9
SRC_URI="ftp://ftp.dict.org/pub/dict/pre/${MY_P}.tar.gz"
10
11
LICENSE="GPL-2"
12
SLOT="0"
13
IUSE=""
14
KEYWORDS="amd64 ppc ppc64 sparc x86"
15
16
DEPEND=">=app-text/dictd-1.5.5"
17
18
S=${WORKDIR}
19
20
src_install() {
21
	insinto /usr/lib/dict
22
	doins web1913.dict.dz web1913.index || die
23
}
(-)a/app-dicts/dictd-web1913/metadata.xml (-2 / +14 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
3
<pkgmetadata>
4
<!-- maintainer-needed -->
4
<maintainer type="person">
5
	<name>Samuel May</name>
6
	<email>ag.eitilt@gmail.com</email>
7
	<description>Primary maintainer</description>
8
</maintainer>
9
<upstream>
10
	<maintainer>
11
		<name>Patrick Cassidy</name>
12
		<email>cassidy@micra.com</email>
13
	</maintainer>
14
</upstream>
15
<longdescription>
16
	A database for 'dict'-compatible dictionary software, based on the 1913 edition of Webster's Revised Unabridged Dictionary as digitized by MICRA, Inc.
17
</longdescription>
5
</pkgmetadata>
18
</pkgmetadata>
6
- 

Return to bug 696248