commit:     1bc7cbe866535252e1e8a232bb274011d0db3c30
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 12 14:36:11 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sat Aug 12 14:38:52 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bc7cbe8

app-i18n/ibus-unikey: switch to gtk2 USE flag

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild | 11 +++++++----
 app-i18n/ibus-unikey/metadata.xml                |  2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild 
b/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
index 88450838275..63c9b7f5815 100644
--- a/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
+++ b/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
@@ -11,12 +11,15 @@ 
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.go
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="gtk3 nls"
+IUSE="+gtk gtk2 nls"
+REQUIRED_USE="gtk2? ( gtk )"
 
 RDEPEND="app-i18n/ibus
        x11-libs/libX11
-       gtk3? ( x11-libs/gtk+:3 )
-       !gtk3? ( x11-libs/gtk+:2 )
+       gtk? (
+               gtk2? ( x11-libs/gtk+:2 )
+               !gtk2? ( x11-libs/gtk+:3 )
+       )
        nls? ( virtual/libintl )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig
@@ -28,5 +31,5 @@ PATCHES=( "${DISTDIR}"/${P}-gcc6.patch )
 src_configure() {
        econf \
                $(use_enable nls) \
-               --with-gtk-version=$(usex gtk3 3 2)
+               --with-gtk-version=$(usex gtk2 3 2)
 }

diff --git a/app-i18n/ibus-unikey/metadata.xml 
b/app-i18n/ibus-unikey/metadata.xml
index cf5b6f5768b..880cfde265e 100644
--- a/app-i18n/ibus-unikey/metadata.xml
+++ b/app-i18n/ibus-unikey/metadata.xml
@@ -10,7 +10,7 @@
     UniKey. Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85
   </longdescription>
   <use>
-    <flag name="gtk3">Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
+    <flag name="gtk2">Enable support for <pkg>x11-libs/gtk+</pkg>:2</flag>
   </use>
   <upstream>
     <remote-id type="github">mrlequoctuan/ibus-unikey</remote-id>

Reply via email to