summaryrefslogtreecommitdiff
path: root/x11/hypridle
diff options
context:
space:
mode:
Diffstat (limited to 'x11/hypridle')
-rw-r--r--x11/hypridle/Makefile12
-rw-r--r--x11/hypridle/distinfo8
-rw-r--r--x11/hypridle/files/patch-CMakeLists.txt23
-rw-r--r--x11/hypridle/files/patch-src_core_Hypridle.cpp12
4 files changed, 22 insertions, 33 deletions
diff --git a/x11/hypridle/Makefile b/x11/hypridle/Makefile
index 0f31bd80a102..d3da0aed7672 100644
--- a/x11/hypridle/Makefile
+++ b/x11/hypridle/Makefile
@@ -1,17 +1,17 @@
PORTNAME= hypridle
DISTVERSIONPREFIX= v
-DISTVERSION= 0.1.6
-PORTREVISION= 2
+DISTVERSION= 0.1.7
CATEGORIES= x11 wayland
-MAINTAINER= jbeich@FreeBSD.org
+MAINTAINER= tagattie@FreeBSD.org
COMMENT= Hyprland's idle daemon #'
WWW= https://github.com/hyprwm/hypridle
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= hyprwayland-scanner>=0.4.4:devel/hyprwayland-scanner \
+BUILD_DEPENDS= hyprland-protocols>=0.6.0:graphics/hyprland-protocols \
+ hyprwayland-scanner>=0.4.4:devel/hyprwayland-scanner \
wayland-protocols>0:graphics/wayland-protocols
LIB_DEPENDS= libhyprlang.so:devel/hyprlang \
libhyprutils.so:devel/hyprutils \
@@ -19,10 +19,12 @@ LIB_DEPENDS= libhyprlang.so:devel/hyprlang \
libwayland-client.so:graphics/wayland
USES= compiler:c++11-lib cmake pkgconfig
+
USE_GITHUB= yes
GH_ACCOUNT= hyprwm
-GH_TUPLE= hyprwm:hyprland-protocols:v0.6.2:hyprland_protocols/subprojects/hyprland-protocols
+
LDFLAGS+= -Wl,--as-needed # sdbus-cpp deps
+
PLIST_FILES= bin/${PORTNAME} \
lib/systemd/user/${PORTNAME}.service \
share/hypr/${PORTNAME}.conf
diff --git a/x11/hypridle/distinfo b/x11/hypridle/distinfo
index fc3e365f6a9a..2be367763d8a 100644
--- a/x11/hypridle/distinfo
+++ b/x11/hypridle/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1743171426
-SHA256 (hyprwm-hypridle-v0.1.6_GH0.tar.gz) = ea4faf92e7ef303a538551e2b0ea67a557b2d711574993a5a3fea3b27667dc63
-SIZE (hyprwm-hypridle-v0.1.6_GH0.tar.gz) = 17053
-SHA256 (hyprwm-hyprland-protocols-v0.6.2_GH0.tar.gz) = bba082af141599d4342e7b8505401a6e3a32be819d9eb23ce6c90f7407e62c1f
-SIZE (hyprwm-hyprland-protocols-v0.6.2_GH0.tar.gz) = 9887
+TIMESTAMP = 1756366995
+SHA256 (hyprwm-hypridle-v0.1.7_GH0.tar.gz) = c4ef2e2894fc2082cfdabe7db086b1f246e3f0de571f7f2c6b26d7c0d9a5f8f3
+SIZE (hyprwm-hypridle-v0.1.7_GH0.tar.gz) = 18986
diff --git a/x11/hypridle/files/patch-CMakeLists.txt b/x11/hypridle/files/patch-CMakeLists.txt
deleted file mode 100644
index a3f2db7850a9..000000000000
--- a/x11/hypridle/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,23 +0,0 @@
--- Checking for module 'hyprland-protocols>=0.6.0'
--- Package 'hyprland-protocols' not found
-CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:645 (message):
- The following required packages were not found:
-
- - hyprland-protocols>=0.6.0
-
---- CMakeLists.txt.orig 2025-03-28 14:17:06 UTC
-+++ CMakeLists.txt
-@@ -57,8 +57,12 @@ message(STATUS "Found wayland-scanner pkgdatadir at ${
- pkg_get_variable(WAYLAND_SCANNER_PKGDATA_DIR wayland-scanner pkgdatadir)
- message(STATUS "Found wayland-scanner pkgdatadir at ${WAYLAND_SCANNER_PKGDATA_DIR}")
-
--pkg_check_modules(hyprland_protocols_dep REQUIRED IMPORTED_TARGET hyprland-protocols>=0.6.0)
-+pkg_check_modules(hyprland_protocols_dep IMPORTED_TARGET hyprland-protocols>=0.6.0)
-+if(hyprland_protocols_dep_FOUND)
- pkg_get_variable(HYPRLAND_PROTOCOLS hyprland-protocols pkgdatadir)
-+else()
-+set(HYPRLAND_PROTOCOLS "${CMAKE_SOURCE_DIR}/subprojects/hyprland-protocols")
-+endif()
- message(STATUS "Found hyprland-protocols at ${HYPRLAND_PROTOCOLS}")
-
- function(protocolnew protoPath protoName external)
diff --git a/x11/hypridle/files/patch-src_core_Hypridle.cpp b/x11/hypridle/files/patch-src_core_Hypridle.cpp
new file mode 100644
index 000000000000..377593b71efa
--- /dev/null
+++ b/x11/hypridle/files/patch-src_core_Hypridle.cpp
@@ -0,0 +1,12 @@
+https://github.com/hyprwm/hypridle/issues/68#issuecomment-2428697344
+
+--- src/core/Hypridle.cpp.orig 2025-08-27 10:40:01 UTC
++++ src/core/Hypridle.cpp
+@@ -190,6 +190,7 @@ void CHypridle::enterEventLoop() {
+ }
+ });
+
++ m_sEventLoopInternals.loopRequestMutex.try_lock();
+ while (1) { // dbus events
+ // wait for being awakened
+ m_sEventLoopInternals.loopRequestMutex.unlock(); // unlock, we are ready to take events