summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-08-22 13:23:12 +0200
committerMichał Górny <mgorny@gentoo.org>2019-08-22 14:31:28 +0200
commit5ea4726363a555c23329148a18fd9c0f0c4e4156 (patch)
treee202748c6896d05c80e2d7acefa694066dac6e20 /xfce-base
parentdev-ruby/rspec-support: x86 stable wrt bug #692686 (diff)
downloadgentoo-5ea4726363a555c23329148a18fd9c0f0c4e4156.tar.gz
gentoo-5ea4726363a555c23329148a18fd9c0f0c4e4156.tar.bz2
gentoo-5ea4726363a555c23329148a18fd9c0f0c4e4156.zip
xfce-base/libxfce4ui: Make GTK+2 optional
Closes: https://bugs.gentoo.org/692712 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'xfce-base')
-rw-r--r--xfce-base/libxfce4ui/libxfce4ui-4.14.1.ebuild8
-rw-r--r--xfce-base/libxfce4ui/metadata.xml1
2 files changed, 5 insertions, 4 deletions
diff --git a/xfce-base/libxfce4ui/libxfce4ui-4.14.1.ebuild b/xfce-base/libxfce4ui/libxfce4ui-4.14.1.ebuild
index e44453634d38..a3d70f36e050 100644
--- a/xfce-base/libxfce4ui/libxfce4ui-4.14.1.ebuild
+++ b/xfce-base/libxfce4ui/libxfce4ui-4.14.1.ebuild
@@ -12,11 +12,11 @@ SRC_URI="https://archive.xfce.org/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2"
LICENSE="LGPL-2+ GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
-IUSE="debug glade introspection startup-notification vala"
+IUSE="debug glade +gtk2 introspection startup-notification vala"
REQUIRED_USE="vala? ( introspection )"
+RESTRICT="!gtk2? ( test )"
RDEPEND=">=dev-libs/glib-2.42:2=
- >=x11-libs/gtk+-2.24:2=
>=x11-libs/gtk+-3.18:3=[introspection?]
x11-libs/libX11:=
x11-libs/libICE:=
@@ -24,6 +24,7 @@ RDEPEND=">=dev-libs/glib-2.42:2=
>=xfce-base/libxfce4util-4.12:=[introspection?]
>=xfce-base/xfconf-4.12:=
glade? ( dev-util/glade:3.10= )
+ gtk2? ( >=x11-libs/gtk+-2.24:2= )
introspection? ( dev-libs/gobject-introspection:= )
startup-notification? ( x11-libs/startup-notification:= )
!xfce-base/xfce-utils"
@@ -41,11 +42,10 @@ src_prepare() {
src_configure() {
local myconf=(
+ $(use_enable gtk2)
$(use_enable introspection)
$(use_enable startup-notification)
$(use_enable vala)
- # TODO: check revdeps and make it optional one day
- --enable-gtk2
# requires deprecated glade:3 (gladeui-1.0), bug #551296
--disable-gladeui
# this one's for :3.10
diff --git a/xfce-base/libxfce4ui/metadata.xml b/xfce-base/libxfce4ui/metadata.xml
index f53823b4b9e2..c9c136a2dab2 100644
--- a/xfce-base/libxfce4ui/metadata.xml
+++ b/xfce-base/libxfce4ui/metadata.xml
@@ -7,5 +7,6 @@
</maintainer>
<use>
<flag name="glade">Build support for Glade 3's GtkBuilder implementation</flag>
+ <flag name="gtk2">Build deprecated GTK+2 libxfce4ui-1 library.</flag>
</use>
</pkgmetadata>