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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Feb 10 22:46:10 2006 UTC (13 years, 11 months ago) by liquidx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
removing old cvs ebuild
(Portage version: 2.1_pre4-r1)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/scim-cvs/scim-cvs-1.1.0.ebuild,v 1.3 2006/02/10 19:13:17 liquidx Exp $
4
5 inherit gnome2 eutils cvs
6
7 DESCRIPTION="Smart Common Input Method (SCIM) is an 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 ~amd64"
14 IUSE="gnome gtk immqt immqt-bc"
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 GTK_DEPEND=">=x11-libs/gtk+-2
26 >=dev-libs/atk-1
27 >=x11-libs/pango-1
28 >=dev-libs/glib-2"
29 RDEPEND="|| ( x11-libs/libX11 virtual/x11 )
30 gnome? ( >=gnome-base/gconf-1.2
31 >=dev-libs/libxml2-2.5
32 >=gnome-base/orbit-2.8 )
33 gtk? ( ${GTK_DEPEND} )
34 immqt? ( ${GTK_DEPEND} )
35 immqt-bc? ( ${GTK_DEPEND} )
36 !app-i18n/scim
37 !<app-i18n/scim-chinese-0.4.0"
38 DEPEND="${RDEPEND}
39 dev-lang/perl
40 sys-devel/autoconf
41 sys-devel/automake
42 >=sys-apps/sed-4"
43 PDEPEND="|| ( >=app-i18n/scim-m17n-0.1.2
44 >=app-i18n/scim-uim-0.1.3
45 >=app-i18n/scim-chinese-0.4.2
46 >=app-i18n/scim-hangul-0.1.1
47 >=app-i18n/scim-tables-0.4.0 )"
48
49 ELTCONF="--reverse-deps"
50 SCROLLKEEPER_UPDATE="0"
51 USE_DESTDIR="1"
52
53 has_gtk() {
54 if has_version '>=x11-libs/gtk+-2' ; then
55 true
56 else
57 false
58 fi
59 }
60
61 get_gtk_confdir() {
62 if useq amd64 || ( [ "${CONF_LIBDIR}" == "lib32" ] && useq x86 ) ; then
63 echo "/etc/gtk-2.0/${CHOST}"
64 else
65 echo "/etc/gtk-2.0"
66 fi
67 }
68
69 src_unpack() {
70 cvs_src_unpack
71 # use scim gtk2 IM module only for chinese/japanese/korean
72 EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${PN}-gtk2immodule.patch
73
74 cd ${S}
75 ./bootstrap || die "bootstrap failed"
76
77 # workaround for problematic makefile
78 sed -i -e "s:^\(scim.*LDFLAGS.*\):\1 -ldl:g" \
79 ${S}/src/Makefile.* || die
80 sed -i -e "s:^\(scim_make_table_LDFLAGS.*\):\1 -ldl:" \
81 ${S}/modules/IMEngine/Makefile.* || die
82 sed -i -e "s:^LDFLAGS = :LDFLAGS = -ldl :g" \
83 -e "s:^\(test.*LDFLAGS.*\):\1 -ldl:g" \
84 ${S}/tests/Makefile.* || die
85 sed -i -e "s:GTK_VERSION=2.3.5:GTK_VERSION=2.4.0:" \
86 ${S}/configure || die
87 }
88
89 src_compile() {
90 use gnome || G2CONF="${G2CONF} --disable-config-gconf"
91 use gtk || use immqt || use immqt-bc || G2CONF="${G2CONF} --disable-panel-gtk --disable-setup-ui"
92 has_gtk || G2CONF="${G2CONF} --disable-gtk2-immodule"
93 gnome2_src_compile
94 }
95
96 src_install() {
97 gnome2_src_install || die "install failed"
98 dodoc README AUTHORS ChangeLog docs/developers docs/scim.cfg
99 dohtml -r docs/html/*
100 }
101
102 pkg_postinst() {
103 einfo
104 einfo "To use SCIM with both GTK2 and XIM, you should use the following"
105 einfo "in your user startup scripts such as .gnomerc or .xinitrc:"
106 einfo
107 einfo "LANG='your_language' scim -d"
108 einfo "export XMODIFIERS=@im=SCIM"
109 einfo
110 einfo "where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other"
111 einfo "UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8"
112 einfo
113 einfo "If you prefer KDE/Qt interface, try emerge app-i18n/skim."
114 einfo
115 einfo "To use Chinese input methods:"
116 einfo " # emerge app-i18n/scim-tables app-i18n/scim-chinese"
117 einfo "To use Korean input methods:"
118 einfo " # emerge app-i18n/scim-hangul"
119 einfo "To use Japanese input methods:"
120 einfo " # emerge app-i18n/scim-uim"
121 einfo "To use various input methods (more than 30 languages):"
122 einfo " # emerge app-i18n/scim-m17n"
123 einfo
124
125 has_gtk && gtk-query-immodules-2.0 > ${ROOT}$(get_gtk_confdir)/gtk.immodules
126 }
127
128 pkg_postrm() {
129
130 has_gtk && gtk-query-immodules-2.0 > ${ROOT}$(get_gtk_confdir)/gtk.immodules
131 }

  ViewVC Help
Powered by ViewVC 1.1.20