From b6aff191e5a88c0012f95daf162c37bbc8b24c68 Mon Sep 17 00:00:00 2001 From: "John M. Harris Jr." Date: Mon, 22 Jul 2024 10:44:28 -0700 Subject: dev-util/hyprwayland-scanner: new package, add 0.4.0 Signed-off-by: John M. Harris Jr. --- dev-util/hyprwayland-scanner/Manifest | 3 ++ .../hyprwayland-scanner-0.4.0.ebuild | 37 ++++++++++++++++++++++ dev-util/hyprwayland-scanner/metadata.xml | 25 +++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 dev-util/hyprwayland-scanner/Manifest create mode 100644 dev-util/hyprwayland-scanner/hyprwayland-scanner-0.4.0.ebuild create mode 100644 dev-util/hyprwayland-scanner/metadata.xml diff --git a/dev-util/hyprwayland-scanner/Manifest b/dev-util/hyprwayland-scanner/Manifest new file mode 100644 index 0000000..72c1b4d --- /dev/null +++ b/dev-util/hyprwayland-scanner/Manifest @@ -0,0 +1,3 @@ +DIST hyprwayland-scanner-0.4.0.gh.tar.gz 10990 BLAKE2B f138f74b896d39f12b63ea3cea5a8f456821a6ed9e0e6baefd80f70dffb2f9cd1b650adf59a871f8f8055f8ed7cfb05e4631e96352fc137b8acbf1b6cdd93fae SHA512 1b7b0ddea94bd2679150a7a6d80628d1156ae11d6963fe31fd6d7292cb1d9c273830bb4515032d0645649e56b57c2d64c5312b007ea11480bb798ea43582fe9c +EBUILD hyprwayland-scanner-0.4.0.ebuild 1106 BLAKE2B 4b658bd56b853c4a5455a8e52e55a3acccf159ff4c84bfc81ca7f28baa664c5030d2d3f83ed532319a9b07f3a50e1b6045bd3aebe3a9874afe3a4562fd517c14 SHA512 26b3e95c514c667cb37bf098ea670d223d6bf7f91828638bb364a554d8453d706addbe2f706a1edc3d8e6512c77f804300f338a1beaee591eded7518d93569ee +MISC metadata.xml 898 BLAKE2B c083753401fcc863972b4a9e4e6287760696f9e371a91b035d3ea5bf25ce4ca1a547f6d96ea25425a6d40d1ff585828fa663c82778157d9c1852710bc8ad8ccd SHA512 3d995d56475a8a7199ccb9c1592834870931d13c91dd9607e057c76882d92351951705cf4ee0372ae4aec47b56bdb53fb0783aa16734ee3b0f6666d7c8933d77 diff --git a/dev-util/hyprwayland-scanner/hyprwayland-scanner-0.4.0.ebuild b/dev-util/hyprwayland-scanner/hyprwayland-scanner-0.4.0.ebuild new file mode 100644 index 0000000..c48449c --- /dev/null +++ b/dev-util/hyprwayland-scanner/hyprwayland-scanner-0.4.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 2024 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 >=sys-devel/clang-16 to build" + eerror "Please upgrade Clang: emerge -v1 sys-devel/clang" + die "Clang version is too old to compile Hyprland!" + fi +} diff --git a/dev-util/hyprwayland-scanner/metadata.xml b/dev-util/hyprwayland-scanner/metadata.xml new file mode 100644 index 0000000..9a735d4 --- /dev/null +++ b/dev-util/hyprwayland-scanner/metadata.xml @@ -0,0 +1,25 @@ + + + + + julien@jroy.ca + Julien Roy + + + jethro.rosette@outlook.com + Jethro Rosettenstein + + + johnmh@johnmh.me + John M. Harris, Jr. + + + proxy-maint@gentoo.org + Proxy Maintainers + + + https://github.com/hyprwm/hyprwayland-scanner/releases + https://github.com/hyprwm/hyprwayland-scanner/issues + hyprwm/hyprwayland-scanner + + -- cgit v1.2.3-65-gdbad