/[gentoo-x86]/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild
Gentoo

Contents of /app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Oct 2 02:40:49 2012 UTC (21 months, 4 weeks ago) by naota
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Force scim not to use gtk3.

(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild,v 1.2 2012/05/03 19:24:27 jdhore Exp $
4
5 EAPI="2"
6
7 inherit eutils
8
9 DESCRIPTION="Japanese input method Wnn IMEngine for SCIM"
10 HOMEPAGE="http://nop.net-p.org/modules/pukiwiki/index.php?%5B%5Bscim-wnn%5D%5D"
11 SRC_URI="http://nop.net-p.org/files/scim-wnn/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+freewnn"
17
18 RDEPEND=">=app-i18n/scim-1.4[-gtk3]
19 dev-libs/wnn7sdk
20 freewnn? ( app-i18n/freewnn )"
21 DEPEND="${RDEPEND}
22 virtual/pkgconfig
23 >=sys-apps/sed-4"
24
25 src_prepare() {
26 # bug #140794
27 sed -i -e 's:$LDFLAGS conftest.$ac_ext $LIBS:conftest.$ac_ext $LIBS $LDFLAGS:g' \
28 configure || die "ldflags sed failed"
29
30 # sed -i -e "s:/usr/lib/wnn7:/usr/$(get_libdir)/wnn:g" \
31 sed -i -e "s:/usr/lib/wnn7:/usr/lib/wnn:g" \
32 src/scim_wnn_def.h src/wnnconversion.cpp || die "sed failed"
33
34 # bug #295733
35 epatch "${FILESDIR}/${P}-gcc43.patch"
36 }
37
38 src_install() {
39 emake DESTDIR="${D}" install || die "make install failed"
40
41 dodoc AUTHORS ChangeLog NEWS README || die
42 }
43
44 pkg_postinst() {
45 elog
46 elog "To use SCIM with both GTK2 and XIM, you should use the following"
47 elog "in your user startup scripts such as .gnomerc or .xinitrc:"
48 elog
49 elog "LANG='your_language' scim -d"
50 elog "export XMODIFIERS=@im=SCIM"
51 elog
52 if ! use freewnn ; then
53 ewarn
54 ewarn "You disabled freewnn USE flag."
55 ewarn "Please make sure you have wnnenvrc visible to scim-wnn."
56 ewarn
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20