git: 6bbbd8728aeb - main - accessibility/hyprsunset: correct #if condition of patch

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sat, 02 Aug 2025 11:52:09 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6bbbd8728aebedb04372d8a14b21d59585b20e53

commit 6bbbd8728aebedb04372d8a14b21d59585b20e53
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-08-02 11:47:53 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-08-02 11:52:03 +0000

    accessibility/hyprsunset: correct #if condition of patch
    
    The condition in the former patch makes the port use the date-tz
    library of devel/date even when libc++ supports
    std::chrono::current_zone, etc. Checking
    _LIBCPP_HAS_NO_TIME_ZONE_DATABASE is enough and it won't be defined by
    libstdc++.
    
    Reported by:    jbeich (via ports-committers)
    Fixes:          d9a1aaa98d16 (accessibility/hyprsunset: update to 0.3.1)
---
 accessibility/hyprsunset/Makefile                       | 1 +
 accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/accessibility/hyprsunset/Makefile b/accessibility/hyprsunset/Makefile
index f77b8b76904d..a7adc5bb2680 100644
--- a/accessibility/hyprsunset/Makefile
+++ b/accessibility/hyprsunset/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	hyprsunset
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.3.1
+PORTREVISION=	1
 CATEGORIES=	accessibility wayland
 
 MAINTAINER=	tagattie@FreeBSD.org
diff --git a/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
index c8e22b0d7bfa..f2e7a4496bca 100644
--- a/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
+++ b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
@@ -10,7 +10,7 @@
 +#include <unistd.h>
  #include <wayland-client-core.h>
 +
-+#if defined(_LIBCPP_VERSION) || defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE)
++#if defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE)
 +#pragma comment(lib, "date-tz")
 +#include <date/tz.h>
 +namespace std {