commit:     daa78f70d447c6fcc949cb2bd4fa5790297047d4
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 26 12:59:38 2024 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Fri Apr 26 13:02:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=daa78f70

app-i18n/skk-jisyo: new snapshot

Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 app-i18n/skk-jisyo/Manifest                |  1 +
 app-i18n/skk-jisyo/metadata.xml            |  3 ++
 app-i18n/skk-jisyo/skk-jisyo-202402.ebuild | 71 ++++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+)

diff --git a/app-i18n/skk-jisyo/Manifest b/app-i18n/skk-jisyo/Manifest
index 87ca05478182..dc988c2ffbdb 100644
--- a/app-i18n/skk-jisyo/Manifest
+++ b/app-i18n/skk-jisyo/Manifest
@@ -1 +1,2 @@
 DIST skk-jisyo-202005.tar.xz 6836292 BLAKE2B 
6d73e6d2e38de178c6683ae447b0ea79054036739b7a01fe386d677cc99556d37f47adf4156e1d571681195b85a2134cac710b12fa08df87e4fe5e5098289119
 SHA512 
7cc639b307d56d4cb5d04280a003ffa2cfb326f7821d70dddb619e117c1b8358417e44f8137de1b8027ec7f97df8bff8fba845019c015cf8c48ed5d91753155c
+DIST skk-jisyo-202402.tar.xz 7009372 BLAKE2B 
4db4be482e537c67861d1f855e34289ce4e7cd790850c012f1a16962196a683170541486468c42fb071a33a498801a2784807793bb49a4a5ca0fa4c805819798
 SHA512 
72957b207fd28017fc3fbbc43987aa6e7b46b011788036fe96c15172c7934011e3100a45d7e207ebb84cd15f1db667ba366b316f485fecad279f5bd5608920ed

diff --git a/app-i18n/skk-jisyo/metadata.xml b/app-i18n/skk-jisyo/metadata.xml
index a94766977fa6..18319445e66e 100644
--- a/app-i18n/skk-jisyo/metadata.xml
+++ b/app-i18n/skk-jisyo/metadata.xml
@@ -5,4 +5,7 @@
                <email>[email protected]</email>
                <name>Cjk</name>
        </maintainer>
+       <upstream>
+               <remote-id type="github">skk-dev/dict</remote-id>
+       </upstream>
 </pkgmetadata>

diff --git a/app-i18n/skk-jisyo/skk-jisyo-202402.ebuild 
b/app-i18n/skk-jisyo/skk-jisyo-202402.ebuild
new file mode 100644
index 000000000000..6f9e6363e3c4
--- /dev/null
+++ b/app-i18n/skk-jisyo/skk-jisyo-202402.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+MY_PN=${PN^^}
+
+DESCRIPTION="Jisyo (dictionary) files for the SKK Japanese-input software"
+HOMEPAGE="https://skk-dev.github.io/dict/";
+SRC_URI="mirror://gentoo/${P}.tar.xz
+       https://dev.gentoo.org/~hattya/distfiles/${P}.tar.xz";
+
+LICENSE="CC-BY-SA-3.0 GPL-2+ public-domain unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux 
~ppc-macos"
+IUSE="cdb"
+
+DEPEND="app-alternatives/awk
+       cdb? (
+               || (
+                       dev-db/tinycdb
+                       dev-db/cdb
+               )
+       )"
+RDEPEND=""
+
+DOCS=( ChangeLog{,.{1..3}} committers.md )
+HTML_DOCS=( edict_doc.html )
+
+src_prepare() {
+       rm -f 
${MY_PN}.{hukugougo,noregist,notes,pubdic+,requested,unannotated,*wrong*}
+
+       default
+}
+
+cdb_make() {
+       cdbmake "${1}" "${1}.tmp"
+}
+
+tinycdb_make() {
+       cdb -c "${1}"
+}
+
+src_compile() {
+       if use cdb; then
+               local cdbmake=cdb_make f
+               if has_version dev-db/tinycdb; then
+                       cdbmake=tinycdb_make
+               fi
+               for f in {,zipcode/}${MY_PN}.*; do
+                       LC_ALL=C awk '
+                               /^[^;]/ {
+                                       s = substr($0, index($0, " ") + 1)
+                                       print "+" length($1) "," length(s) ":" 
$1 "->" s
+                               }
+                               END {
+                                       print ""
+                               }
+                       ' ${f} | ${cdbmake} ${f}.cdb || die
+               done
+       fi
+}
+
+src_install() {
+       insinto /usr/share/skk
+       doins {,zipcode/}${MY_PN}.*
+
+       einstalldocs
+       docinto zipcode
+       dodoc zipcode/README.md
+}

Reply via email to