Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/imhangul: imhangul-0.9.16.ebuild ChangeLog
Date: Fri, 28 Jan 2011 00:08:30
Message-Id: 20110128000820.1A82420054@flycatcher.gentoo.org
1 matsuu 11/01/28 00:08:20
2
3 Modified: ChangeLog
4 Added: imhangul-0.9.16.ebuild
5 Log:
6 Version bumped, bug #352704. Convert to EAPI=3. Added imsettings related files.
7
8 (Portage version: 2.1.9.31/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.30 app-i18n/imhangul/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/ChangeLog?rev=1.30&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/ChangeLog?rev=1.30&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/ChangeLog?r1=1.29&r2=1.30
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-i18n/imhangul/ChangeLog,v
20 retrieving revision 1.29
21 retrieving revision 1.30
22 diff -u -r1.29 -r1.30
23 --- ChangeLog 13 Jan 2010 16:33:48 -0000 1.29
24 +++ ChangeLog 28 Jan 2011 00:08:19 -0000 1.30
25 @@ -1,6 +1,16 @@
26 # ChangeLog for app-i18n/imhangul
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/imhangul/ChangeLog,v 1.29 2010/01/13 16:33:48 matsuu Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/imhangul/ChangeLog,v 1.30 2011/01/28 00:08:19 matsuu Exp $
31 +
32 +*imhangul-0.9.16 (28 Jan 2011)
33 +
34 + 28 Jan 2011; MATSUU Takuto <matsuu@g.o> +files/xinput-imhangul2,
35 + +imhangul-0.9.16.ebuild, +files/xinput-imhangul2y, +files/xinput-imhangul3f,
36 + +files/xinput-imhangul3s, +files/xinput-imhangul3y, +files/xinput-imhangul32,
37 + +files/xinput-imhangul39, +files/xinput-imhangulahn,
38 + +files/xinput-imhangulro:
39 + Version bumped, bug #352704. Convert to EAPI=3. Added imsettings related
40 + files.
41
42 *imhangul-0.9.15 (13 Jan 2010)
43
44
45
46
47 1.1 app-i18n/imhangul/imhangul-0.9.16.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/imhangul-0.9.16.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/imhangul-0.9.16.ebuild?rev=1.1&content-type=text/plain
51
52 Index: imhangul-0.9.16.ebuild
53 ===================================================================
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/app-i18n/imhangul/imhangul-0.9.16.ebuild,v 1.1 2011/01/28 00:08:19 matsuu Exp $
57
58 EAPI="3"
59 inherit multilib
60
61 DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
62 HOMEPAGE="http://kldp.net/projects/imhangul/"
63 SRC_URI="http://kldp.net/frs/download.php/5856/${P}.tar.bz2"
64
65 SLOT="0"
66 LICENSE="GPL-2"
67 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
68 IUSE=""
69
70 RDEPEND=">=app-i18n/libhangul-0.0.12
71 >=x11-libs/gtk+-2.2:2
72 virtual/libintl"
73 DEPEND="${RDEPEND}
74 dev-util/pkgconfig
75 sys-devel/gettext"
76
77 get_gtk_confdir() {
78 if has_multilib_profile ; then
79 GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/${CHOST}}"
80 else
81 GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
82 fi
83 echo ${GTK2_CONFDIR}
84 }
85
86 update_gtk_immodules() {
87 local GTK2_CONFDIR=$(get_gtk_confdir)
88
89 mkdir -p "${GTK2_CONFDIR}"
90
91 if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
92 "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${GTK2_CONFDIR}/gtk.immodules"
93 fi
94 }
95
96 src_configure() {
97 econf \
98 --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
99 --with-gtk-im-module-file="$(get_gtk_confdir)" || die
100 }
101
102 src_install() {
103 emake DESTDIR="${D}" install || die
104
105 insinto /etc/X11/xinit/xinput.d
106 newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
107 newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
108 newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
109 newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
110 newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
111 newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
112 newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
113 newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
114 newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
115
116 dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
117 }
118
119 pkg_postinst() {
120 update_gtk_immodules
121
122 elog ""
123 elog "If you want to use one of the module as a default input method, "
124 elog ""
125 elog "export GTK_IM_MODULE=hangul2 # 2 input type"
126 elog "export GTK_IM_MODULE=hangul3f # 3 input type"
127 elog ""
128 }
129
130 pkg_postrm() {
131 update_gtk_immodules
132 }