aboutsummaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-06-03 12:34:55 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-06-03 14:56:48 +0000
commitddd8debe464e1cdedba0042e74a109ea7ad9fe76 (patch)
tree79de6e13348e627befc94fe31b8c65c0e0384b89 /x11-wm
parent1ef165b024a9bfb538bd5ec1070be3f1d5cb5cd8 (diff)
downloadports-ddd8debe464e1cdedba0042e74a109ea7ad9fe76.tar.gz
ports-ddd8debe464e1cdedba0042e74a109ea7ad9fe76.zip
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/hyprland/Makefile17
-rw-r--r--x11-wm/hyprland/distinfo4
2 files changed, 18 insertions, 3 deletions
diff --git a/x11-wm/hyprland/Makefile b/x11-wm/hyprland/Makefile
index b3f5e77f135c..c72c15473855 100644
--- a/x11-wm/hyprland/Makefile
+++ b/x11-wm/hyprland/Makefile
@@ -1,8 +1,13 @@
PORTNAME= hyprland
DISTVERSIONPREFIX= v
DISTVERSION= 0.26.0
+PORTREVISION= 1
CATEGORIES= x11-wm wayland
+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+= 147e96237006.patch:-p1 # wlroots 0.17
+PATCHFILES+= c5a7202cd9a4.patch:-p1 # wlroots 0.17
+
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Dynamic tiling Wayland compositor that doesn't sacrifice on its looks #'
WWW= https://hyprland.org/
@@ -10,12 +15,10 @@ WWW= https://hyprland.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN= fails to build after https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4043
-
BUILD_DEPENDS= cmake:devel/cmake-core \
evdev-proto>0:devel/evdev-proto \
wayland-protocols>=1.25:graphics/wayland-protocols \
- wlroots>=0.16.0.346<0.17.0:x11-toolkits/wlroots
+ wlroots>=0.16.0.474<0.17.0:x11-toolkits/wlroots
LIB_DEPENDS= libwayland-server.so:graphics/wayland \
libwlroots.so:x11-toolkits/wlroots \
libinput.so:x11/libinput \
@@ -38,6 +41,14 @@ OPTIONS_DEFAULT=X11
X11_USE= XORG=xcb
X11_MESON_ENABLED= xwayland
+post-extract:
+.if defined(PATCHFILES) && ${PATCHFILES:M147e96237006*}
+# Pretend to be a regular file for vendor patch to apply as is
+ @${RMDIR} ${WRKSRC}/subprojects/wlroots
+ @${ECHO_CMD} "Subproject commit 6668c822b3bf58ca5af5d370ef03b075be3e4d27" \
+ >${WRKSRC}/subprojects/wlroots
+.endif
+
post-patch:
# Extract (snapshot) version from the port instead of meson.build
@${REINPLACE_CMD} -i .nogit -e "/GIT_BRANCH/s/run_command.*/'main'/" \
diff --git a/x11-wm/hyprland/distinfo b/x11-wm/hyprland/distinfo
index 9a6834bb5a6f..b1a9d8090327 100644
--- a/x11-wm/hyprland/distinfo
+++ b/x11-wm/hyprland/distinfo
@@ -7,3 +7,7 @@ SHA256 (canihavesomecoffee-udis86-1.7.2-186-g5336633_GH0.tar.gz) = 69aff959179ff
SIZE (canihavesomecoffee-udis86-1.7.2-186-g5336633_GH0.tar.gz) = 116938
SHA256 (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = b5a9ff1793b1e2d388a3819bf35797002b1d2e40bb35a10c65605e0ea1435271
SIZE (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = 179289803
+SHA256 (147e96237006.patch) = ec9576ce850dfc325fe9a72bcb4174b73de2b9e0310a5e9f457b44580db574ab
+SIZE (147e96237006.patch) = 16889
+SHA256 (c5a7202cd9a4.patch) = bd7c9f3c4d7b5dc15a94541d8d8d3efa385eeac4dff1b3726e734beaa77e369e
+SIZE (c5a7202cd9a4.patch) = 1027