blob: 482428ff8ee1c55902ed66d2727428bf2ec4b091 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/xcin/xcin-2.5.3_pre2.ebuild,v 1.7 2003/11/04 00:32:59 liquidx Exp $
XCIN="${P/_/.}.tar.gz"
CHEWING="chewing-2002Jan07-snapshot.tar.gz"
DESCRIPTION="Chinese X Input Method"
HOMEPAGE="http://xcin.linux.org.tw/"
SRC_URI="ftp://xcin.linux.org.tw/pub/xcin/xcin/devel/${XCIN}
http://chewing.good-man.org/snapshot/${CHEWING}"
LICENSE="XCIN"
SLOT="0"
KEYWORDS="x86"
IUSE="nls"
DEPEND="nls? ( sys-devel/gettext )
>=app-i18n/libtabe-0.2.5"
S=${WORKDIR}/${PN}
MAKEOPTS="${MAKEOPTS} -j1"
src_unpack() {
unpack ${XCIN}
# patch for chewing support
cd ${S}/src/Cinput
unpack ${CHEWING}
cd chewing
./patch_chewing
# gcc3.2 changed the way we deal with -I. So until the configure script
# is updated we need this hack as a work around.
EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${PF}/gentoo-xcin.patch
EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${P}-db3.patch
}
src_compile() {
econf \
--with-xcin-rcdir=/etc \
--with-xcin-dir=/usr/lib/X11/xcin25 \
--with-db-lib=/usr/lib \
--with-tabe-inc=/usr/include/tabe \
--with-tabe-lib=/usr/lib || die "./configure failed"
emake || die
}
src_install() {
make \
prefix=${D}/usr \
program_prefix=${D} \
install || die
dodir /etc
insinto /etc
newins ${FILESDIR}/gentoo-xcinrc xcinrc
dodoc doc/*
for docdir in doc/En doc/En/internal doc/history doc/internal doc/modules; do
docinto ${docdir#doc/}
dodoc ${docdir}/*
done
}
|