From 6a6efc3eb332bfefcd29629b76a4ff61770eff88 Mon Sep 17 00:00:00 2001 From: Martin Hanzlowsky Date: Thu, 31 Jul 2025 16:05:06 +0200 Subject: [PATCH] dev-util/hyprwayland-scanner: add 9999 Signed-off-by: Martin Hanzlowsky Signed-off-by: Yixun Lan --- .../hyprwayland-scanner-9999.ebuild | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 dev-util/hyprwayland-scanner/hyprwayland-scanner-9999.ebuild diff --git a/dev-util/hyprwayland-scanner/hyprwayland-scanner-9999.ebuild b/dev-util/hyprwayland-scanner/hyprwayland-scanner-9999.ebuild new file mode 100644 index 0000000000000..c942721fb2e73 --- /dev/null +++ b/dev-util/hyprwayland-scanner/hyprwayland-scanner-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="A Hyprland implementation of wayland-scanner, in and for C++" +HOMEPAGE="https://github.com/hyprwm/hyprwayland-scanner/" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/hyprwm/hyprwayland-scanner.git" + inherit git-r3 +else + SRC_URI="https://github.com/hyprwm/hyprwayland-scanner/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + KEYWORDS="amd64" +fi + +LICENSE="BSD" +SLOT="0" + +RDEPEND=">=dev-libs/pugixml-1.14" +DEPEND="${RDEPEND}" + +pkg_setup() { + [[ ${MERGE_TYPE} == binary ]] && return + + if tc-is-gcc && ver_test $(gcc-version) -lt 13 ; then + eerror "Hyprland requires >=sys-devel/gcc-13 to build" + eerror "Please upgrade GCC: emerge -v1 sys-devel/gcc" + die "GCC version is too old to compile Hyprland!" + elif tc-is-clang && ver_test $(clang-version) -lt 16 ; then + eerror "Hyprland requires >=llvm-core/clang-16 to build" + eerror "Please upgrade Clang: emerge -v1 llvm-core/clang" + die "Clang version is too old to compile Hyprland!" + fi +}