blob: 3a0508cb763a0a6b427e5b0f99706831ac6fccca (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/multiskkserv/multiskkserv-20020201.ebuild,v 1.2 2003/08/05 09:39:07 usata Exp $
IUSE=""
CDB_PV=0.75
CDB_PN=cdb
CDB_P=${CDB_PN}-${CDB_PV}
DESCRIPTION="SKK server that handles multiple dictionaries"
HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/"
SRC_URI="http://www3.big.or.jp/~sian/linux/products/${P}.tar.bz2
http://cr.yp.to/cdb/${CDB_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 alpha ~sparc ~ppc"
DEPEND="virtual/glibc
app-i18n/skk-jisyo-cdb"
PROVIDE="virtual/skkserv"
S=${WORKDIR}/${P}
pkg_setup() {
einfo "If you want to add some extra SKK dictionaries,"
einfo "please emerge app-i18n/skk-jisyo-extra first."
}
src_unpack() {
unpack ${A}
cd ${WORKDIR}/${CDB_P}
epatch ${FILESDIR}/${CDB_P}-errno.diff
cp ${FILESDIR}/multiskkserv.conf ${S}
}
src_compile() {
cd ${WORKDIR}/${CDB_P}
make || die
cd -
cd /usr/share/skk
echo "# Available SKK-JISYO files are:" >> ${S}/multiskkserv.conf
for i in *.cdb ; do
echo "# ${i}" >> ${S}/multiskkserv.conf
done
cd -
econf --with-cdb=${WORKDIR}/${CDB_P} || die
emake || die
}
src_install() {
einstall || die
insinto /etc/conf.d
newins multiskkserv.conf multiskkserv
exeinto /etc/init.d
newexe ${FILESDIR}/multiskkserv.initd multiskkserv
dodoc AUTHORS COPYING* ChangeLog INSTALL NEWS README*
}
pkg_postinst() {
einfo "By default, multiskkserv will look up only SKK-JISYO.L."
einfo "If you want to use more dictionaries,"
einfo "edit /etc/conf.d/multiskkserv manually."
}
|