summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@gentoo.org>2024-09-13 11:31:31 -0400
committerEli Schwartz <eschwartz@gentoo.org>2024-09-13 12:09:55 -0400
commit0480c72dfe025dc8fe1ce115a4736d44f80108cf (patch)
tree6f78e7d898749c90995f9775156dc7efe0c9e2c7 /media-libs
parentapp-arch/libpar2: update EAPI 7 -> 8 (diff)
downloadgentoo-0480c72dfe025dc8fe1ce115a4736d44f80108cf.tar.gz
gentoo-0480c72dfe025dc8fe1ce115a4736d44f80108cf.tar.bz2
gentoo-0480c72dfe025dc8fe1ce115a4736d44f80108cf.zip
media-libs/clutter-gtk: relax overly restrictive USE dep guarding automagic
It prevents automagically building against gtk[X,wayland] by tightly binding to gtk's USE flags. We can solve this with a (new) gentoo-specific macro that hides the GTK implementations when we don't want it. This is gated on our existing USE flags for wayland/X support. Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/clutter-gtk/clutter-gtk-1.8.4-r2.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/media-libs/clutter-gtk/clutter-gtk-1.8.4-r2.ebuild b/media-libs/clutter-gtk/clutter-gtk-1.8.4-r2.ebuild
new file mode 100644
index 000000000000..d8655c294ab9
--- /dev/null
+++ b/media-libs/clutter-gtk/clutter-gtk-1.8.4-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+GNOME2_LA_PUNT="yes"
+inherit flag-o-matic gnome2
+
+DESCRIPTION="Library for embedding a Clutter canvas (stage) in GTK+"
+HOMEPAGE="https://wiki.gnome.org/Projects/Clutter"
+
+LICENSE="LGPL-2.1+"
+SLOT="1.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="X debug examples gtk +introspection wayland"
+
+RDEPEND="
+ >=x11-libs/gtk+-3.24.41-r1:3[X?,introspection?,wayland?]
+ >=media-libs/clutter-1.23.7:1.0[X=,gtk=,introspection?,wayland=]
+ media-libs/cogl:1.0=[introspection?]
+ introspection? ( >=dev-libs/gobject-introspection-1.32:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ >=dev-build/gtk-doc-am-1.24
+ >=sys-devel/gettext-0.18
+ virtual/pkgconfig
+"
+
+src_configure() {
+ # defang automagic dependencies.
+ use wayland || append-cflags -DGENTOO_GTK_HIDE_WAYLAND
+ use X || append-cflags -DGENTOO_GTK_HIDE_X11
+
+ gnome2_src_configure \
+ --disable-maintainer-flags \
+ --enable-deprecated \
+ $(usev debug --enable-debug=yes) \
+ $(use_enable introspection)
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use examples; then
+ docinto examples
+ dodoc examples/{*.c,redhand.png}
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}