blob: 7959a3dc142f4586626d04dd5f874e28872a2341 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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-200307.ebuild,v 1.2 2003/07/16 18:14:24 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/${P}.tar.gz
http://dev.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 ~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
done || die
dodoc edict_doc.txt
}
|