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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Jul 22 09:22:29 2007 UTC (12 years, 7 months ago) by calchan
Branch: MAIN
Changes since 1.6: +2 -2 lines
Drop virtual/x11 dependency.
(Portage version: 2.1.3_rc8)

1 flameeyes 1.6 # Copyright 1999-2007 Gentoo Foundation
2 usata 1.1 # Distributed under the terms of the GNU General Public License v2
3 calchan 1.7 # $Header: /var/cvsroot/gentoo-x86/app-i18n/scim-cvs/scim-cvs-1.3.3.ebuild,v 1.6 2007/01/05 16:27:09 flameeyes Exp $
4 usata 1.1
5     inherit eutils cvs
6    
7     DESCRIPTION="Smart Common Input Method (SCIM) is an Input Method (IM) development platform"
8     HOMEPAGE="http://www.scim-im.org/"
9     SRC_URI=""
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~alpha ~amd64 ~ppc ~x86"
14 flameeyes 1.5 IUSE="gtk immqt immqt-bc"
15 usata 1.1
16     ECVS_AUTH="pserver"
17 flameeyes 1.3 ECVS_SERVER="scim.cvs.sourceforge.net:/cvsroot/scim"
18 usata 1.1 ECVS_USER="anonymous"
19     ECVS_PASS=""
20     ECVS_MODULE="scim"
21     S="${WORKDIR}/${ECVS_MODULE}"
22    
23     GTK_DEPEND=">=x11-libs/gtk+-2
24     >=dev-libs/atk-1
25     >=x11-libs/pango-1
26     >=dev-libs/glib-2"
27 calchan 1.7 RDEPEND="x11-libs/libX11
28 usata 1.1 gtk? ( ${GTK_DEPEND} )
29     immqt? ( ${GTK_DEPEND} )
30     immqt-bc? ( ${GTK_DEPEND} )
31 matsuu 1.4 !app-i18n/scim"
32 usata 1.1 DEPEND="${RDEPEND}
33     dev-lang/perl
34     sys-devel/autoconf
35     sys-devel/automake
36     >=sys-apps/sed-4"
37    
38     has_gtk() {
39     if has_version '>=x11-libs/gtk+-2' ; then
40     true
41     else
42     false
43     fi
44     }
45    
46     get_gtk_confdir() {
47     if useq amd64 || ( [ "${CONF_LIBDIR}" == "lib32" ] && useq x86 ) ; then
48     echo "/etc/gtk-2.0/${CHOST}"
49     else
50     echo "/etc/gtk-2.0"
51     fi
52     }
53    
54     src_unpack() {
55     cvs_src_unpack
56     # use scim gtk2 IM module only for chinese/japanese/korean
57     EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${PN}-gtk2immodule.patch
58    
59     cd ${S}
60     ./bootstrap || die "bootstrap failed"
61     }
62    
63     src_compile() {
64     # bug #83625
65     filter-flags -fvisibility-inlines-hidden
66     filter-flags -fvisibility=hidden
67    
68     use gtk || use immqt || use immqt-bc || myconf="${myconf} --disable-panel-gtk --disable-setup-ui"
69     has_gtk || myconf="${myconf} --disable-gtk2-immodule"
70     econf ${myconf} || die
71     emake || die
72     }
73    
74     src_install() {
75     make DESTDIR=${D} install || die
76     dodoc README AUTHORS ChangeLog docs/developers docs/scim.cfg
77     dohtml -r docs/html/*
78     }
79    
80     pkg_postinst() {
81 flameeyes 1.6 elog
82     elog "To use SCIM with both GTK2 and XIM, you should use the following"
83     elog "in your user startup scripts such as .gnomerc or .xinitrc:"
84     elog
85     elog "LANG='your_language' scim -d"
86     elog "export XMODIFIERS=@im=SCIM"
87     elog "export GTK_IM_MODULE=\"scim\""
88     elog "export QT_IM_MODULE=\"scim\""
89     elog
90     elog "where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other"
91     elog "UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8"
92     elog
93     elog "If you prefer KDE/Qt interface, try emerge app-i18n/skim."
94     elog
95     elog "To use Chinese input methods:"
96     elog " # emerge app-i18n/scim-tables app-i18n/scim-pinyin"
97     elog "To use Korean input methods:"
98     elog " # emerge app-i18n/scim-hangul"
99     elog "To use Japanese input methods:"
100     elog " # emerge app-i18n/scim-uim"
101     elog "To use various input methods (more than 30 languages):"
102     elog " # emerge app-i18n/scim-m17n"
103     elog
104 usata 1.1 ewarn
105     ewarn "If you upgraded from scim-1.2.x or scim-1.0.x,"
106     ewarn "you should remerge all SCIM modules."
107     ewarn
108     epause 10
109    
110     has_gtk && gtk-query-immodules-2.0 > ${ROOT}$(get_gtk_confdir)/gtk.immodules
111     }
112    
113     pkg_postrm() {
114    
115     has_gtk && gtk-query-immodules-2.0 > ${ROOT}$(get_gtk_confdir)/gtk.immodules
116     }

  ViewVC Help
Powered by ViewVC 1.1.20