summaryrefslogtreecommitdiff
path: root/app-i18n/ibus-chewing
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/ibus-chewing
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/ibus-chewing')
-rw-r--r--app-i18n/ibus-chewing/Manifest8
-rw-r--r--app-i18n/ibus-chewing/files/ibus-chewing-test.patch45
-rw-r--r--app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild65
-rw-r--r--app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild63
-rw-r--r--app-i18n/ibus-chewing/metadata.xml18
5 files changed, 199 insertions, 0 deletions
diff --git a/app-i18n/ibus-chewing/Manifest b/app-i18n/ibus-chewing/Manifest
new file mode 100644
index 000000000000..e5f06dbf9235
--- /dev/null
+++ b/app-i18n/ibus-chewing/Manifest
@@ -0,0 +1,8 @@
+AUX ibus-chewing-test.patch 1700 SHA256 fc58273278a98152416f7a9971288e05b4ccb6d0028d94248aa94ef66d5a5ad0 SHA512 124042ccebc509116661dd732b4bbb237a3962518a273701da7d4a20ec0109a3f5b850380c712e457df947e146c189a2606976262915d3973211b70b7464c061 WHIRLPOOL c6209723b108bac9f2f154d3ff000b1110a4d61a04270dbea7096f89f33d6bbbd68d9123a013c9fe85b0c327e9204ed2254df8cb37890df65b01fecbfce5a642
+DIST ibus-chewing-1.5.1-Source.tar.gz 177044 SHA256 687ce9f09fef31b0e31ad0d2f1be17f1ca0b9212af9d71812cf53d84a90f0060 SHA512 2db6def1fe8ca3bd71419a001909d285ee48ef84c2f65e14bacff9cd114676bed594f0c90217e1fdab67c995a7b05d675812e90e281371d8464722c31649c633 WHIRLPOOL da566ec63b8733e2a80890c8f045829a101da0eaea11592b44541be2e92b57a1425fa65b5bb6868879ff588e798036056473f0e78bc228b90ce40650771c02eb
+DIST ibus-chewing-1.6.1.tar.gz 111103 SHA256 3dd7911d6eaa20c3b8b9d8e4deb38e2074aa900c0956eb75946d455d27579b63 SHA512 b093db79c656433614b9f72719a2b0768a30c2fb6fa066eda1e79cc9932ce1836f7f1e5611612fb44f260fe80a9baa9e18fdc9754b285e8a5f12a87c376cbd39 WHIRLPOOL 9213f6b6e3e0c8290f09b2f8cc92de8a0f86d5d07e1a2805a01148a0c5bce471d2607a8925e848bf44107f0288798c74e127a427fe0143ea919605956778aca7
+EBUILD ibus-chewing-1.5.1-r1.ebuild 1448 SHA256 2333139b23bc4bb0c8d44400d459b55119e5bb3d3d8e797757c94e99239fd2c4 SHA512 1920f9e0d121ed7aac0ebb6d5bf709c80df35b7f11d06e02e63ad68b46aa30a08d955236b916ad88abd30b38834e1872a8bda0b81caaadb63a6c51e3856e9a10 WHIRLPOOL fc8cbb0fda8f4abaa867909a81afa8f29f615358f5263fd08e391e2a9c9a2434f4519e4e98501714e5f21eb4ffcc547b20e5f6956095ca50c15c99585f26e04e
+EBUILD ibus-chewing-1.6.1.ebuild 1428 SHA256 3338a3a3335bd47bdcd86c86e0f40f7bc6a3f1290e619bb919b3a4144dd139ea SHA512 280a2b71c2cbebf818b694933de93ad0b3af6dd521848b05d2f074d58d51111ab1a51011017896b670e62987dbe1ecd2c24c6268d2cd199a8951ec0c3ec35abd WHIRLPOOL 33ad9af739d44097d351faf82f946749553b3e9b1dc085d4cfd75280e463aa3b253a32480c506934d27e9f2c5c02224595b05d9c02ea9c6e3bbafe5df0e123d1
+MISC ChangeLog 3389 SHA256 9eee92be20ca7ebcec8f0e1c78a92ffa84e2c3c31ba6d1d81fe6b4e0b9e21deb SHA512 3eeac3f7f553215c0a2ce1cbe278ce8501e391d966e2a25486189924251da0633d186f1b3cf8c12703f983895362127ad6c4dd1ceb879f074c034ba461dba6ed WHIRLPOOL ab1f2b3a000b15f6996fb80c748a554e3c00e0815cc159f5ebfc96af1c5e80f055d972dc35d4ed4ac9bd61349e6f0d8d415ccfae15361c61242af2d352211da9
+MISC ChangeLog-2015 7606 SHA256 dfc6066d703440fc36063c42de857438fcba49495e24d66a4ea8ea289185e03d SHA512 da79797491697247a655386a106e485400600ddd7cdf470d6f41a097eacd70dcd6df7307e0785b3aa24159d1d284558ddd178aea99c4c482a31a4b0bd5ce744d WHIRLPOOL b7444fd6c2f2da5fe51b4fd9324d4c19e4906a3b11c37bb635c3c616003e950ec16394767cc1503d9d234060344b6bd5d658861ef55ca5af83356ddafa3d7805
+MISC metadata.xml 584 SHA256 7a7c871f59dd1e9b26e3cfba9647960546ee42bb1ae17a8f031d694560edec8b SHA512 ea88b32df0e2ecca5f472339a7602ddf65523cb186a7a372bfab762803db50020369b4cb1ba457bad3e364e3ef867c2ce2f0e485525b55693860aa2ecee595e9 WHIRLPOOL 5ca330655b41f4f47e32531c04960d48afc8bf4e50e95d22dfc921836d14d108bd5108e3baf9592f6aa20e5070a7aeadee55c78cf085bc93f1ad10bb13de8574
diff --git a/app-i18n/ibus-chewing/files/ibus-chewing-test.patch b/app-i18n/ibus-chewing/files/ibus-chewing-test.patch
new file mode 100644
index 000000000000..abed91d377d3
--- /dev/null
+++ b/app-i18n/ibus-chewing/files/ibus-chewing-test.patch
@@ -0,0 +1,45 @@
+--- a/test/MakerDialogBackend-test.c
++++ b/test/MakerDialogBackend-test.c
+@@ -126,7 +126,7 @@
+ void backup_key_to_g_value(const gchar * key, GType gType, GValue * value)
+ {
+ g_value_init(value, gType);
+- backend_command_get_key_value(key, value);
++ mkdg_backend_read(backend, value, QUOTE_ME(PROJECT_SCHEMA_SECTION), key, NULL);
+ }
+
+ void change_new_value_from_orig_value(GValue * newValue,
+@@ -169,7 +169,7 @@
+ {
+ GValue storedGValue = { 0 };
+ g_value_init(&storedGValue, G_VALUE_TYPE(newValue));
+- backend_command_get_key_value(key, &storedGValue);
++ mkdg_backend_read(backend, &storedGValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), key, NULL);
+ g_assert(mkdg_g_value_is_equal(newValue, &storedGValue));
+ g_value_unset(&storedGValue);
+ }
+@@ -219,7 +219,7 @@
+ #define GCONF_KEY "max-chi-symbol-len"
+ GValue origValue = { 0 };
+ g_value_init(&origValue, G_TYPE_BOOLEAN);
+- backend_command_get_key_value(GCONF_KEY, &origValue);
++ mkdg_backend_read(backend, &origValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
+
+ GValue newValue = { 0 };
+ g_value_init(&newValue, G_TYPE_BOOLEAN);
+@@ -229,13 +229,13 @@
+
+ GValue storedValue = { 0 };
+ g_value_init(&storedValue, G_TYPE_BOOLEAN);
+- backend_command_get_key_value(GCONF_KEY, &storedValue);
++ mkdg_backend_read(backend, &storedValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
+ g_assert(mkdg_g_value_is_equal(&newValue, &storedValue));
+
+ /*
+ * Restore the original value
+ */
+- backend_command_set_key_value(GCONF_KEY, &origValue);
++ mkdg_backend_write(backend, &origValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
+ #undef GCONF_KEY
+ }
+
diff --git a/app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild b/app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild
new file mode 100644
index 000000000000..6e551a4ca242
--- /dev/null
+++ b/app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake-utils gnome2-utils virtualx
+
+MY_P="${P}-Source"
+
+DESCRIPTION="Chinese Chewing engine for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/definite/${PN}/releases/download/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gconf nls"
+
+RDEPEND="app-i18n/ibus
+ app-i18n/libchewing
+ dev-libs/glib:2
+ dev-util/gob:2
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ gconf? ( gnome-base/gconf )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/${PN}-test.patch )
+DOCS=( AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE )
+
+src_configure() {
+ local mycmakeargs=(
+ -DMANAGE_DEPENDENCY_PACKAGE_EXISTS_CMD=false
+ -DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ )
+ use nls || mycmakeargs+=( -DMANAGE_GETTEXT_SUPPORT=0 )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ "${EROOT}"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${BUILD_DIR}"/bin || die
+
+ export GSETTINGS_BACKEND="memory"
+ export GSETTINGS_SCHEMA_DIR="${BUILD_DIR}/bin"
+ virtx cmake-utils_src_test
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ gnome2_schemas_update
+}
diff --git a/app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild b/app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild
new file mode 100644
index 000000000000..ea2e88eaa3f6
--- /dev/null
+++ b/app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake-utils gnome2-utils virtualx
+
+DESCRIPTION="Chinese Chewing engine for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/definite/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gconf nls"
+
+RDEPEND="app-i18n/ibus
+ app-i18n/libchewing
+ dev-libs/glib:2
+ dev-util/gob:2
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ gconf? ( gnome-base/gconf )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/cmake-fedora
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=( "${FILESDIR}"/${PN}-test.patch )
+DOCS=( AUTHORS ChangeLog README.md RELEASE-NOTES.txt USER-GUIDE )
+
+src_configure() {
+ local mycmakeargs=(
+ -DMANAGE_DEPENDENCY_PACKAGE_EXISTS_CMD=false
+ -DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ )
+ use nls || mycmakeargs+=( -DMANAGE_GETTEXT_SUPPORT=0 )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ "${EROOT}"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${BUILD_DIR}"/bin || die
+
+ export GSETTINGS_BACKEND="memory"
+ export GSETTINGS_SCHEMA_DIR="${BUILD_DIR}/bin"
+ virtx cmake-utils_src_test
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ gnome2_schemas_update
+}
diff --git a/app-i18n/ibus-chewing/metadata.xml b/app-i18n/ibus-chewing/metadata.xml
new file mode 100644
index 000000000000..e44e996ccd57
--- /dev/null
+++ b/app-i18n/ibus-chewing/metadata.xml
@@ -0,0 +1,18 @@
+<?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>
+ <longdescription lang="en">
+ The Chewing engine for IBus. It provides a Chinese input method from
+ <pkg>app-i18n/libchewing</pkg>.
+ </longdescription>
+ <use>
+ <flag name="gconf">Enable support for <pkg>gnome-base/gconf</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">definite/ibus-chewing</remote-id>
+ </upstream>
+</pkgmetadata>