diff options
author | Akinori Hattori <hattya@gentoo.org> | 2016-05-13 21:58:19 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2016-05-13 21:58:19 +0900 |
commit | cce91528f86125227f5488571da4b265cceed62b (patch) | |
tree | 6f28dd4775bd1e28cfb100dda128c244fc227c76 /app-i18n/skk-jisyo/skk-jisyo-201605.ebuild | |
parent | app-i18n/skk-jisyo: update to EAPI 6 (diff) | |
download | gentoo-cce91528f86125227f5488571da4b265cceed62b.tar.gz gentoo-cce91528f86125227f5488571da4b265cceed62b.tar.bz2 gentoo-cce91528f86125227f5488571da4b265cceed62b.zip |
app-i18n/skk-jisyo: new snapshot
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-i18n/skk-jisyo/skk-jisyo-201605.ebuild')
-rw-r--r-- | app-i18n/skk-jisyo/skk-jisyo-201605.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild b/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild new file mode 100644 index 000000000000..d55d083e6fd3 --- /dev/null +++ b/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris" +IUSE="cdb" + +DEPEND="sys-apps/gawk + 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+} + + eapply_user +} + +src_compile() { + if use cdb; then + local cdbmake="cdbmake" f + if has_version dev-db/tinycdb; then + cdbmake="cdb -c" + fi + for f in {,zipcode/}${MY_PN}.*; do + LC_ALL=C gawk ' + /^[^;]/ { + 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}.* +} |