commit: 460d9b4d525f79fda81e68968a86f0886ea6a561 Author: Anthony Ruhier <aruhier <AT> mailbox <DOT> org> AuthorDate: Wed Jul 23 11:40:49 2025 +0000 Commit: Anthony Ruhier <aruhier <AT> mailbox <DOT> org> CommitDate: Wed Jul 23 11:40:49 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=460d9b4d
gui-libs/gtk4-layer-shell: fixes vala installation with meson override Overrides the bin path of valac (internally named as "vala" in meson) and vapigen using a native-file, to point to /usr/bin/valac-0.56 and /usr/bin/vapigen-0.56. Without it, it requires to manual add symlinks in /usr/bin. Signed-off-by: Anthony Ruhier <aruhier <AT> mailbox.org> .../gtk4-layer-shell-1.1.1-r1.ebuild | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gui-libs/gtk4-layer-shell/gtk4-layer-shell-1.1.1-r1.ebuild b/gui-libs/gtk4-layer-shell/gtk4-layer-shell-1.1.1-r1.ebuild new file mode 100644 index 0000000000..ce83c0d2c0 --- /dev/null +++ b/gui-libs/gtk4-layer-shell/gtk4-layer-shell-1.1.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A library for using the Layer Shell Wayland protocol with GTK4." +HOMEPAGE="https://github.com/wmww/gtk4-layer-shell" +SRC_URI="https://github.com/wmww/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="examples doc test smoke-tests introspection vala" +REQUIRED_USE="vala? ( introspection )" + +RESTRICT="!test? ( test )" + +PYTHON_COMPAT=( python3_{11..13} ) +inherit meson python-any-r1 vala + +DEPEND=" + >=gui-libs/gtk-4.10.5[wayland] +" +RDEPEND="${DEPEND}" +BDEPEND=" + >=dev-build/meson-0.54.0 + >=dev-build/ninja-1.8.2 + >=dev-libs/wayland-1.10.0 + >=dev-libs/wayland-protocols-1.16 + >=dev-util/wayland-scanner-1.10.0 + introspection? ( dev-libs/gobject-introspection ) + doc? ( dev-util/gtk-doc ) + test? ( >=dev-lang/python-3.8.19 ) + vala? ( dev-lang/vala:0.56[vapigen(+)] ) + smoke-tests? ( + dev-lang/luajit + dev-lua/lgi + ) +" + +src_prepare() { + default + + # Meson tries to use the binaries without version suffix. + # Use a native-file override to point to the correct binaries. + echo """ +[binaries] +vala = '/usr/bin/valac-0.56' +vapigen = '/usr/bin/vapigen-0.56' +""" > vala_override.ini +} + +src_configure() { + local emesonargs=( + $(meson_use examples) + $(meson_use doc docs) + $(meson_use test tests) + $(meson_use smoke-tests) + $(meson_use introspection) + $(meson_use vala vapi) + --native-file vala_override.ini + ) + meson_src_configure +}
