commit: e60a19f8005228ce3b1830fc7d67674c58352842 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Sun Jun 6 01:08:20 2021 +0000 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> CommitDate: Fri Jun 11 15:23:09 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e60a19f8
app-dicts/dictd-jargon: new package Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> app-dicts/dictd-jargon/Manifest | 1 + .../dictd-jargon/dictd-jargon-4.2.3-r2.ebuild | 56 ++++++++++++++++++++++ app-dicts/dictd-jargon/metadata.xml | 18 +++++++ 3 files changed, 75 insertions(+) diff --git a/app-dicts/dictd-jargon/Manifest b/app-dicts/dictd-jargon/Manifest new file mode 100644 index 000000000..2a1af9de4 --- /dev/null +++ b/app-dicts/dictd-jargon/Manifest @@ -0,0 +1 @@ +DIST jarg423.txt 1413674 BLAKE2B 943fae047e5773fcf4af5e6720533ef2886e6be93e9eb0a10beeb4aa263bde619f639ada35a431992d08bb470a2914201d02e6a83ccc755fcae55f9c96abd9b6 SHA512 98afd7f9f010c7f6c43ba2f368add48c8faf37c922e41de4d804a39bcc2fec6a18de51765a609aa2bd7396baaf3c772a22f1d07ae185ae0fe206dafa166a84ea 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 new file mode 100644 index 000000000..f7db0c22e --- /dev/null +++ b/app-dicts/dictd-jargon/dictd-jargon-4.2.3-r2.ebuild @@ -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'." +} diff --git a/app-dicts/dictd-jargon/metadata.xml b/app-dicts/dictd-jargon/metadata.xml new file mode 100644 index 000000000..810d9618d --- /dev/null +++ b/app-dicts/dictd-jargon/metadata.xml @@ -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>[email protected]</email> + </maintainer> + <maintainer status="inactive"> + <name>Guy Steele</name> + <email>[email protected]</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>
