diff options
author | Masatomo Nakano <nakano@gentoo.org> | 2003-05-17 19:31:14 +0000 |
---|---|---|
committer | Masatomo Nakano <nakano@gentoo.org> | 2003-05-17 19:31:14 +0000 |
commit | 7e6b651f62281f867cf7d446de6d4e5c05a545ac (patch) | |
tree | 7f11ee091c843480e64930d58bd6a18ca91768cf /app-dicts/canna-zipcode | |
parent | marked 1.1 stable (diff) | |
download | historical-7e6b651f62281f867cf7d446de6d4e5c05a545ac.tar.gz historical-7e6b651f62281f867cf7d446de6d4e5c05a545ac.tar.bz2 historical-7e6b651f62281f867cf7d446de6d4e5c05a545ac.zip |
Initial import.
Diffstat (limited to 'app-dicts/canna-zipcode')
-rw-r--r-- | app-dicts/canna-zipcode/ChangeLog | 10 | ||||
-rw-r--r-- | app-dicts/canna-zipcode/canna-zipcode-20021021.ebuild | 62 | ||||
-rw-r--r-- | app-dicts/canna-zipcode/files/02zipcode.dics.dir | 5 | ||||
-rw-r--r-- | app-dicts/canna-zipcode/files/digest-canna-zipcode-20021021 | 1 |
4 files changed, 78 insertions, 0 deletions
diff --git a/app-dicts/canna-zipcode/ChangeLog b/app-dicts/canna-zipcode/ChangeLog new file mode 100644 index 000000000000..488ea69293c2 --- /dev/null +++ b/app-dicts/canna-zipcode/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-dicts/canna-zipcode +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-dicts/canna-zipcode/ChangeLog,v 1.1 2003/05/17 19:31:14 nakano Exp $ + +*canna-zipcode-20021021 (18 May 2003) + + 18 May 2003; <masatomo@gentoo.org> canna-zipcode-20021021.ebuild, + files/02zipcode.dics.dir: + Initial import. #21060 Thanks to Sadayuki Kobayashi <desperado@s17.xrea.com> + diff --git a/app-dicts/canna-zipcode/canna-zipcode-20021021.ebuild b/app-dicts/canna-zipcode/canna-zipcode-20021021.ebuild new file mode 100644 index 000000000000..5269012dd596 --- /dev/null +++ b/app-dicts/canna-zipcode/canna-zipcode-20021021.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-dicts/canna-zipcode/canna-zipcode-20021021.ebuild,v 1.1 2003/05/17 19:31:14 nakano Exp $ + +MY_P="${P/canna-/}" + +DESCRIPTION="Japanese Zipcode dictionary for Canna" +HOMEPAGE="http://bonobo.gnome.gr.jp/~nakai/canna/" +SRC_URI="http://bonobo.gnome.gr.jp/~nakai/canna/${MY_P}.tar.bz2" +LICENSE="GPL-2 public-domain" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha" +IUSE="" +DEPEND=">=canna-3.6_p3-r1 app-i18n/nkf app-arch/lha" +RDEPEND=">=canna-3.6_p3-r1" +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd ${S} + rm -f zipcode.t jigyosyo.t ken_all.{lzh,csv} jigyosyo.{lzh.csv} || die + wget http://www.post.japanpost.jp/zipcode/dl/kogaki/lzh/ken_all.lzh \ + http://www.post.japanpost.jp/zipcode/dl/jigyosyo/lzh/jigyosyo.lzh + lha e ken_all.lzh + lha e jigyosyo.lzh + touch *.csv +} + +src_compile() { + make all || die + mkbindic zipcode.t ; mkbindic jigyosyo.t +} + +src_install() { + dodir /var/lib/canna/dic/canna/ + install -o bin -g bin -m 0664 zipcode.c[bl]d jigyosyo.c[bl]d \ + ${D}/var/lib/canna/dic/canna/ + insinto /var/lib/canna/dic/dics.d/ ;\ + doins ${FILESDIR}/02zipcode.dics.dir + dodoc COPYING README.jp +} + +pkg_postinst() { + if [ -x /usr/sbin/update-canna-dics_dir ]; then + einfo "Regenerating dics.dir file..." + /usr/sbin/update-canna-dics_dir || die "Regenerating failed." + fi + einfo "Please restart cannaserver to fit changes." + einfo "and modify your config file (~/.canna ) to enable dictionay." + einfo " e.g) add \"zipcode\" \"jigyosyo\" to section use-dictionary()" + einfo "For details, see /usr/share/doc/${P}/README.jp.gz" +} + +pkg_postrm() { + if [ -x /usr/sbin/update-canna-dics_dir ]; then + einfo "Regenerating dics.dir file..." + /usr/sbin/update-canna-dics_dir || die "Regenerating failed." + fi + einfo "Please restart cannaserver to fit changes." + einfo "and modify your config file (~/.canna) to disable dictionay." + einfo " e.g) delete \"zipcode\" \"jigyosyo\" from section use-dictionary()" +} diff --git a/app-dicts/canna-zipcode/files/02zipcode.dics.dir b/app-dicts/canna-zipcode/files/02zipcode.dics.dir new file mode 100644 index 000000000000..cd65a5df7138 --- /dev/null +++ b/app-dicts/canna-zipcode/files/02zipcode.dics.dir @@ -0,0 +1,5 @@ +zipcode.cbd(zipcode.mwd) -zipcode--- +zipcode.cld(zipcode.mwd) -zipcode--- + +jigyosyo.cbd(jigyosyo.mwd) -jigyosyo--- +jigyosyo.cld(jigyosyo.mwd) -jigyosyo--- diff --git a/app-dicts/canna-zipcode/files/digest-canna-zipcode-20021021 b/app-dicts/canna-zipcode/files/digest-canna-zipcode-20021021 new file mode 100644 index 000000000000..6d28156b84d5 --- /dev/null +++ b/app-dicts/canna-zipcode/files/digest-canna-zipcode-20021021 @@ -0,0 +1 @@ +MD5 113644d63128e4a905b747e0a499cb51 zipcode-20021021.tar.bz2 1171807 |