app-i18n/ibus-chewing: add gconf USE flag
authorAkinori Hattori <hattya@gentoo.org>
Wed, 16 Aug 2017 15:34:36 +0000 (00:34 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Wed, 16 Aug 2017 15:38:55 +0000 (00:38 +0900)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild
app-i18n/ibus-chewing/metadata.xml

index 2f5ba84757a2b461a381b3af1d823cea095f3c0b..6e551a4ca242bd62607815700f830d7f4eeb6b93 100644 (file)
@@ -15,15 +15,15 @@ SRC_URI="https://github.com/definite/${PN}/releases/download/${PV}/${MY_P}.tar.g
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="nls"
+IUSE="gconf nls"
 
 RDEPEND="app-i18n/ibus
        app-i18n/libchewing
        dev-libs/glib:2
        dev-util/gob:2
-       gnome-base/gconf
        x11-libs/gtk+:2
        x11-libs/libX11
+       gconf? ( gnome-base/gconf )
        nls? ( virtual/libintl )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig
@@ -51,12 +51,12 @@ src_test() {
 }
 
 pkg_preinst() {
-       gnome2_gconf_savelist
+       use gconf && gnome2_gconf_savelist
        gnome2_schemas_savelist
 }
 
 pkg_postinst() {
-       gnome2_gconf_install
+       use gconf && gnome2_gconf_install
        gnome2_schemas_update
 }
 
index 8f50d1f986029cfc5f8667a6ca61a512ccccf091..e44e996ccd57447d0be81dbe0a9c449a1568d64f 100644 (file)
@@ -9,6 +9,9 @@
     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>