From 142d31525192a994f3cc87809820faa0b85f04e6 Mon Sep 17 00:00:00 2001 From: G-Src Date: Sun, 5 Nov 2023 17:07:44 +0800 Subject: [PATCH] x11-wm/hypr: new package, add 1.1.3, 9999 --- x11-wm/hypr/Manifest | 1 + x11-wm/hypr/files/fix-build.patch | 19 ++++++++++++++ x11-wm/hypr/hypr-1.1.3.ebuild | 42 +++++++++++++++++++++++++++++++ x11-wm/hypr/hypr-9999.ebuild | 36 ++++++++++++++++++++++++++ x11-wm/hypr/metadata.xml | 13 ++++++++++ 5 files changed, 111 insertions(+) create mode 100644 x11-wm/hypr/Manifest create mode 100644 x11-wm/hypr/files/fix-build.patch create mode 100644 x11-wm/hypr/hypr-1.1.3.ebuild create mode 100644 x11-wm/hypr/hypr-9999.ebuild create mode 100644 x11-wm/hypr/metadata.xml diff --git a/x11-wm/hypr/Manifest b/x11-wm/hypr/Manifest new file mode 100644 index 00000000000..485504d33ca --- /dev/null +++ b/x11-wm/hypr/Manifest @@ -0,0 +1 @@ +DIST hypr-1.1.3.tar.gz 62774 BLAKE2B 6335746316d7b39ece6814852c007865b9ca4b5c478b3e1cb1e080f7b6a7c05d6e05991ffb6cab84131374eafdfb522f792e058b936f0c5047b25d4c010bd8f2 SHA512 310751b37b9393a9c1916950b69d0d45b095ee20888270498fe42f4012e3a6bbd65b596d231ec03c141dc52ab4ad481cf1378bbc4fee4272a97170291d82c6e0 diff --git a/x11-wm/hypr/files/fix-build.patch b/x11-wm/hypr/files/fix-build.patch new file mode 100644 index 00000000000..166e9b3a03f --- /dev/null +++ b/x11-wm/hypr/files/fix-build.patch @@ -0,0 +1,19 @@ +diff --git a/src/utilities/Util.hpp b/src/utilities/Util.hpp +index 73f9a3f..d52ec05 100644 +--- a/src/utilities/Util.hpp ++++ b/src/utilities/Util.hpp +@@ -3,6 +3,7 @@ + #include "../defines.hpp" + #include + #include ++#include + + // For precise colors + class CFloatingColor { +@@ -62,4 +63,4 @@ CFloatingColor parabolicColor(CFloatingColor from, CFloatingColor to, double inc + + double parabolic(double from, double to, double incline); + +-std::vector splitString(std::string, char); +\ No newline at end of file ++std::vector splitString(std::string, char); diff --git a/x11-wm/hypr/hypr-1.1.3.ebuild b/x11-wm/hypr/hypr-1.1.3.ebuild new file mode 100644 index 00000000000..4519f6f85c8 --- /dev/null +++ b/x11-wm/hypr/hypr-1.1.3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="A dynamic Linux tiling window manager for Xorg" +HOMEPAGE="https://github.com/hyprwm/Hypr" +SRC_URI="https://github.com/hyprwm/Hypr/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +S="${WORKDIR}/Hypr-${PV}" + +DEPEND="x11-libs/cairo + dev-util/ninja + x11-libs/libxcb + x11-base/xcb-proto + x11-libs/xcb-util + x11-libs/xcb-util-cursor + x11-libs/xcb-util-keysyms + x11-libs/xcb-util-wm + dev-cpp/gtkmm:3.0 + gui-libs/gtk" + +PATCHES=( + "${FILESDIR}/fix-build.patch" +) + +pkg_pretend() { + if ! tc-is-gcc; then + ewarn "Only GCC is officially supported as compiler" + ewarn "Proceed with your own caution" + fi + } + +src_install() { + dobin "${BUILD_DIR}/Hypr" + dodoc "${S}/example/hypr.conf" +} diff --git a/x11-wm/hypr/hypr-9999.ebuild b/x11-wm/hypr/hypr-9999.ebuild new file mode 100644 index 00000000000..d7f927c3675 --- /dev/null +++ b/x11-wm/hypr/hypr-9999.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake git-r3 toolchain-funcs + +DESCRIPTION="A dynamic Linux tiling window manager for Xorg" +HOMEPAGE="https://github.com/hyprwm/Hypr" +EGIT_REPO_URI="https://github.com/hyprwm/Hypr.git" + +LICENSE="BSD" +SLOT="0" + +DEPEND="x11-libs/cairo + dev-util/ninja + x11-libs/libxcb + x11-base/xcb-proto + x11-libs/xcb-util + x11-libs/xcb-util-cursor + x11-libs/xcb-util-keysyms + x11-libs/xcb-util-wm + dev-cpp/gtkmm:3.0 + gui-libs/gtk" + +pkg_pretend() { + if ! tc-is-gcc; then + ewarn "Only GCC is officially supported as compiler" + ewarn "Proceed with your own caution" + fi + } + +src_install() { + dobin "${BUILD_DIR}/Hypr" + dodoc "${S}/example/hypr.conf" +} diff --git a/x11-wm/hypr/metadata.xml b/x11-wm/hypr/metadata.xml new file mode 100644 index 00000000000..493ce022b06 --- /dev/null +++ b/x11-wm/hypr/metadata.xml @@ -0,0 +1,13 @@ + + + + + diceea@foxmail.com + Goldsrc233 + + + https://github.com/hyprwm/Hypr/releases + https://github.com/hyprwm/Hypr/issues + hyprwm/Hypr + +