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: ChangeLog imhangul-3.1.0.ebuild imhangul-2.1.0.ebuild
Date: Wed, 11 Jan 2012 15:23:44
Message-Id: 20120111152333.C8B662004B@flycatcher.gentoo.org
1 matsuu 12/01/11 15:23:33
2
3 Modified: ChangeLog
4 Added: imhangul-3.1.0.ebuild imhangul-2.1.0.ebuild
5 Log:
6 Version bumped.
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.38 app-i18n/imhangul/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-i18n/imhangul/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 22 Dec 2011 22:03:35 -0000 1.37
24 +++ ChangeLog 11 Jan 2012 15:23:33 -0000 1.38
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-i18n/imhangul
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/imhangul/ChangeLog,v 1.37 2011/12/22 22:03:35 maekke Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/imhangul/ChangeLog,v 1.38 2012/01/11 15:23:33 matsuu Exp $
31 +
32 +*imhangul-3.1.0 (11 Jan 2012)
33 +*imhangul-2.1.0 (11 Jan 2012)
34 +
35 + 11 Jan 2012; MATSUU Takuto <matsuu@g.o> +imhangul-2.1.0.ebuild,
36 + +imhangul-3.1.0.ebuild:
37 + Version bumped.
38
39 22 Dec 2011; Markus Meier <maekke@g.o> imhangul-2.0.0.ebuild:
40 x86 stable, bug #393011
41
42
43
44 1.1 app-i18n/imhangul/imhangul-3.1.0.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/imhangul-3.1.0.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/imhangul-3.1.0.ebuild?rev=1.1&content-type=text/plain
48
49 Index: imhangul-3.1.0.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-i18n/imhangul/imhangul-3.1.0.ebuild,v 1.1 2012/01/11 15:23:33 matsuu Exp $
54
55 EAPI="3"
56 inherit multilib
57
58 DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
59 HOMEPAGE="http://code.google.com/p/imhangul/"
60 SRC_URI="http://imhangul.googlecode.com/files/${P}.tar.bz2"
61
62 SLOT="3"
63 LICENSE="LGPL-2.1"
64 KEYWORDS="~amd64 ~ppc ~x86"
65 IUSE=""
66
67 RDEPEND=">=app-i18n/libhangul-0.0.12
68 x11-libs/gtk+:3
69 virtual/libintl"
70 DEPEND="${RDEPEND}
71 dev-util/pkgconfig
72 sys-devel/gettext"
73
74 update_gtk_immodules() {
75 if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ] ; then
76 "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache
77 fi
78 }
79
80 src_prepare() {
81 # Drop DEPRECATED flags, bug #387825
82 sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
83 }
84
85 src_configure() {
86 econf --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-3.0/$(pkg-config gtk+-3.0 --variable=gtk_binary_version)/immodules" || die
87 }
88
89 src_install() {
90 emake DESTDIR="${D}" install || die
91
92 find "${ED}" -name "*.la" -type f -delete || die
93
94 insinto /etc/X11/xinit/xinput.d
95 newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
96 newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
97 newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
98 newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
99 newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
100 newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
101 newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
102 newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
103 newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
104
105 dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
106 }
107
108 pkg_postinst() {
109 update_gtk_immodules
110
111 elog ""
112 elog "If you want to use one of the module as a default input method, "
113 elog ""
114 elog "export GTK_IM_MODULE=hangul2 # 2 input type"
115 elog "export GTK_IM_MODULE=hangul3f # 3 input type"
116 elog ""
117 }
118
119 pkg_postrm() {
120 update_gtk_immodules
121 }
122
123
124
125 1.1 app-i18n/imhangul/imhangul-2.1.0.ebuild
126
127 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/imhangul-2.1.0.ebuild?rev=1.1&view=markup
128 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/imhangul/imhangul-2.1.0.ebuild?rev=1.1&content-type=text/plain
129
130 Index: imhangul-2.1.0.ebuild
131 ===================================================================
132 # Copyright 1999-2012 Gentoo Foundation
133 # Distributed under the terms of the GNU General Public License v2
134 # $Header: /var/cvsroot/gentoo-x86/app-i18n/imhangul/imhangul-2.1.0.ebuild,v 1.1 2012/01/11 15:23:33 matsuu Exp $
135
136 EAPI="3"
137 inherit multilib
138
139 DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
140 HOMEPAGE="http://code.google.com/p/imhangul/"
141 SRC_URI="http://imhangul.googlecode.com/files/${P}.tar.bz2"
142
143 SLOT="0"
144 LICENSE="LGPL-2.1"
145 KEYWORDS="~amd64 ~ppc ~x86"
146 IUSE=""
147
148 RDEPEND=">=app-i18n/libhangul-0.0.12
149 >=x11-libs/gtk+-2.2:2
150 virtual/libintl"
151 DEPEND="${RDEPEND}
152 dev-util/pkgconfig
153 sys-devel/gettext"
154
155 get_gtk_confdir() {
156 # bug #366889
157 if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
158 GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/$(get_abi_CHOST)}"
159 else
160 GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
161 fi
162 echo ${GTK2_CONFDIR}
163 }
164
165 update_gtk_immodules() {
166 local GTK2_CONFDIR=$(get_gtk_confdir)
167
168 mkdir -p "${GTK2_CONFDIR}"
169
170 if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
171 "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${GTK2_CONFDIR}/gtk.immodules"
172 fi
173 }
174
175 src_prepare() {
176 # Drop DEPRECATED flags, bug #387825
177 sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
178 }
179
180 src_configure() {
181 econf \
182 --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
183 --with-gtk-im-module-file="$(get_gtk_confdir)" || die
184 }
185
186 src_install() {
187 emake DESTDIR="${D}" install || die
188
189 find "${ED}" -name "*.la" -type f -delete || die
190
191 insinto /etc/X11/xinit/xinput.d
192 newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
193 newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
194 newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
195 newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
196 newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
197 newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
198 newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
199 newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
200 newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
201
202 dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
203 }
204
205 pkg_postinst() {
206 update_gtk_immodules
207
208 elog ""
209 elog "If you want to use one of the module as a default input method, "
210 elog ""
211 elog "export GTK_IM_MODULE=hangul2 # 2 input type"
212 elog "export GTK_IM_MODULE=hangul3f # 3 input type"
213 elog ""
214 }
215
216 pkg_postrm() {
217 update_gtk_immodules
218 }