From 3e42d1577189af123b773dc0f11e5419035308c8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 26 Apr 2024 23:59:37 +0100 Subject: gentoo auto-resync : 26:04:2024 - 23:59:36 --- app-i18n/skk-jisyo/skk-jisyo-202402.ebuild | 71 ++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 app-i18n/skk-jisyo/skk-jisyo-202402.ebuild (limited to 'app-i18n/skk-jisyo/skk-jisyo-202402.ebuild') 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 +} -- cgit v1.2.3