From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 186DC158090 for ; Fri, 13 Sep 2024 16:10:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9760FE29B9; Fri, 13 Sep 2024 16:10:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 846BBE29B9 for ; Fri, 13 Sep 2024 16:10:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B25453406A2 for ; Fri, 13 Sep 2024 16:10:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F80027EC for ; Fri, 13 Sep 2024 16:10:40 +0000 (UTC) From: "Eli Schwartz" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eli Schwartz" Message-ID: <1726243795.0480c72dfe025dc8fe1ce115a4736d44f80108cf.eschwartz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/clutter-gtk/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/clutter-gtk/clutter-gtk-1.8.4-r2.ebuild X-VCS-Directories: media-libs/clutter-gtk/ X-VCS-Committer: eschwartz X-VCS-Committer-Name: Eli Schwartz X-VCS-Revision: 0480c72dfe025dc8fe1ce115a4736d44f80108cf X-VCS-Branch: master Date: Fri, 13 Sep 2024 16:10:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3aaa0344-f1dd-470f-ae31-f844a1b7504f X-Archives-Hash: 434f01fdb9fa7e928cc2777ed260c953 commit: 0480c72dfe025dc8fe1ce115a4736d44f80108cf Author: Eli Schwartz gentoo org> AuthorDate: Fri Sep 13 15:31:31 2024 +0000 Commit: Eli Schwartz gentoo org> CommitDate: Fri Sep 13 16:09:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0480c72d 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 gentoo.org> media-libs/clutter-gtk/clutter-gtk-1.8.4-r2.ebuild | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) 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 +}