commit:     87164ee1dd2aaa6ef64caa9de00f0de1865e2b14
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 12 14:35:08 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sat Aug 12 14:38:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87164ee1

app-i18n/ibus-unikey: add nls USE flag

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild | 12 +++++++-----
 1 file changed, 7 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 46bc7ae30ab..88450838275 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,20 +11,22 @@ 
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.go
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="gtk3"
+IUSE="gtk3 nls"
 
 RDEPEND="app-i18n/ibus
        x11-libs/libX11
-       virtual/libintl
        gtk3? ( x11-libs/gtk+:3 )
-       !gtk3? ( x11-libs/gtk+:2 )"
+       !gtk3? ( x11-libs/gtk+:2 )
+       nls? ( virtual/libintl )"
 DEPEND="${RDEPEND}
        virtual/pkgconfig
        dev-util/intltool
-       sys-devel/gettext"
+       nls? ( sys-devel/gettext )"
 
 PATCHES=( "${DISTDIR}"/${P}-gcc6.patch )
 
 src_configure() {
-       econf --with-gtk-version=$(usex gtk3 3 2)
+       econf \
+               $(use_enable nls) \
+               --with-gtk-version=$(usex gtk3 3 2)
 }

Reply via email to