app-i18n/imhangul: new upstream release
authorAkinori Hattori <hattya@gentoo.org>
Tue, 28 Aug 2018 13:46:12 +0000 (22:46 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Tue, 28 Aug 2018 13:46:12 +0000 (22:46 +0900)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-i18n/imhangul/Manifest
app-i18n/imhangul/imhangul-2.1.1.ebuild [new file with mode: 0644]

index b5d763bed3b201cecb1721518eb18bec4d521580..5c0f7d60981f05a9ee47544ae9332d01e17a9d33 100644 (file)
@@ -1,2 +1,3 @@
 DIST imhangul-2.1.0.tar.bz2 268205 BLAKE2B c45cc3e0919c695466f7d09c20c3ee5ae827865b6c3093746f8435bfb3f18da0cf94bc4225829dbafb2f13fcd1da0ec4a696adb966bff90285c769eb36232c4b SHA512 ea4621c4e0e5ed1786e644b577bc0c9f3dbbf296f938ddb2ab04923d8147e01123e10e09a61484e30c3ab0ff51d86da80a93bce583eceee207eab90c27df5f8e
+DIST imhangul-2.1.1.tar.bz2 288452 BLAKE2B 14aba1fb582edd735d1469b2fc1c4b576c64f073f525b30a3c5dd681b82d07f7b2960a63c388dae47d93855f25abbfbb2a48b032e5509239325db1cd05ff6b5e SHA512 5db3843aec698bd6315e4c76f3d8ea374b5d985ff7ae8a3d05861afb1d564ffe274d56fa27e8f669884016c50d5fc1850984050d93fdee944c6f7c3c963c96f1
 DIST imhangul-3.1.1.tar.bz2 288236 BLAKE2B bb762481c98d8e4d3e1f32629802320fbdd6ec2388e9d7e9f1838fbbcb05f247549dc2baa68e6f4ec626f32b1911b5dfa89810e64c9e826cb1887400bbe11e71 SHA512 a27fb34a826ceccb16e4c8a422f5571c7c6a4c253cd2a55c1025b0c22500a380a35a8703e9f0f6300fdc92544e1d7b59e33f11e059b85754b1619698e0f74d89
diff --git a/app-i18n/imhangul/imhangul-2.1.1.ebuild b/app-i18n/imhangul/imhangul-2.1.1.ebuild
new file mode 100644 (file)
index 0000000..2968517
--- /dev/null
@@ -0,0 +1,58 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit gnome2-utils
+
+DESCRIPTION="GTK+ 2 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="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/libhangul
+       x11-libs/gtk+:2
+       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-2.0/$(pkg-config gtk+-2.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_gtk2
+       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_gtk2
+}