Skip to content

Commit

Permalink
x11-wm/hypr: new package, add 1.1.3, 9999
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldsrc233 authored and liangyongxiang committed Nov 5, 2023
1 parent a9c792d commit 142d315
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 0 deletions.
1 change: 1 addition & 0 deletions x11-wm/hypr/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST hypr-1.1.3.tar.gz 62774 BLAKE2B 6335746316d7b39ece6814852c007865b9ca4b5c478b3e1cb1e080f7b6a7c05d6e05991ffb6cab84131374eafdfb522f792e058b936f0c5047b25d4c010bd8f2 SHA512 310751b37b9393a9c1916950b69d0d45b095ee20888270498fe42f4012e3a6bbd65b596d231ec03c141dc52ab4ad481cf1378bbc4fee4272a97170291d82c6e0
19 changes: 19 additions & 0 deletions x11-wm/hypr/files/fix-build.patch
Original file line number Diff line number Diff line change
@@ -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 <fstream>
#include <math.h>
+#include <array>

// 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<std::string> splitString(std::string, char);
\ No newline at end of file
+std::vector<std::string> splitString(std::string, char);
42 changes: 42 additions & 0 deletions x11-wm/hypr/hypr-1.1.3.ebuild
Original file line number Diff line number Diff line change
@@ -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"
}
36 changes: 36 additions & 0 deletions x11-wm/hypr/hypr-9999.ebuild
Original file line number Diff line number Diff line change
@@ -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"
}
13 changes: 13 additions & 0 deletions x11-wm/hypr/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</email>
<name>Goldsrc233</name>
</maintainer>
<upstream>
<changelog>https://github.com/hyprwm/Hypr/releases</changelog>
<bugs-to>https://github.com/hyprwm/Hypr/issues</bugs-to>
<remote-id type="github">hyprwm/Hypr</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 142d315

Please sign in to comment.