# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-i18n/skk-jisyo-extra/skk-jisyo-extra-200501.ebuild,v 1.3 2005/02/24 18:12:15 gustavoz Exp $ DESCRIPTION="Extra SKK dictionaries in plain text and cdb format" HOMEPAGE="http://openlab.ring.gr.jp/skk/dic.html" SRC_URI="mirror://gentoo/${P}.tar.gz http://www.gentoo.org/~usata/distfiles/${P}.tar.gz" # see each SKK-JISYO's header for detail LICENSE="GPL-2 public-domain freedist" SLOT="0" KEYWORDS="x86 alpha ppc sparc ppc-macos" IUSE="" DEPEND="sys-apps/gawk || ( dev-db/freecdb dev-db/cdb )" RDEPEND="" 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 }