blob: 752135899f569b92ebf358072f7c7a84c910d076 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/scim-chinese/scim-chinese-0.2.7.ebuild,v 1.1 2004/02/07 07:20:18 liquidx Exp $
inherit rpm
DESCRIPTION="Smart Common Input Method (SCIM) Closed Source Pinyin Input Method"
HOMEPAGE="http://www.turbolinux.com.cn/~suzhe/scim/"
SRC_URI="http://www.turbolinux.com.cn/~suzhe/scim/scim-chinese/${P}-1.i586.rpm"
LICENSE="scim-chinese"
SLOT="0"
KEYWORDS="~x86 -*"
IUSE=""
DEPEND="virtual/x11
>=app-i18n/scim-0.9.0"
S=${WORKDIR}
src_compile() {
return
}
dosym_r() {
srcdir=$1
dstdir=$2
for x in `find ${D}${srcdir}`; do
dst=${dstdir}${x#$D$srcdir}
src=${x#$D}
einfo "Linking $src to $dst"
if [ ! -d "`dirname $D$dst`" ]; then
dodir ${dst}
fi
dosym $src $dst
done
}
src_install() {
# install into /opt because this is binary-only
PREFIX=/opt/scim-chinese
cd ${S}
insinto ${PREFIX}/lib/scim-1.0/Server
doins usr/lib/scim-1.0/Server/*
dodir /usr/lib/scim-1.0
dosym ${PREFIX}/lib/scim-1.0/Server /usr/lib/scim-1.0/Server
insinto ${PREFIX}/share/scim/chinese
doins usr/share/scim/chinese/*
dosym_r ${PREFIX}/share/scim/chinese /usr/share/scim/chinese
insinto /etc/gconf/schemas
doins etc/gconf/schemas/*
dodoc usr/share/doc/packages/${PN}/{AUTHORS,COPYING,README}
}
|