summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-10-02 18:53:17 +0000
committerMamoru Komachi <usata@gentoo.org>2003-10-02 18:53:17 +0000
commit44c12192080cb174f82512fea565b99f09a63e4b (patch)
tree409d7b7557af6ba2e16bff8d7e32e78f47fcd20f /app-i18n/skk-jisyo-extra/skk-jisyo-extra-200310.ebuild
parentVersion bumped (diff)
downloadgentoo-2-44c12192080cb174f82512fea565b99f09a63e4b.tar.gz
gentoo-2-44c12192080cb174f82512fea565b99f09a63e4b.tar.bz2
gentoo-2-44c12192080cb174f82512fea565b99f09a63e4b.zip
Version bumped
Diffstat (limited to 'app-i18n/skk-jisyo-extra/skk-jisyo-extra-200310.ebuild')
-rw-r--r--app-i18n/skk-jisyo-extra/skk-jisyo-extra-200310.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/app-i18n/skk-jisyo-extra/skk-jisyo-extra-200310.ebuild b/app-i18n/skk-jisyo-extra/skk-jisyo-extra-200310.ebuild
new file mode 100644
index 000000000000..5dfb63f2e91c
--- /dev/null
+++ b/app-i18n/skk-jisyo-extra/skk-jisyo-extra-200310.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/skk-jisyo-extra/skk-jisyo-extra-200310.ebuild,v 1.1 2003/10/02 18:53:13 usata Exp $
+
+IUSE=""
+
+DESCRIPTION="Extra SKK dictionaries in plain text and cdb format"
+HOMEPAGE="http://openlab.ring.gr.jp/skk/dic.html"
+SRC_URI="mirror://gentoo/${PF}.tar.gz
+ http://dev.gentoo.org/~usata/distfiles/${PF}.tar.gz"
+
+# see each SKK-JISYO's header for detail
+LICENSE="GPL-2 public-domain freedist"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+
+DEPEND="sys-apps/gawk
+ || ( dev-db/freecdb dev-db/cdb )"
+RDEPEND=""
+
+S=${WORKDIR}/${P}
+
+skkdic2cdb () {
+
+ awk '/^[^;]/ {
+ printf "+%d,%d:%s->%s\n", length($1), length($2), $1, $2
+ } END {
+ print ""
+ } ' $1
+}
+
+src_compile () {
+
+ for i in SKK-JISYO* ; do
+ echo "Converting $i into $i.cdb ..."
+ skkdic2cdb $i | cdbmake $i.cdb tmp.$i
+ done || die
+}
+
+src_install () {
+
+ insinto /usr/share/skk
+ for i in SKK-JISYO* ; do
+ doins $i || die
+ done
+
+ dodoc edict_doc.txt
+}