dev-cpp/waylandpp: Depend on libglvnd rather than mesa[wayland]

I can find no evidence that this depends specifically on Mesa. It depends on
EGL/egl.h in one place, not counting the examples, which we don't build. You'll
probably need Mesa in practise, but leave that to the compositor.

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot
2026-04-12 14:09:26 +01:00
parent 3d982e98bf
commit 251c433748
2 changed files with 46 additions and 5 deletions

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Wayland C++ bindings"
HOMEPAGE="https://github.com/NilsBrause/waylandpp"
LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
IUSE="doc"
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/NilsBrause/waylandpp.git"
inherit git-r3
else
SRC_URI="https://github.com/NilsBrause/waylandpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
fi
RDEPEND="
>=dev-libs/pugixml-1.9-r1
>=dev-libs/wayland-1.11.0
"
DEPEND="${RDEPEND}
media-libs/libglvnd
doc? (
app-text/doxygen
media-gfx/graphviz
)
"
src_configure() {
local mycmakeargs=(
-DBUILD_DOCUMENTATION=$(usex doc)
)
cmake_src_configure
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -9,23 +9,23 @@ DESCRIPTION="Wayland C++ bindings"
HOMEPAGE="https://github.com/NilsBrause/waylandpp"
LICENSE="MIT"
IUSE="doc"
SLOT="0/$(ver_cut 1-2)"
IUSE="doc"
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/NilsBrause/waylandpp.git"
inherit git-r3
else
SRC_URI="https://github.com/NilsBrause/waylandpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
fi
RDEPEND="
>=dev-libs/wayland-1.11.0
media-libs/mesa[wayland]
>=dev-libs/pugixml-1.9-r1
>=dev-libs/wayland-1.11.0
"
DEPEND="${RDEPEND}
media-libs/libglvnd
doc? (
app-text/doxygen
media-gfx/graphviz