aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2021-06-06 02:33:00 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2021-06-11 17:23:08 +0200
commitbecc1e6563535eccb387ff5e5f4a96072c3752b5 (patch)
tree98c88cb978d84b9c959143a4b52095a3a6a1dce6 /app-dicts
parentapp-dicts/dictd-devils: new package (diff)
downloadguru-becc1e6563535eccb387ff5e5f4a96072c3752b5.tar.gz
guru-becc1e6563535eccb387ff5e5f4a96072c3752b5.tar.bz2
guru-becc1e6563535eccb387ff5e5f4a96072c3752b5.zip
app-dicts/dictd-elements: new
Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'app-dicts')
-rw-r--r--app-dicts/dictd-elements/Manifest1
-rw-r--r--app-dicts/dictd-elements/dictd-elements-20030309.ebuild45
-rw-r--r--app-dicts/dictd-elements/metadata.xml13
3 files changed, 59 insertions, 0 deletions
diff --git a/app-dicts/dictd-elements/Manifest b/app-dicts/dictd-elements/Manifest
new file mode 100644
index 000000000..828e4a33f
--- /dev/null
+++ b/app-dicts/dictd-elements/Manifest
@@ -0,0 +1 @@
+DIST dictd-elements-20030309.db 46325 BLAKE2B 70b5003a1dc5825ef67c4b2ceb8a322d5827cc28c3be61ea2d2e125343b1d03816385ea298c9794e25edf1f1e4361bc8f141876b1fba3f9005926a33ad28bffe SHA512 a09d152f4b7ed6f0fb43d7eed08abd469565b0d63d92e965e872dc90174298f8c661c9c22ab9c605fc865d7e1f3366dcbd27d17f1be274d0610b0938f8bb9b40
diff --git a/app-dicts/dictd-elements/dictd-elements-20030309.ebuild b/app-dicts/dictd-elements/dictd-elements-20030309.ebuild
new file mode 100644
index 000000000..fbc93a624
--- /dev/null
+++ b/app-dicts/dictd-elements/dictd-elements-20030309.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Jay Kominek's database of the elements for dict"
+HOMEPAGE="http://www.dict.org"
+SRC_URI="https://web.archive.org/web/20121223051336/http://www.miranda.org:80/~jkominek/elements/elements.db -> ${P}.db"
+S="$WORKDIR"
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=app-text/dictd-1.5.5"
+
+src_unpack() {
+ cp "${DISTDIR}/${A}" elements.db || die
+}
+
+src_prepare() {
+ eapply_user
+ sed -e '/^%h/{h;n;n;s/Symbol: //;T;x;G;s/\n/ /}' -i elements.db
+ sed -e '/^%h/{N;N;s/%h.*\n%d\n\(%h.*\)/\1\n%d/}' -i elements.db
+}
+
+src_compile() {
+ dictfmt -u "${SRC_URI% ->*}" \
+ -s "Jay Kominek's Elements database (version $PV)" \
+ --headword-separator " " \
+ --columns 80 \
+ -p elements \
+ < elements.db
+ dictzip elements.dict
+}
+
+src_install() {
+ insinto /usr/share/dict
+ doins elements.dict.dz elements.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-elements/metadata.xml b/app-dicts/dictd-elements/metadata.xml
new file mode 100644
index 000000000..3153d1e3a
--- /dev/null
+++ b/app-dicts/dictd-elements/metadata.xml
@@ -0,0 +1,13 @@
+<?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>Jay Kominek</name>
+ </maintainer>
+</upstream>
+<longdescription>
+ A database for 'dict'-compatible dictionary software, based on Jay Kominek's descriptions of the atomic elements.
+</longdescription>
+</pkgmetadata>