summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-08-17 00:36:14 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-08-17 00:38:56 +0900
commitedad608296c71126f8617012a70a481c659f9461 (patch)
tree69dc40d1d43a873f961caecfe42aae40fb22a9c2 /app-i18n
parentapp-i18n/ibus-chewing: add gconf USE flag (diff)
downloadgentoo-edad608296c71126f8617012a70a481c659f9461.tar.gz
gentoo-edad608296c71126f8617012a70a481c659f9461.tar.bz2
gentoo-edad608296c71126f8617012a70a481c659f9461.zip
app-i18n/ibus-chewing: new upstream release
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/ibus-chewing/Manifest1
-rw-r--r--app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/app-i18n/ibus-chewing/Manifest b/app-i18n/ibus-chewing/Manifest
index 2a54843af515..2c0e8dda2b36 100644
--- a/app-i18n/ibus-chewing/Manifest
+++ b/app-i18n/ibus-chewing/Manifest
@@ -1 +1,2 @@
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
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
+}