aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin-ack <sin-ack@protonmail.com>2024-10-06 16:27:32 +0200
committersin-ack <sin-ack@protonmail.com>2024-10-06 16:27:32 +0200
commit0a91627ff5cf14d01b9f41a302540d2b6e33281f (patch)
tree019c070767f4a11c1d77f854555375f8a6e8e1b8 /dev-util
parentgui-wm/cage: update upstream url (diff)
downloadguru-0a91627ff5cf14d01b9f41a302540d2b6e33281f.tar.gz
guru-0a91627ff5cf14d01b9f41a302540d2b6e33281f.tar.bz2
guru-0a91627ff5cf14d01b9f41a302540d2b6e33281f.zip
dev-util/hyprwayland-scanner: new package, add 0.4.2
Signed-off-by: sin-ack <sin-ack@protonmail.com>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/hyprwayland-scanner/Manifest1
-rw-r--r--dev-util/hyprwayland-scanner/hyprwayland-scanner-0.4.2.ebuild37
-rw-r--r--dev-util/hyprwayland-scanner/metadata.xml13
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/hyprwayland-scanner/Manifest b/dev-util/hyprwayland-scanner/Manifest
new file mode 100644
index 000000000..c6408ea55
--- /dev/null
+++ b/dev-util/hyprwayland-scanner/Manifest
@@ -0,0 +1 @@
+DIST hyprwayland-scanner-0.4.2.gh.tar.gz 11160 BLAKE2B c623319354f8fc9571b27c50b490f579e4054723768da0b1ca90a0b31519b4b709ba3bbdc26e1e911f62131aa7b866f1ab8f257a5e19b7349c15641c6b242e75 SHA512 1f1b73dbb80052484889a075095d76e0fba83a5c91f80d8e5a6167153405337b011c423250aef3feb9270ea641fe8d68966a17d92057215f54e4d8cc67b24c7e
diff --git a/dev-util/hyprwayland-scanner/hyprwayland-scanner-0.4.2.ebuild b/dev-util/hyprwayland-scanner/hyprwayland-scanner-0.4.2.ebuild
new file mode 100644
index 000000000..527981c85
--- /dev/null
+++ b/dev-util/hyprwayland-scanner/hyprwayland-scanner-0.4.2.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 000000000..9fbd24173
--- /dev/null
+++ b/dev-util/hyprwayland-scanner/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sin-ack@protonmail.com</email>
+ <name>sin-ack</name>
+ </maintainer>
+ <upstream>
+ <changelog>https://github.com/hyprwm/hyprwayland-scanner/releases</changelog>
+ <bugs-to>https://github.com/hyprwm/hyprwayland-scanner/issues</bugs-to>
+ <remote-id type="github">hyprwm/hyprwayland-scanner</remote-id>
+ </upstream>
+</pkgmetadata>