commit: ce2019556de4202ba5b97672f27ea7fc55475f72 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> AuthorDate: Thu Jul 20 15:02:37 2017 +0000 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> CommitDate: Thu Jul 20 15:04:11 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce201955
app-i18n/ibus-m17n: add gtk3 USE flag Package-Manager: Portage-2.3.6, Repoman-2.3.1 app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild | 10 +++++++--- app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild | 10 +++++++--- app-i18n/ibus-m17n/metadata.xml | 3 +++ 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild b/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild index 2b578de899a..aad4f296f04 100644 --- a/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild +++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild @@ -10,11 +10,14 @@ SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.go LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" -IUSE="gtk nls" +IUSE="gtk gtk3 nls" CDEPEND="app-i18n/ibus dev-libs/m17n-lib - gtk? ( x11-libs/gtk+:2 ) + gtk? ( + !gtk3? ( x11-libs/gtk+:2 ) + gtk3? ( x11-libs/gtk+:3 ) + ) nls? ( virtual/libintl )" RDEPEND="${CDEPEND} || ( @@ -25,9 +28,10 @@ DEPEND="${CDEPEND} dev-util/intltool sys-devel/gettext virtual/pkgconfig" +REQUIRED_USE="gtk3? ( gtk )" src_configure() { econf \ $(use_enable nls) \ - $(use_with gtk gtk 2.0) + $(use_with gtk gtk $(usex !gtk3 2.0 3.0)) } diff --git a/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild b/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild index 6bfbff46dbf..e3d0ab7586c 100644 --- a/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild +++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild @@ -10,11 +10,14 @@ SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.go LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="gtk nls" +IUSE="gtk gtk3 nls" CDEPEND="app-i18n/ibus dev-libs/m17n-lib - gtk? ( x11-libs/gtk+:2 ) + gtk? ( + !gtk3? ( x11-libs/gtk+:2 ) + gtk3? ( x11-libs/gtk+:3 ) + ) nls? ( virtual/libintl )" RDEPEND="${CDEPEND} || ( @@ -25,9 +28,10 @@ DEPEND="${CDEPEND} dev-util/intltool sys-devel/gettext virtual/pkgconfig" +REQUIRED_USE="gtk3? ( gtk )" src_configure() { econf \ $(use_enable nls) \ - $(use_with gtk gtk 2.0) + $(use_with gtk gtk $(usex !gtk3 2.0 3.0)) } diff --git a/app-i18n/ibus-m17n/metadata.xml b/app-i18n/ibus-m17n/metadata.xml index cd556d26d1a..b9d88c40b20 100644 --- a/app-i18n/ibus-m17n/metadata.xml +++ b/app-i18n/ibus-m17n/metadata.xml @@ -17,5 +17,8 @@ <flag name="gtk"> Build the preference interfaces, based on <pkg>x11-libs/gtk+</pkg>:2 </flag> + <flag name="gtk3"> + Build the preference interfaces, based on <pkg>x11-libs/gtk+</pkg>:3 + </flag> </use> </pkgmetadata>