From nobody Sat Aug 02 04:20:42 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bv8kf6Nssz63Y74; Sat, 02 Aug 2025 04:20:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bv8kf4NTkz44j6; Sat, 02 Aug 2025 04:20:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754108442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=El7lr6f8WP74+s41pG2Mhe6AKrtJ7Wh6BJwdyObaKWk=; b=dAn+42HpVf1Kng3Lm4nwRPDXV+/UHuIyvVxtyNW/ouNeRfmkrMmVDoN7e++P8By90mzmwg zCOAi9TdySsYWWhgyxpkW9wEoToyUXLki1H7TD8wK8NhdNNqQ/iel2Rzd4ItSyR6hhAxol yM/kTcVOcrjGgXgfwRTOXBlIBzoZ1QCPSU0NYVTAX8A8e2wYLez4Ahk/4C6hkSSFBBoiB+ 3Ic/nJRvme++iM2DTXXYam9aaxlMv6zp1F3oRLrmN4MU3N9uMkxczC7dPsLWLMFenE3RY1 gwSKKCKnyUjdyAtDDWNQEt4x3Tbd9j7hokQT+S82Q+7HbMjf4+LducgrZbgLbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754108442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=El7lr6f8WP74+s41pG2Mhe6AKrtJ7Wh6BJwdyObaKWk=; b=edINQ+0k5N4AW6wZKYg7JacCDzZzeYGBhIv04kQXl/+IwR37Q5sNEodbizLbRYMbD3vWwG 7n+2+bBcBRv5wI6C0QMSRlYsyVhCDW+u8YrrgczSbSVYajJtsYM9a3v0x290zQvZ4AhPtr 1IIG7TdqhkWcaOZKBGU1zoaDp4+lYGOU+DapxQKJr/vwaE6qWHnHyTA/zNruhYKXHH5cY4 Ta+HQuoJMRG+MQP0Tzyag3vSYjR7/SBsfd+mvOeKN+BMHvjbE/ZyfstMeFtwORq0uG5UIE YpTy/OZaaU8slLWGWhzallCjxqBAmtUpbdk9Z/QjGwE+xxVwxz5Jg14Q4+mPGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754108442; a=rsa-sha256; cv=none; b=W1IVoDiNvuCLsTViuKFKBHUku+KgZtNOGtxvkB5Naexi4Bn3ZZOciK03LU6k5Gt5PpbNQ2 uMZ15NwDjArkLQjvfjb4HW7pf6ZOKjiXhGXKzsjSAScT0IfgeK/7q5gLbO/wSEsi95OkPi 88osP5jl7Zb1tPXxDK2zKVSJKsrCXF6Ye/8MuxAfJqbcx/6T/zPCFIG51329ZorhM0yu8C dP1sf4xJsAG+Moaw9GisMuuZOFy+AklkKcGwfNY3I+q72M6BBBd2zpvPn9bSPvrlHqOAdt jNaz2Gg/mflvFnqxXlYA9DcFmJKQjYbP56YykABvUZ9hZBAFIinnTWdByiNeiQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bv8kf3RGdz1HMp; Sat, 02 Aug 2025 04:20:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5724KgCd033228; Sat, 2 Aug 2025 04:20:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5724Kg3N033225; Sat, 2 Aug 2025 04:20:42 GMT (envelope-from git) Date: Sat, 2 Aug 2025 04:20:42 GMT Message-Id: <202508020420.5724Kg3N033225@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: d9a1aaa98d16 - main - accessibility/hyprsunset: update to 0.3.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d9a1aaa98d16108d5910f84f0a2f933d792ab64e Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=d9a1aaa98d16108d5910f84f0a2f933d792ab64e commit d9a1aaa98d16108d5910f84f0a2f933d792ab64e Author: Hiroki Tagato AuthorDate: 2025-08-02 04:16:38 +0000 Commit: Hiroki Tagato CommitDate: 2025-08-02 04:20:30 +0000 accessibility/hyprsunset: update to 0.3.1 While here: - mark as BROKEN on FreeBSD 13 It does not build with an error related to devel/date. - use hyprland-protocols from ports - add patch to unbreak build on system with libc++ 19 Changelog: - https://github.com/hyprwm/hyprsunset/releases/tag/v0.3.0 - https://github.com/hyprwm/hyprsunset/releases/tag/v0.3.1 Reported by: portscout --- accessibility/hyprsunset/Makefile | 18 ++++++++++++---- accessibility/hyprsunset/distinfo | 8 +++---- .../hyprsunset/files/patch-CMakeLists.txt | 23 -------------------- .../hyprsunset/files/patch-src_Hyprsunset.cpp | 25 ++++++++++++++++++++++ accessibility/hyprsunset/pkg-descr | 11 +++++++--- 5 files changed, 50 insertions(+), 35 deletions(-) diff --git a/accessibility/hyprsunset/Makefile b/accessibility/hyprsunset/Makefile index 5fbaf23a3541..f77b8b76904d 100644 --- a/accessibility/hyprsunset/Makefile +++ b/accessibility/hyprsunset/Makefile @@ -1,7 +1,6 @@ PORTNAME= hyprsunset DISTVERSIONPREFIX= v -DISTVERSION= 0.2.0 -PORTREVISION= 4 +DISTVERSION= 0.3.1 CATEGORIES= accessibility wayland MAINTAINER= tagattie@FreeBSD.org @@ -11,16 +10,27 @@ WWW= https://github.com/hyprwm/hyprsunset LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BROKEN_FreeBSD_13= fails to build: /usr/local/include/date/date.h:6636:15: error: no member named 'read' in namespace 'date::detail'; did you mean '::read'? + BUILD_DEPENDS= hyprwayland-scanner>=0.4.0:devel/hyprwayland-scanner \ + hyprland-protocols>=0.4.0:graphics/hyprland-protocols \ wayland-protocols>0:graphics/wayland-protocols -LIB_DEPENDS= libhyprutils.so:devel/hyprutils \ +LIB_DEPENDS= libhyprlang.so:devel/hyprlang \ + libhyprutils.so:devel/hyprutils \ libwayland-client.so:graphics/wayland USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig + USE_GITHUB= yes GH_ACCOUNT= hyprwm -GH_TUPLE= hyprwm:hyprland-protocols:v0.6.2:hyprland_protocols/subprojects/hyprland-protocols + PLIST_FILES= bin/${PORTNAME} \ lib/systemd/user/${PORTNAME}.service +# 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 diff --git a/accessibility/hyprsunset/distinfo b/accessibility/hyprsunset/distinfo index f6174220fa02..e727ebbdd309 100644 --- a/accessibility/hyprsunset/distinfo +++ b/accessibility/hyprsunset/distinfo @@ -1,5 +1,3 @@ -TIMESTAMP = 1742816163 -SHA256 (hyprwm-hyprsunset-v0.2.0_GH0.tar.gz) = 178d2b6c0042e005770eb31492fb7583c9fd25e37351a29f44bff56e87a52ad3 -SIZE (hyprwm-hyprsunset-v0.2.0_GH0.tar.gz) = 11336 -SHA256 (hyprwm-hyprland-protocols-v0.6.2_GH0.tar.gz) = bba082af141599d4342e7b8505401a6e3a32be819d9eb23ce6c90f7407e62c1f -SIZE (hyprwm-hyprland-protocols-v0.6.2_GH0.tar.gz) = 9887 +TIMESTAMP = 1754099943 +SHA256 (hyprwm-hyprsunset-v0.3.1_GH0.tar.gz) = 5c91addca1be04ab02faeebfee4f46608b484d2e90c9249dc7e145ac690d433a +SIZE (hyprwm-hyprsunset-v0.3.1_GH0.tar.gz) = 15281 diff --git a/accessibility/hyprsunset/files/patch-CMakeLists.txt b/accessibility/hyprsunset/files/patch-CMakeLists.txt deleted file mode 100644 index 847fb208217f..000000000000 --- a/accessibility/hyprsunset/files/patch-CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ --- Checking for module 'hyprland-protocols>=0.4.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.4.0 - ---- CMakeLists.txt.orig 2024-10-08 19:23:45 UTC -+++ CMakeLists.txt -@@ -98,8 +98,12 @@ protocolwayland() - - protocolwayland() - --pkg_check_modules(hyprland_protocols_dep REQUIRED IMPORTED_TARGET hyprland-protocols>=0.4.0) -+pkg_check_modules(hyprland_protocols_dep IMPORTED_TARGET hyprland-protocols>=0.4.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 "hyprland-protocols dependency set to ${HYPRLAND_PROTOCOLS}") - - protocolnew("${HYPRLAND_PROTOCOLS}/protocols" "hyprland-ctm-control-v1" true) diff --git a/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp new file mode 100644 index 000000000000..c8e22b0d7bfa --- /dev/null +++ b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp @@ -0,0 +1,25 @@ +--- src/Hyprsunset.cpp.orig 2025-07-24 17:32:18 UTC ++++ src/Hyprsunset.cpp +@@ -5,9 +5,22 @@ + #include + #include + #include ++#include + #include + #include ++#include + #include ++ ++#if defined(_LIBCPP_VERSION) || defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE) ++#pragma comment(lib, "date-tz") ++#include ++namespace std { ++ namespace chrono { ++ using date::current_zone; ++ using date::zoned_time; ++ } ++} ++#endif + + #define TIMESPEC_NSEC_PER_SEC 1000000000L + diff --git a/accessibility/hyprsunset/pkg-descr b/accessibility/hyprsunset/pkg-descr index 529a3f5db819..9d58a97507b5 100644 --- a/accessibility/hyprsunset/pkg-descr +++ b/accessibility/hyprsunset/pkg-descr @@ -1,5 +1,10 @@ hyprsunset is a small utility to provide a blue light filter for your -system. This method is preferred to screen shaders as it will not be -captured via recording / screenshots. +system. -Requires hyprland >= 0.45.0 for hyprland-ctm-control-v1 protocol. +This method is preferred to screen shaders as it will not be captured +via recording / screenshots. + +hyprsunset also provides a gamma filter, which can be used to adjust +perceived display brightness on monitors that do not support software +control, or to reduce perceived brightness below the monitor's +minimum.