diff options
Diffstat (limited to 'app-i18n/scim-hangul')
-rw-r--r-- | app-i18n/scim-hangul/Manifest | 6 | ||||
-rw-r--r-- | app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch | 23 | ||||
-rw-r--r-- | app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch | 12 | ||||
-rw-r--r-- | app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch | 11 | ||||
-rw-r--r-- | app-i18n/scim-hangul/metadata.xml | 11 | ||||
-rw-r--r-- | app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild | 51 |
6 files changed, 114 insertions, 0 deletions
diff --git a/app-i18n/scim-hangul/Manifest b/app-i18n/scim-hangul/Manifest new file mode 100644 index 000000000000..548aa8186b93 --- /dev/null +++ b/app-i18n/scim-hangul/Manifest @@ -0,0 +1,6 @@ +AUX scim-hangul-0.3.2+gcc-4.3.patch 883 BLAKE2B c891bb3865510bff80e28f4f770ea4f173d414b18c6c81cbd3b92f870774f4118e1f37ca68e94a83f128f5620d16ab77abfd03b237723def6828b353713a6bb0 SHA512 f7b65475af23667110219182ec9ba235da83d27603028c8f7655c39ffe36307762e3791d3630602c1cf0b56e87300f45562426e199f39845e39832d88fa7258a +AUX scim-hangul-0.3.2+gcc-4.7.patch 318 BLAKE2B 379fd21d1ce405ffac797053f0011c2b81eb4567fe4e027be5678778316ccd5c025733c281c28955fbb6f2985e6c260df2a5f953867b7096c2827c92d02a2c83 SHA512 b07a6dadf8e206fad812e184f506d034628eccf76de00729f3c8b68eb20bfc48a881a26ed78fbfa87e16dbd7164778eebe03fc7d45297462311a5386ea72da38 +AUX scim-hangul-0.4.0+gtk.patch 438 BLAKE2B 4d76932fbd56d53eac9e0667774fa29fd884cce70a898b1f1f7f7c944766d8707d17ff73ef6f6d57923e532d554a5f66a92e32d46b71ac411f7cf3c6f189e7f1 SHA512 9e3ea01bbb73fab8a66ae52a81c976a67e6c47588f14194dfdee3acda3d493c38106344eea21584d350ebbd5eeb0dedd9ab6d08c16893e8f290d845c8d2281b1 +DIST scim-hangul-0.4.0.tar.gz 456953 BLAKE2B c7c2a320d03c4f15ad048b4e036a6dcd1f34044cb82e9a8fd18be8808e3f1be6f6f198e963982d1c6b742e614da5b3b2b3e2086ea8bbe19b4118f5493ae0188c SHA512 2f0285268deac35763c67487a40b718bf846d63634701a2a68d85109f686421f2c935b1f2998487b1f017c1a5e5bf453c56933ab4984f7464e1613d7e0b3131b +EBUILD scim-hangul-0.4.0.ebuild 1065 BLAKE2B ca093b848f5bc563c59f6df461222ccdd18c3dedce18213ee9726da8f94b13a13c398123c2bc5b89c8df12a2830865f3eb33e82783ed19b33fe97a235faca074 SHA512 198f1a4f5032d6eec5132fb48b7fe934d01d2628b4c0fb55693ed53d261da22fb714a94f3a599aaa2e9c9c8a296ed0d48f0933b04960fe0485971ce3a3e25699 +MISC metadata.xml 308 BLAKE2B 1bdcfa2996c5ba60e52eddb6446bbc6978ebee7f1f2f4658c44438b886a89cf46a3fddea53c479151e5e023e5681dca5f01264a26ca108c895ac6758f01d6430 SHA512 9f18bf632f3eff9a6498145c2b4c04d51bb119c67351216ab757cd3cea2364c60bef683769218c0596ef6bd29235e51df6a64f9ab1234665fc2191e18fc51cc7 diff --git a/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch b/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch new file mode 100644 index 000000000000..b7698793ac8e --- /dev/null +++ b/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch @@ -0,0 +1,23 @@ +diff -up scim-hangul-0.3.2/src/scim_hangul_imengine.cpp.gcc43~ scim-hangul-0.3.2/src/scim_hangul_imengine.cpp +--- scim-hangul-0.3.2/src/scim_hangul_imengine.cpp.gcc43~ 2008-01-13 08:01:34.000000000 +0000 ++++ scim-hangul-0.3.2/src/scim_hangul_imengine.cpp 2008-01-13 08:01:34.000000000 +0000 +@@ -29,6 +29,7 @@ + #define Uses_SCIM_LOOKUP_TABLE + #define Uses_SCIM_CONFIG_BASE + ++#include <cstring> + #ifdef HAVE_CONFIG_H + #include <config.h> + #endif +diff -up scim-hangul-0.3.2/src/scim_hangul_imengine_setup.cpp.gcc43~ scim-hangul-0.3.2/src/scim_hangul_imengine_setup.cpp +--- scim-hangul-0.3.2/src/scim_hangul_imengine_setup.cpp.gcc43~ 2008-01-13 08:01:37.000000000 +0000 ++++ scim-hangul-0.3.2/src/scim_hangul_imengine_setup.cpp 2008-01-13 08:01:37.000000000 +0000 +@@ -28,7 +28,8 @@ + + #define Uses_SCIM_CONFIG_BASE + ++#include <cstring> + #include <gtk/gtk.h> + + #ifdef HAVE_CONFIG_H + diff --git a/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch b/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch new file mode 100644 index 000000000000..918de9e11367 --- /dev/null +++ b/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch @@ -0,0 +1,12 @@ +diff --git a/src/scim_hangul_imengine.cpp b/src/scim_hangul_imengine.cpp +index 7d70654..d678902 100644 +--- a/src/scim_hangul_imengine.cpp ++++ b/src/scim_hangul_imengine.cpp +@@ -30,6 +30,7 @@ + #define Uses_SCIM_CONFIG_BASE + + #include <cstring> ++#include <unistd.h> + #ifdef HAVE_CONFIG_H + #include <config.h> + #endif diff --git a/app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch b/app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch new file mode 100644 index 000000000000..82d9f8ee10b2 --- /dev/null +++ b/app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch @@ -0,0 +1,11 @@ +--- a/src/scim_hangul_imengine_setup.cpp ++++ b/src/scim_hangul_imengine_setup.cpp +@@ -346,7 +346,7 @@ + for (i = 0; i < n; i++) { + const char* name = hangul_ic_get_keyboard_name(i); + #if GTK_CHECK_VERSION(2, 24, 0) +- gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box), NULL, name); ++ gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_box), name); + #else + gtk_combo_box_append_text(GTK_COMBO_BOX(combo_box), name); + #endif diff --git a/app-i18n/scim-hangul/metadata.xml b/app-i18n/scim-hangul/metadata.xml new file mode 100644 index 000000000000..01855eefe13f --- /dev/null +++ b/app-i18n/scim-hangul/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="sourceforge">scim</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild b/app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild new file mode 100644 index 000000000000..aa37d7ea868e --- /dev/null +++ b/app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Hangul IMEngine for SCIM ported from imhangul" +HOMEPAGE="http://www.scim-im.org/" +SRC_URI="mirror://sourceforge/scim/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="nls" + +RDEPEND=" + >=app-i18n/scim-0.99.8 + >=app-i18n/libhangul-0.0.4 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.3.2+gcc-4.3.patch + "${FILESDIR}"/${PN}-0.3.2+gcc-4.7.patch + "${FILESDIR}"/${PN}-0.4.0+gtk.patch +) + +src_configure() { + econf \ + --disable-skim-support \ + $(use_enable nls) +} + +src_install() { + default + dodoc ChangeLog* + + # plugin module, no point in .la files + find "${D}" -name '*.la' -delete || die +} + +pkg_postinst() { + elog + elog "To use SCIM with both GTK2 and XIM, you should use the following" + elog "in your user startup scripts such as .gnomerc or .xinitrc:" + elog + elog "LANG='your_language' scim -d" + elog "export XMODIFIERS=@im=SCIM" + elog +} |