summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/skk-jisyo/skk-jisyo-999999.ebuild')
-rw-r--r--app-i18n/skk-jisyo/skk-jisyo-999999.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild b/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild
new file mode 100644
index 000000000000..5a09deebbaba
--- /dev/null
+++ b/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+ECVS_SERVER="openlab.jp:/circus/cvsroot"
+ECVS_USER="guest"
+ECVS_PASS="guest"
+ECVS_MODULE="skk/dic"
+inherit cvs
+
+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.bz2"
+SRC_URI=""
+
+LICENSE="GPL-2 public-domain freedist"
+SLOT="0"
+KEYWORDS=""
+IUSE="cdb"
+
+COMMON_DEPEND="cdb? ( dev-db/cdb )"
+DEPEND="${COMMON_DEPEND}
+ sys-apps/gawk"
+RDEPEND="${COMMON_DEPEND}
+ !app-i18n/skk-jisyo-extra
+ !app-i18n/skk-jisyo-cdb"
+
+S="${WORKDIR}/${ECVS_MODULE}"
+
+src_unpack() {
+ cvs_src_unpack
+
+ cd "${S}"
+ rm SKK-JISYO.wrong.annotated SKK-JISYO.china_taiwan.header
+ rm SKK-JISYO.noregist SKK-JISYO.not_wrong SKK-JISYO.hukugougo
+ rm SKK-JISYO.notes SKK-JISYO.requested SKK-JISYO.pubdic+
+}
+
+src_compile() {
+ # bug 184457
+ unset LANG LC_ALL LC_CTYPE
+
+ for f in SKK-JISYO.* zipcode/SKK-JISYO.* ; do
+ mv ${f} ${f}.annotated
+ gawk -f "${FILESDIR}"/unannotation.awk ${f}.annotated > $(basename ${f}) || die
+ if use cdb ; then
+ gawk '
+ /^[^;]/ {
+ s = substr($0, index($0, " ") + 1)
+ print "+" length($1) "," length(s) ":" $1 "->" s
+ }
+ END {
+ print ""
+ }
+ ' $(basename ${f}) | cdbmake $(basename ${f}).cdb "${T}"/$(basename ${f}) || die
+ fi
+ rm ${f}.annotated
+ done
+}
+
+src_install() {
+ # install dictionaries
+ insinto /usr/share/skk
+ doins SKK-JISYO.* || die
+
+ dodoc ChangeLog* READMEs/committers.txt edict_doc.txt
+}