summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-07-21 00:02:37 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-07-21 00:04:11 +0900
commitce2019556de4202ba5b97672f27ea7fc55475f72 (patch)
tree354df411d4c5595bc2a5a1537ce8f1157fab13be /app-i18n/ibus-m17n
parentapp-i18n/ibus-m17n: fix RDEPEND (diff)
downloadgentoo-ce2019556de4202ba5b97672f27ea7fc55475f72.tar.gz
gentoo-ce2019556de4202ba5b97672f27ea7fc55475f72.tar.bz2
gentoo-ce2019556de4202ba5b97672f27ea7fc55475f72.zip
app-i18n/ibus-m17n: add gtk3 USE flag
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/ibus-m17n')
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild10
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild10
-rw-r--r--app-i18n/ibus-m17n/metadata.xml3
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 2b578de899a8..aad4f296f040 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 6bfbff46dbf1..e3d0ab7586cc 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 cd556d26d1a6..b9d88c40b203 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>