commit:     baab2e6d3a4d041fc2c51975a7255713d21e2fff
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Mon May  7 13:05:25 2018 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Mon May  7 13:06:45 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=baab2e6d

app-i18n/skk-jisyo: new snapshot

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-i18n/skk-jisyo/Manifest                |  1 +
 app-i18n/skk-jisyo/skk-jisyo-201805.ebuild | 66 ++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/app-i18n/skk-jisyo/Manifest b/app-i18n/skk-jisyo/Manifest
index 2b102fe8622..9cece8ff1f6 100644
--- a/app-i18n/skk-jisyo/Manifest
+++ b/app-i18n/skk-jisyo/Manifest
@@ -1 +1,2 @@
 DIST skk-jisyo-201605.tar.xz 6288104 BLAKE2B 
d68332a4fa0804b596fc42f3dc8231a6eebe8bddacc6e0babec6cc5992ddaadb46e8fa9af742daa30545a585428afe79eab28329ce1d37e0192b08b20d7c584e
 SHA512 
1093d363fe571c3e3e05fa54046fc4b88cbed2fbd104838576c83694556585401c3affa0afb2ed078c6f1b06f62a7b14145b1305f6fef089f160b4073900c7a1
+DIST skk-jisyo-201805.tar.xz 6133180 BLAKE2B 
52408eb2f1fa5e5146fd4db55c249f80b5ede7d2ce1e7a3c11fb69507f87f86d778e25b04ce4e39dd241ea2d8000d829b34c47df991cb91f886923e330b652eb
 SHA512 
13675502332609857b66391bdb9dc252b9f7a48814f6db10c60106b9cc3ce823df7615d77e0579d13b9d3da93dae2006cedc145d8dd80af39b9d4ecfe94373d5

diff --git a/app-i18n/skk-jisyo/skk-jisyo-201805.ebuild 
b/app-i18n/skk-jisyo/skk-jisyo-201805.ebuild
new file mode 100644
index 00000000000..097ef29ed4c
--- /dev/null
+++ b/app-i18n/skk-jisyo/skk-jisyo-201805.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_PN=${PN^^}
+
+DESCRIPTION="Jisyo (dictionary) files for the SKK Japanese-input software"
+HOMEPAGE="http://openlab.ring.gr.jp/skk/dic.html";
+SRC_URI="mirror://gentoo/${P}.tar.xz
+       https://dev.gentoo.org/~hattya/distfiles/${P}.tar.xz";
+
+LICENSE="GPL-2 freedist public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux 
~ppc-macos ~sparc-solaris"
+IUSE="cdb"
+
+DEPEND="virtual/awk
+       cdb? (
+               || (
+                       dev-db/tinycdb
+                       dev-db/cdb
+               )
+       )"
+RDEPEND=""
+
+DOCS=( ChangeLog{,.{1..3}} READMEs/committers.txt edict_doc.txt 
zipcode/README.ja )
+
+src_prepare() {
+       rm -f 
${MY_PN}.{wrong*,noregist,not_wrong,hukugougo,notes,requested,pubdic+}
+
+       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}.*
+}

Reply via email to