mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
app-dicts/dictd-jargon: new package
Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
app-dicts/dictd-jargon/Manifest
Normal file
1
app-dicts/dictd-jargon/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST jarg423.txt 1413674 BLAKE2B 943fae047e5773fcf4af5e6720533ef2886e6be93e9eb0a10beeb4aa263bde619f639ada35a431992d08bb470a2914201d02e6a83ccc755fcae55f9c96abd9b6 SHA512 98afd7f9f010c7f6c43ba2f368add48c8faf37c922e41de4d804a39bcc2fec6a18de51765a609aa2bd7396baaf3c772a22f1d07ae185ae0fe206dafa166a84ea
|
||||
56
app-dicts/dictd-jargon/dictd-jargon-4.2.3-r2.ebuild
Normal file
56
app-dicts/dictd-jargon/dictd-jargon-4.2.3-r2.ebuild
Normal file
@@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="The Jargon File for dict"
|
||||
HOMEPAGE="http://www.catb.org/~esr/jargon/index.html"
|
||||
SRC_URI="http://www.catb.org/~esr/jargon/oldversions/jarg${PV//.}.txt"
|
||||
S="${WORKDIR}"
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND=">=app-text/dictd-1.5.5"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
cp "${DISTDIR}/${A}" jargon.txt || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
# This sed script works for all versions >=3.0.0 until <4.4.0 (when the
|
||||
# entire format changes).
|
||||
sed \
|
||||
-e '/^The Jargon Lexicon/,/:(Lexicon Entries End Here):/!{w jargon.doc' -e 'd}' \
|
||||
-e 's/^ \s*/\t/' -e 's/^ //' \
|
||||
-e 's/\([^\t]\)\t/\1 /g' \
|
||||
-e 's/^\(:[^:]*:\)\s*/\1/' \
|
||||
-e '/^= . =/,/^$/d' \
|
||||
-e '/^\S/{: l;N;s/\n *\(.\)/ \1/g;t l}' \
|
||||
-e 's/\([^A-Za-z ]\) \+\([2-9][0-9]\?\|1[0-9]\)\.\( \+\|$\)/\1\n\n\2. /g' \
|
||||
-e 's/^\([2-9][0-9]\?\|1[0-9]\)\.\( \+\|$\)/\n\1. /g' \
|
||||
-i jargon.txt || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
dictfmt -u "$SRC_URI" \
|
||||
-s "The Jargon File (version $PV)" \
|
||||
--columns 80 \
|
||||
-j jargon \
|
||||
< jargon.txt || die
|
||||
dictzip jargon.dict || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newdoc jargon.doc jargon.txt
|
||||
insinto /usr/share/dict
|
||||
doins jargon.dict.dz jargon.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'."
|
||||
}
|
||||
18
app-dicts/dictd-jargon/metadata.xml
Normal file
18
app-dicts/dictd-jargon/metadata.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer needed -->
|
||||
<upstream>
|
||||
<maintainer status="inactive">
|
||||
<name>Eric S. Raymond</name>
|
||||
<email>esr@thyrsus.com</email>
|
||||
</maintainer>
|
||||
<maintainer status="inactive">
|
||||
<name>Guy Steele</name>
|
||||
<email>gls@think.com</email>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
<longdescription>
|
||||
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.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user