/[gentoo-x86]/app-i18n/scim-cvs/scim-cvs-0.99.4.ebuild
Gentoo

Contents of /app-i18n/scim-cvs/scim-cvs-0.99.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Aug 23 10:49:58 2004 UTC (15 years, 6 months ago) by usata
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Added scim-chinese and scim-hangul to PDEPEND. See bug #61320.

1 usata 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 usata 1.3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/scim-cvs/scim-cvs-0.99.4.ebuild,v 1.2 2004/08/21 15:29:52 foser Exp $
4 usata 1.1
5     inherit gnome2 eutils cvs
6    
7     DESCRIPTION="Smart Common Input Method (SCIM) is a Input Method (IM) development platform"
8     HOMEPAGE="http://freedesktop.org/~suzhe/"
9     SRC_URI=""
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~x86 ~alpha ~ppc"
14     IUSE="gnome"
15    
16     ECVS_AUTH="ext"
17     CVS_RSH="ssh"
18     ECVS_SERVER="savannah.nongnu.org:/cvsroot/scim"
19     ECVS_SSH_HOST_KEY="savannah.nongnu.org,199.232.41.4 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAzFQovi+67xa+wymRz9u3plx0ntQnELBoNU4SCl3RkwSFZkrZsRTC0fTpOKatQNs1r/BLFoVt21oVFwIXVevGQwB+Lf0Z+5w9qwVAQNu/YUAFHBPTqBze4wYK/gSWqQOLoj7rOhZk0xtAS6USqcfKdzMdRWgeuZ550P6gSzEHfv0="
20     ECVS_USER="anoncvs"
21     ECVS_PASS=""
22     ECVS_MODULE="scim-lib"
23     S="${WORKDIR}/${ECVS_MODULE}"
24    
25     RDEPEND="virtual/x11
26     gnome? ( >=gnome-base/gconf-1.2
27     >=dev-libs/libxml2-2.5
28 foser 1.2 >=gnome-base/orbit-2.8 )
29 usata 1.1 >=x11-libs/gtk+-2
30     >=dev-libs/atk-1
31     >=x11-libs/pango-1
32     >=dev-libs/glib-2
33     !app-i18n/scim
34     !<app-i18n/scim-chinese-0.4.0"
35     DEPEND="${RDEPEND}
36     dev-lang/perl
37     sys-devel/autoconf
38     sys-devel/automake
39     >=sys-apps/sed-4"
40     PDEPEND="|| ( app-i18n/scim-m17n
41     app-i18n/scim-uim
42     app-i18n/scim-tables )"
43    
44     ELTCONF="--reverse-deps"
45     SCROLLKEEPER_UPDATE="0"
46     USE_DESTDIR="1"
47    
48     src_unpack() {
49     cvs_src_unpack
50     # use scim gtk2 IM module only for chinese/japanese/korean
51     EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${PN}-gtk2immodule.patch
52    
53     cd ${S}
54     ./bootstrap || die "bootstrap failed"
55    
56     # workaround for problematic makefile
57     sed -i -e "s:^\(scim.*LDFLAGS.*\):\1 -ldl:g" \
58     ${S}/src/Makefile.* || die
59     sed -i -e "s:^\(scim_make_table_LDFLAGS.*\):\1 -ldl:" \
60     ${S}/modules/IMEngine/Makefile.* || die
61     sed -i -e "s:^LDFLAGS = :LDFLAGS = -ldl :g" \
62     -e "s:^\(test.*LDFLAGS.*\):\1 -ldl:g" \
63     ${S}/tests/Makefile.* || die
64     sed -i -e "s:GTK_VERSION=2.3.5:GTK_VERSION=2.4.0:" \
65     ${S}/configure || die
66     }
67    
68     src_compile() {
69     use gnome || G2CONF="${G2CONF} --disable-config-gconf"
70     gnome2_src_compile
71     }
72    
73     src_install() {
74     gnome2_src_install || die "install failed"
75     dodoc README AUTHORS ChangeLog docs/developers docs/scim.cfg
76     dohtml -r docs/html/*
77     }
78    
79     pkg_postinst() {
80     einfo
81     einfo "To use SCIM with both GTK2 and XIM, you should use the following"
82     einfo "in your user startup scripts such as .gnomerc or .xinitrc:"
83     einfo
84     einfo "LANG='your_language' scim -d"
85     einfo "export XMODIFIERS=@im=SCIM"
86     einfo
87     einfo "where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other"
88     einfo "UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8"
89     einfo
90    
91     gtk-query-immodules-2.0 > ${ROOT}etc/gtk-2.0/gtk.immodules
92     }
93    
94     pkg_postrm() {
95    
96     gtk-query-immodules-2.0 > ${ROOT}etc/gtk-2.0/gtk.immodules
97     }

  ViewVC Help
Powered by ViewVC 1.1.20