summaryrefslogtreecommitdiff
path: root/app-i18n/imhangul
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/imhangul
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/imhangul')
-rw-r--r--app-i18n/imhangul/Manifest18
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul22
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul2y2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul322
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul392
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3f2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3s2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3y2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangulahn2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangulro2
-rw-r--r--app-i18n/imhangul/imhangul-2.0.0.ebuild86
-rw-r--r--app-i18n/imhangul/imhangul-2.1.0.ebuild82
-rw-r--r--app-i18n/imhangul/imhangul-3.1.1.ebuild63
-rw-r--r--app-i18n/imhangul/metadata.xml11
14 files changed, 278 insertions, 0 deletions
diff --git a/app-i18n/imhangul/Manifest b/app-i18n/imhangul/Manifest
new file mode 100644
index 000000000000..5feffdea6e75
--- /dev/null
+++ b/app-i18n/imhangul/Manifest
@@ -0,0 +1,18 @@
+AUX xinput-imhangul2 52 SHA256 071df65bc28ed595b92ec96ca4d06b1de04f04c71c364b6099c5ee342871a813 SHA512 b6e383a74375c3c5293a9fc26056fc4bad036326a87cf1a64cfb4f63092b283faf3d2c741b9fc23c8835efac1a190acb8916af5130a95412fa7403596d45682d WHIRLPOOL 534fc570572bff8e2c6b32fa78fc68523a718328e54da63575ba3bb572e284e2da5bf8127a7a707a7eaf0995c00667aee46c381ed800bbd9ead050777e6e1aa8
+AUX xinput-imhangul2y 61 SHA256 adfcb68528f4b6d5aeeab2880a0c14429af1fb23ec77bfac237350ec8519309d SHA512 ae92eb341b22a61eb16736f4b0532d5ce00b8ac4b25baa0ddf10870cc6174306c88b5450dfa2778f442ec551e55b79b5085e95748d11e06c81c5f1601dab6bee WHIRLPOOL 7538a0f64ab4c106a18b36d2e07f25c3fc9477a0eb86802f184d0318133d2d174dba35940ed7f8b85af8897d4e4e98144dda5c1121edeeeb0ca961e09d478a90
+AUX xinput-imhangul32 67 SHA256 76ad016611c84535ebe2b7d17d15efc41bcd8e20125a2e91f18a37784ce1fc7f SHA512 2bb2501ca6e05702b13f80154be662265932a60112805b6166a33c1fc6fa23d9c7865c9be578102eba9800e06d2e1b69ddf63a7521e4ce3129ee46ad191998c3 WHIRLPOOL 58f39cfab64fe3f1e00bf9e6ea8478058b6ae41d4ae6c523fdec48db07b6312878a63f6b6f137bc7288a431d49de28e31c9619c916452da2e406406e00f04c5b
+AUX xinput-imhangul39 57 SHA256 6b57e4a73660e8146c25516af76ee9470ce9e939931b157ff49db951108c829a SHA512 efdaf9260d12f24f62218e4ba12a81cd36dd125acc0d138ceafea8c3da64d7dcc95bf4a156471db726097d7a91a595f6e8be888687125c3c2cbcacec1b1cc8bf WHIRLPOOL 70d07d43c839b230b5b8cceab5911593957a9e11bea2c7b74209b15a0ec3b7b815a034b6d16c95b7971ee5cfa89ce276aee33b34d54d4a1d156d3dcc98a5210f
+AUX xinput-imhangul3f 59 SHA256 b638f3280bc20672c2d84a889a20733634c4c364135cb58b50e640a2af137709 SHA512 2e958bc9f39af365795a7927a2338af03be7550dcac10ed63d2910da861c4bb238e786f5ac449283d009ac2ed67fda463f76ed3ca23f36ccd58b44475e94d096 WHIRLPOOL b7bbaf60d933d1ad56dfe1bab68b28821fbbddd3e967b6892cdc268fc5c45dbd3099642eb2a851f6ce8edd7a52710a267afeed21028c05e0c13c9e921eee47d4
+AUX xinput-imhangul3s 61 SHA256 74a7b530d804a6df9424f170087817329e6229a3d65aa07974864bc68d3f0777 SHA512 1faff86b65185c8bf1cdaa8a27c0f98d27fecd9415cb43c63698913898171e0a3b310a3f5528650d98dbc87afa31ae82e48ee34f3ee8823e9dbdbe3aa1d4eb2f WHIRLPOOL 7878164f5a0d7be1be8424116302e5c299417618150335f34a35ff303c83127047ff4196875f30f918176059acef217eefb4208872da8bcfec33ac5a2fa7b6d5
+AUX xinput-imhangul3y 61 SHA256 a9dfe10db328a7f2f9e49729d47ce304d563ed9f1ec88c3127b23754f3809c4b SHA512 b5340313cfe8d0ce0405b0cfbdcfde5192ede2cadf7006888526b1b4d98e257abdb276cae4b98b0caf40d5563f4f950e98e2fa0c1432b6efe36c9df11e7a92eb WHIRLPOOL a69cbdce92d0f30d67fd626c3915b9a192186fa51ad5f3a0a311f3ca847d96197defc0b81aa86b8d3b22afcbb8bff66db758f9f092da2f2f569b5b654cea92a9
+AUX xinput-imhangulahn 53 SHA256 c6013352c8c52cbeb9799444767a4583f3fdb4f05d35a1952ec9e7bc40802f30 SHA512 3ac9858111de532b483c8fb209f2517651e821ecf4aa704118d9f227a9ab090ae85cbb5572e14e6a04dc49b938fdcf103604ab1c2370df257174f94be2de55d9 WHIRLPOOL e003c9b351097080ba78b3ff6ac56d70e7304beecfa5c74315c209f34eb1c97b0e807cc202b70ea58554ba5dda9782d4037e2bf166c0597156b0a80d2276b001
+AUX xinput-imhangulro 50 SHA256 c437636b45ffe07379a1eab24ac484668d50f7c7febd2381d9391d99c78f5cf3 SHA512 5d1f588fcda77e6d96cfa955f0057edf614fe01290c9541eae61f8be85a7da80a29246bd2c777f517ce544c094a01d13d73d91368be7296aae9639698add90c4 WHIRLPOOL 5c90c97403f6473130ae9f3d68428910029043805c3212868a10c623fcec5a41757cf3f1d24df932d01887f185483028ce711b5131493badf0db752a4a0e070a
+DIST imhangul-2.0.0.tar.bz2 255591 SHA256 504b3cce9dc269bc94a14c6e725b86620cb135e6d43f8b945d799162f50bbb43 SHA512 203d83ec714ee464d3caa304a462a93129712d2221188a4f5cbb1caac309fb91f3b49749ab81d01d3c8bc2feeaf80398e9b8bc5e09b79c228fbc13ed9fbc28d3 WHIRLPOOL c4a7372215de7ec4a5fb850be6a8756c21096fb12ebb7e2d25e7fddbe369aad584ab98b9a76ddfaa862d03341d7c5efc0455a419ac663fd6c6cc51a7b4f6bd59
+DIST imhangul-2.1.0.tar.bz2 268205 SHA256 08c6deb97eda7c96e8180528f3b2aeee3e367757c643e2c48dde7d7b5ac77dc9 SHA512 ea4621c4e0e5ed1786e644b577bc0c9f3dbbf296f938ddb2ab04923d8147e01123e10e09a61484e30c3ab0ff51d86da80a93bce583eceee207eab90c27df5f8e WHIRLPOOL c758955538eb970b3a2ed73df3ba6c08963ea16628b1befa8f7130f6afa00dc8179ea9bf25a951070c0fdb17fcaa0a17c6d0e97b5eebbd3e6c1d859ad1f00348
+DIST imhangul-3.1.1.tar.bz2 288236 SHA256 24f103e55c38f2cd4b708398106ac19760e2ef1834513f46f32b0baf439461e0 SHA512 a27fb34a826ceccb16e4c8a422f5571c7c6a4c253cd2a55c1025b0c22500a380a35a8703e9f0f6300fdc92544e1d7b59e33f11e059b85754b1619698e0f74d89 WHIRLPOOL c5cdb552891463a1d3f231b17ab9bf50810746a2ca7bfe3f9aeed001356232f188512de9e66c2d34777eec784c139e8286e7050fae6351b5e90099ec655d2764
+EBUILD imhangul-2.0.0.ebuild 2371 SHA256 80be18bca1f0ff5fe1c26a0a8efa65447970323a62652e85e0ad0887d524e8ab SHA512 da1a2172d6a9cfdda2680eae9a51051c64207fe1be9ab9e28e213f68621cab5d12f9a5c102e14fe99ac6437e48976947b0033b2b8fd162fd372158d585e6a513 WHIRLPOOL 90cb51c26458c59cefe565e7e6b271b2ea4cfc62ae9d621bd53a543631ec302e88fe7f963c36f402d28d8203021a9eddae88198f601c005401ee5937957cb891
+EBUILD imhangul-2.1.0.ebuild 2015 SHA256 feffd9f74a3cdafc3bd06043ad273b8d47d996aa1e1757f64c9c727f1abef1c0 SHA512 f256c7387f8791d2964a9fcb49a32bb0798a6815fe3d6950593b2b4b9e22e0de838f9d7448571382284e6f615e7e4baeb7b63ebe797c5e41c0ef1dc5adc7267e WHIRLPOOL d05b92fe8158fdff6e764043a1b25d204527379647851ebba00f11f413756f4b9432356f86438f5985e0e39defab5d17a349b91a2e3cdbfa439326217227b021
+EBUILD imhangul-3.1.1.ebuild 1860 SHA256 ff0c4700504d2f8a8074446c38b58ea504781aa19bccea0943d7f76c40e85966 SHA512 c8bdec1aa62dd5c9484fdcef92bf90ab389c5209f6bee33be0920248c793088d4f3c35770abdac618773370a6ab3b077266c5ccea549f0cf9a21403f48aecf32 WHIRLPOOL e2b23334d4099ec86380bc917ae1fedd6d43bb88af6d32ce21bb91d0a296e98a52beda21a372a86d2395aa2189f638904354168975a2a62d30dd18e0179d1ca5
+MISC ChangeLog 3653 SHA256 0502b64903af8c93d56cfe5d38311d69b430d50dee1e4298e4e6b758ac09683e SHA512 c5608cbfdba49b847e7dd98d4cd579dee43b4e1e8bc24c981e94f6653f327bea6d0d21ef721656f02153d615ca9129972503737860eb1c3eac0a1527433a1cb5 WHIRLPOOL 38cd65a7b2b9f231cd368a67e2e894ba754b3390a6d283f5c68ca74ea0d4acf43c6b07d808142ec22416809fc4d936650ce05b86a24318e6ed7a93cbd9fcfbd8
+MISC ChangeLog-2015 6611 SHA256 3f7088bfec96917e0e1253c084fe176646d3a7d0be51bb376465bc79908b6097 SHA512 b0a5cae2d6d20dc8f52b35deec08463c09d8cd9413eac31adfd409c0c029ea735592987ec436b80c6f40a9eff1ad48634a31725679f85388fa236176e7e5f34c WHIRLPOOL 755bf0ccb24a4dfb5eae370b3ec10be55136ffcceafe569500fdaff19875bb888373ece01c7654796df3cbd94675ad01115808cc1f2c52c6341df9167f490fe6
+MISC metadata.xml 312 SHA256 4ecd16aa8b2b7e9a5bbb141a8b484643bf6cab3ac784f02d38c0221381a9b493 SHA512 ea7923a669ff35a1d8067bc6fa5d443db7cc77c9ac78ef7eae002e080d3fa308afb0cfd20027e2021a4ec4a6eac5f3fe1647b049b795c671da1fb4d64fd45e94 WHIRLPOOL 49e52c4c1b579ccce4ae3e6f93a2c1c72174d454bd63e57b98191e77a06ea2a03882dc29b14f082d9e0ba1aaefef4404bcbdcd91a05b111cbf93fbe64c67e397
diff --git a/app-i18n/imhangul/files/xinput-imhangul2 b/app-i18n/imhangul/files/xinput-imhangul2
new file mode 100644
index 000000000000..099b880344b7
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul2
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Dubeolsik"
+GTK_IM_MODULE=hangul2
diff --git a/app-i18n/imhangul/files/xinput-imhangul2y b/app-i18n/imhangul/files/xinput-imhangul2y
new file mode 100644
index 000000000000..f622cb8d246c
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul2y
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Dubeolsik Yetgeul"
+GTK_IM_MODULE=hangul2y
diff --git a/app-i18n/imhangul/files/xinput-imhangul32 b/app-i18n/imhangul/files/xinput-imhangul32
new file mode 100644
index 000000000000..6a903e2cd707
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul32
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik Dubeol Layout"
+GTK_IM_MODULE=hangul32
diff --git a/app-i18n/imhangul/files/xinput-imhangul39 b/app-i18n/imhangul/files/xinput-imhangul39
new file mode 100644
index 000000000000..b5438d01c572
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul39
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik 390"
+GTK_IM_MODULE=hangul39
diff --git a/app-i18n/imhangul/files/xinput-imhangul3f b/app-i18n/imhangul/files/xinput-imhangul3f
new file mode 100644
index 000000000000..e0c703272ce3
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul3f
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik Final"
+GTK_IM_MODULE=hangul3f
diff --git a/app-i18n/imhangul/files/xinput-imhangul3s b/app-i18n/imhangul/files/xinput-imhangul3s
new file mode 100644
index 000000000000..0ce1079ff76a
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul3s
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik Noshift"
+GTK_IM_MODULE=hangul3s
diff --git a/app-i18n/imhangul/files/xinput-imhangul3y b/app-i18n/imhangul/files/xinput-imhangul3y
new file mode 100644
index 000000000000..922e9025e884
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul3y
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik Yetgeul"
+GTK_IM_MODULE=hangul3y
diff --git a/app-i18n/imhangul/files/xinput-imhangulahn b/app-i18n/imhangul/files/xinput-imhangulahn
new file mode 100644
index 000000000000..1dd23b661920
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangulahn
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Ahnmatae"
+GTK_IM_MODULE=hangulahn
diff --git a/app-i18n/imhangul/files/xinput-imhangulro b/app-i18n/imhangul/files/xinput-imhangulro
new file mode 100644
index 000000000000..7cfcfaeb8d81
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangulro
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Romaja"
+GTK_IM_MODULE=hangulro
diff --git a/app-i18n/imhangul/imhangul-2.0.0.ebuild b/app-i18n/imhangul/imhangul-2.0.0.ebuild
new file mode 100644
index 000000000000..b4a6d7cc5c5e
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-2.0.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="http://kldp.net/projects/imhangul/"
+SRC_URI="http://kldp.net/frs/download.php/5924/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ >=x11-libs/gtk+-2.2:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+get_gtk_confdir() {
+ # bug #366889
+ if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/$(get_abi_CHOST)}"
+ else
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
+ fi
+ echo ${GTK2_CONFDIR}
+}
+
+update_gtk_immodules() {
+ local GTK2_CONFDIR=$(get_gtk_confdir)
+
+ mkdir -p "${GTK2_CONFDIR}"
+
+ if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
+ "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${GTK2_CONFDIR}/gtk.immodules"
+ fi
+}
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ update_gtk_immodules
+
+ 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() {
+ update_gtk_immodules
+}
diff --git a/app-i18n/imhangul/imhangul-2.1.0.ebuild b/app-i18n/imhangul/imhangul-2.1.0.ebuild
new file mode 100644
index 000000000000..3a226eadce5a
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-2.1.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils multilib readme.gentoo-r1
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="https://code.google.com/p/imhangul/"
+SRC_URI="https://imhangul.googlecode.com/files/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-i18n/libhangul-0.0.12
+ >=x11-libs/gtk+-2.2:2
+ virtual/libintl
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="
+If you want to use one of the module as a default input method,
+
+export GTK_IM_MODULE=hangul2 # 2 input type
+export GTK_IM_MODULE=hangul3f # 3 input type
+"
+
+get_gtk_confdir() {
+ # bug #366889
+ if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/$(get_abi_CHOST)}"
+ else
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
+ fi
+ echo ${GTK2_CONFDIR}
+}
+
+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/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)"
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf
+
+ dodoc imhangul.conf
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/imhangul/imhangul-3.1.1.ebuild b/app-i18n/imhangul/imhangul-3.1.1.ebuild
new file mode 100644
index 000000000000..6d32c1184876
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-3.1.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
+HOMEPAGE="https://code.google.com/p/imhangul/"
+SRC_URI="https://imhangul.googlecode.com/files/${P}.tar.bz2"
+
+SLOT="3"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ x11-libs/gtk+:3
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+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" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+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
+}
diff --git a/app-i18n/imhangul/metadata.xml b/app-i18n/imhangul/metadata.xml
new file mode 100644
index 000000000000..da6b3414b7d8
--- /dev/null
+++ b/app-i18n/imhangul/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">imhangul</remote-id>
+ </upstream>
+</pkgmetadata>