commit:     74cd54bf9e49f507f57b3ff1bd84194391216bfa
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Thu Oct 13 07:21:04 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Oct 13 16:08:17 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74cd54bf

app-i18n/fcitx-unikey: Rename "qt4" USE flag to "macro-editor".

 app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild | 13 +++++++++----
 app-i18n/fcitx-unikey/metadata.xml              |  3 +++
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild 
b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild
index 87fbb25..1a5202e 100644
--- a/app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild
@@ -23,11 +23,16 @@ fi
 LICENSE="GPL-2+ GPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="+qt4"
+IUSE="+macro-editor"
 
-RDEPEND=">=app-i18n/fcitx-4.2.8[qt4?]
+RDEPEND=">=app-i18n/fcitx-4.2.8
        virtual/libiconv
-       virtual/libintl"
+       virtual/libintl
+       macro-editor? (
+               >=app-i18n/fcitx-4.2.8[qt4]
+               dev-qt/qtcore:4
+               dev-qt/qtgui:4
+       )"
 DEPEND="${RDEPEND}
        sys-devel/gettext
        virtual/pkgconfig"
@@ -40,7 +45,7 @@ DOCS=()
 
 src_configure() {
        local mycmakeargs=(
-               -DENABLE_QT=$(usex qt4)
+               -DENABLE_QT=$(usex macro-editor)
        )
 
        cmake-utils_src_configure

diff --git a/app-i18n/fcitx-unikey/metadata.xml 
b/app-i18n/fcitx-unikey/metadata.xml
index 49f2185..12fb997 100644
--- a/app-i18n/fcitx-unikey/metadata.xml
+++ b/app-i18n/fcitx-unikey/metadata.xml
@@ -9,4 +9,7 @@
                <email>c...@gentoo.org</email>
                <name>Cjk</name>
        </maintainer>
+       <use>
+               <flag name="macro-editor">Install macro editor</flag>
+       </use>
 </pkgmetadata>

Reply via email to