forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
imhangul-3.1.1.ebuild
58 lines (47 loc) · 1.27 KB
/
imhangul-3.1.1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit gnome2-utils
DESCRIPTION="GTK+ 3 Hangul Input Modules"
HOMEPAGE="https://github.com/libhangul/imhangul"
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="3"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="app-i18n/libhangul
x11-libs/gtk+:3
virtual/libintl"
DEPEND="${RDEPEND}
virtual/pkgconfig
sys-devel/gettext"
src_prepare() {
default
gnome2_environment_reset
gnome2_disable_deprecation_warning
}
src_configure() {
econf --with-gtk-im-module-dir="${EPREFIX%/}"/usr/$(get_libdir)/gtk-3.0/$(pkg-config gtk+-3.0 --variable=gtk_binary_version)/immodules
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
dodoc ${PN}.conf
local s
insinto /etc/X11/xinit/xinput.d
for s in 2{,y} 3{2,9,f,s,y} ahn ro; do
newins "${FILESDIR}"/xinput-${PN}${s} ${PN}${s}.conf
done
}
pkg_postinst() {
gnome2_query_immodules_gtk3
elog
elog "If you want to use one of the module as a default input method, "
elog
elog "export GTK_IM_MODULE=hangul2 # 2 input type"
elog "export GTK_IM_MODULE=hangul3f # 3 input type"
elog
}
pkg_postrm() {
gnome2_query_immodules_gtk3
}