Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-dicts/dictd-foldoc/
Date: Fri, 11 Jun 2021 15:23:18
Message-Id: 1623424989.61c4d8f8e02a0935d9453d82945416ec817905b3.Alessandro-Barbieri@gentoo
1 commit: 61c4d8f8e02a0935d9453d82945416ec817905b3
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 6 00:44:31 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=61c4d8f8
7
8 app-dicts/dictd-foldoc: 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-foldoc/Manifest | 1 +
14 .../dictd-foldoc/dictd-foldoc-20180405.ebuild | 43 ++++++++++++++++++++++
15 app-dicts/dictd-foldoc/metadata.xml | 13 +++++++
16 3 files changed, 57 insertions(+)
17
18 diff --git a/app-dicts/dictd-foldoc/Manifest b/app-dicts/dictd-foldoc/Manifest
19 new file mode 100644
20 index 000000000..3cf8d5484
21 --- /dev/null
22 +++ b/app-dicts/dictd-foldoc/Manifest
23 @@ -0,0 +1 @@
24 +DIST dictd-foldoc-20180405.txt 5413737 BLAKE2B 18152975d8ac0cdcde3141324f60430df1933b3c139b4fa156e0915e5062dcc97f2e2201f16ac5c1d0a552f2ada9f652d71e2845907afc9847960f5860b005a1 SHA512 da165a6673c592940655a9bf8c7d94da4e4586518bbb4bbe8130a5fdc7bf16b70703d757ee107a832c90d7b2701f00dba9e61097725c52a9632a093bee52da2c
25
26 diff --git a/app-dicts/dictd-foldoc/dictd-foldoc-20180405.ebuild b/app-dicts/dictd-foldoc/dictd-foldoc-20180405.ebuild
27 new file mode 100644
28 index 000000000..5a5bb81bf
29 --- /dev/null
30 +++ b/app-dicts/dictd-foldoc/dictd-foldoc-20180405.ebuild
31 @@ -0,0 +1,43 @@
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 Free On-line Dictionary of Computing for dict"
38 +HOMEPAGE="https://foldoc.org"
39 +SRC_URI="https://web.archive.org/web/20180405153121/http://foldoc.org/Dictionary -> ${P}.txt"
40 +S="${WORKDIR}"
41 +LICENSE="FDL-1.1+"
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}" foldoc.txt || die
50 +}
51 +
52 +src_prepare() {
53 + eapply_user
54 + sed -e '/^$/{N;s/\n\([^\t]\+\)/\1/g;T;h;n;d}' -i foldoc.txt || die
55 +}
56 +
57 +src_compile() {
58 + tail -n +3 foldoc.txt | dictfmt -u "$HOMEPAGE/Dictionary" \
59 + -s "The Free On-line Dictionary of Computing (version ${PV})" \
60 + --utf8 \
61 + -f foldoc || die
62 + dictzip foldoc.dict || die
63 +}
64 +
65 +src_install() {
66 + insinto /usr/share/dict
67 + doins foldoc.dict.dz foldoc.index
68 +}
69 +
70 +pkg_postrm() {
71 + elog "You must unregister ${PN} and restart your dictd server before the"
72 + elog "dictionary is completely removed. If you are using OpenRC, both tasks may be"
73 + elog "accomplished by running '/etc/init.d/dictd restart'."
74 +}
75
76 diff --git a/app-dicts/dictd-foldoc/metadata.xml b/app-dicts/dictd-foldoc/metadata.xml
77 new file mode 100644
78 index 000000000..0302ccd78
79 --- /dev/null
80 +++ b/app-dicts/dictd-foldoc/metadata.xml
81 @@ -0,0 +1,13 @@
82 +<?xml version="1.0" encoding="UTF-8"?>
83 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
84 +<pkgmetadata>
85 + <!-- maintainer needed -->
86 +<upstream>
87 + <maintainer>
88 + <name>Denis Howe</name>
89 + </maintainer>
90 +</upstream>
91 +<longdescription>
92 + A database for 'dict'-compatible dictionary software, based on the Free On-line Dictionary of Computing describing various topics in computing.
93 +</longdescription>
94 +</pkgmetadata>