accessibility/hyprsunset: Update to 0.4.0

Changelog: https://github.com/hyprwm/hyprsunset/releases/tag/v0.4.0

Reported by:	GitHub (watch releases)
This commit is contained in:
Hiroki Tagato
2026-07-15 17:30:22 +09:00
parent 3f069cb17c
commit db9846e45d
3 changed files with 10 additions and 17 deletions
+1 -3
View File
@@ -1,7 +1,6 @@
PORTNAME= hyprsunset
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.3
PORTREVISION= 3
DISTVERSION= 0.4.0
CATEGORIES= accessibility wayland
MAINTAINER= tagattie@FreeBSD.org
@@ -29,7 +28,6 @@ PLIST_FILES= bin/${PORTNAME} \
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282377
.if exists(/usr/lib/libc++.so)
LIB_DEPENDS+= libdate-tz.so:devel/date
USES+= localbase:ldflags
.endif
.include <bsd.port.mk>
+3 -3
View File
@@ -1,3 +1,3 @@
TIMESTAMP = 1759978834
SHA256 (hyprwm-hyprsunset-v0.3.3_GH0.tar.gz) = cf2b3cc836bdeb7ac3ae78cf98e8cc4a06093e8d8215ff4da2380843dcf1a5dc
SIZE (hyprwm-hyprsunset-v0.3.3_GH0.tar.gz) = 15379
TIMESTAMP = 1784102827
SHA256 (hyprwm-hyprsunset-v0.4.0_GH0.tar.gz) = 5980e65ec650010e36c52e5f5acc0df9fd2d20051c63b89305bdc13276f237a6
SIZE (hyprwm-hyprsunset-v0.4.0_GH0.tar.gz) = 15401
@@ -1,23 +1,18 @@
--- src/Hyprsunset.cpp.orig 2025-10-03 22:29:52 UTC
--- src/Hyprsunset.cpp.orig 2026-07-13 18:54:52 UTC
+++ src/Hyprsunset.cpp
@@ -1,13 +1,29 @@
#include "ConfigManager.hpp"
#include "helpers/Log.hpp"
#include "IPCSocket.hpp"
+#include <algorithm>
#include <cstring>
#include <mutex>
@@ -7,10 +7,24 @@
#include <optional>
#include <thread>
#include <chrono>
+#include <signal.h>
#include <sys/poll.h>
#include <sys/timerfd.h>
+#include <unistd.h>
#include <unistd.h>
#include <wayland-client-core.h>
+
+#if defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) || \
+ (defined(_LIBCPP_HAS_TIME_ZONE_DATABASE) && \
+ _LIBCPP_HAS_TIME_ZONE_DATABASE == 0)
+ (defined(_LIBCPP_HAS_TIME_ZONE_DATABASE) && \
+ _LIBCPP_HAS_TIME_ZONE_DATABASE == 0)
+#pragma comment(lib, "date-tz")
+#include <date/tz.h>
+namespace std {