commit: 6973003cd7b1a1fa39a4aee3d3851bec018c2258 Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Tue Jun 10 05:23:34 2025 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Wed Jun 11 03:34:57 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6973003c
app-editors/mousepad: avoid automagic deps on gtk+[X] e.g. the upstream code checks whether GDK_WINDOWING_X11 is defined by the gtk headers, and if so will compile against the x11 symbols it provides. This means that mousepad built on a system with gtk+[-X] will be compatible with anything, but when built on a system with gtk+[X], requires that at runtime. Use a Gentoo-specific macro hack to hide the GTK implementations when we don't want it, alongside new USE flags to control the dependency usage. Closes: https://bugs.gentoo.org/957710 Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> .../mousepad/{mousepad-0.6.5.ebuild => mousepad-0.6.5-r1.ebuild} | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app-editors/mousepad/mousepad-0.6.5.ebuild b/app-editors/mousepad/mousepad-0.6.5-r1.ebuild similarity index 84% rename from app-editors/mousepad/mousepad-0.6.5.ebuild rename to app-editors/mousepad/mousepad-0.6.5-r1.ebuild index 330329476882..2521e2577e9a 100644 --- a/app-editors/mousepad/mousepad-0.6.5.ebuild +++ b/app-editors/mousepad/mousepad-0.6.5-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit gnome2-utils meson xdg-utils +inherit flag-o-matic gnome2-utils meson xdg-utils DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment" HOMEPAGE=" @@ -15,11 +15,11 @@ SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.xz" LICENSE="GPL-2+" SLOT="0" KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86" -IUSE="policykit spell +shortcuts" +IUSE="policykit spell +shortcuts X" DEPEND=" >=dev-libs/glib-2.56.2 - >=x11-libs/gtk+-3.22.0:3 + >=x11-libs/gtk+-3.22.0:3[X?] >=x11-libs/gtksourceview-4.0.0:4 policykit? ( >=sys-auth/polkit-0.102 ) spell? ( >=app-text/gspell-1.6.0 ) @@ -34,6 +34,9 @@ BDEPEND=" " src_configure() { + # defang automagic dependencies + use X || append-flags -DGENTOO_GTK_HIDE_X11 + local emesonargs=( -Dgtksourceview4=enabled $(meson_feature policykit polkit)
