git: c11191d175a7 - main - x11/hyprcursor: update to 0.1.6

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 06 Apr 2024 21:51:02 UTC
The branch main has been updated by jbeich:

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

commit c11191d175a7cd8c951ee5645c0a653a79a61348
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-04-06 20:18:01 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-04-06 21:49:07 +0000

    x11/hyprcursor: update to 0.1.6
    
    Changes:        https://github.com/hyprwm/hyprcursor/releases/tag/v0.1.6
    Reported by:    GitHub (watch releases)
---
 x11/hyprcursor/Makefile | 31 +++++++++++++++++++++++++++----
 x11/hyprcursor/distinfo |  8 +++++---
 2 files changed, 32 insertions(+), 7 deletions(-)

diff --git a/x11/hyprcursor/Makefile b/x11/hyprcursor/Makefile
index 376249153231..213b59b2a1a8 100644
--- a/x11/hyprcursor/Makefile
+++ b/x11/hyprcursor/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	hyprcursor
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.1.5
+DISTVERSION=	0.1.6
 CATEGORIES=	x11
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -11,7 +11,8 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libzip.so:archivers/libzip \
-		libhyprlang.so:devel/hyprlang
+		libhyprlang.so:devel/hyprlang \
+		libtomlplusplus.so:devel/tomlplusplus
 RUN_DEPENDS=	xcur2png:x11/xcur2png
 
 USES=		compiler:c++11-lib cmake:testing gnome pathfix pkgconfig
@@ -21,8 +22,7 @@ GH_ACCOUNT=	hyprwm
 PLIST_SUB=	VERSION=${DISTVERSION:C/-.*//}
 
 # XXX Drop after FreeBSD 14.0 EOL around 2025-03-01
-.if exists(/usr/include/c++/v1/__format/format_functions.h) && \
-   !exists(/usr/include/c++/v1/__format/write_escaped.h)
+.if exists(/usr/lib/libc++.so) && !exists(/usr/include/c++/v1/__format/write_escaped.h)
 CXXFLAGS+=	-fexperimental-library
 .endif
 
@@ -31,4 +31,27 @@ post-patch:
 	@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
 		${WRKSRC}/lib${PORTNAME}/${PORTNAME}.cpp
 
+# XXX Drop after FreeBSD 13.2 EOL around 2024-07-01 (don't forget distinfo)
+.if ${CXX} == c++ && exists(/usr/lib/libc++.so)
+.if !exists(/usr/include/c++/v1/expected) || make(makesum) || make(fetch)
+USES+=		llvm:min=16,build,export
+PATH:=		${LLVM_PREFIX}/bin:${PATH} # XXX _CMAKE_TOOLCHAIN_SUFFIX vs. devel/llvm*
+CONFIGURE_ENV+=	CC="${CC}" CXX="${CXX}" CPP="${CPP}"
+
+# XXX Move into separate port and standardize via USES
+GH_TUPLE+=	llvm:llvm-project:llvmorg-16.0.1:libcxx
+CXXFLAGS+=	-nostdinc++ -isystem${WRKDIR}/libcxx_prefix/include/c++/v1
+# Don't link against new libc++ as it's not necessary
+#LDFLAGS+=	-nostdlib++ -L${WRKDIR}/libcxx_prefix/lib -l:libc++.a -lcxxrt
+
+pre-configure:	bundled-libcxx
+bundled-libcxx:
+	@${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \
+		-DLIBCXX_INCLUDE_BENCHMARKS:BOOL=OFF \
+		-DCMAKE_INSTALL_PREFIX:PATH=${WRKDIR}/libcxx_prefix \
+		-B ${WRKDIR}/libcxx_build -S ${WRKSRC_libcxx}/libcxx
+	@${DO_MAKE_BUILD:NDESTDIR*} install -C ${WRKDIR}/libcxx_build
+.endif
+.endif # exists(/usr/lib/libc++.so)
+
 .include <bsd.port.mk>
diff --git a/x11/hyprcursor/distinfo b/x11/hyprcursor/distinfo
index ede0d662cbfd..c80dc54edd3c 100644
--- a/x11/hyprcursor/distinfo
+++ b/x11/hyprcursor/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1711250633
-SHA256 (hyprwm-hyprcursor-v0.1.5_GH0.tar.gz) = 3958b0d7b80bcabca1c46841016c7354afc3cbcbf86b785b7b6289524cb5ec5c
-SIZE (hyprwm-hyprcursor-v0.1.5_GH0.tar.gz) = 20096
+TIMESTAMP = 1712434681
+SHA256 (hyprwm-hyprcursor-v0.1.6_GH0.tar.gz) = e07b711fab98d483c1e82d2ba14377c641632dd9bea7a94ba21cc0e7a1227335
+SIZE (hyprwm-hyprcursor-v0.1.6_GH0.tar.gz) = 25562
+SHA256 (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = b5a9ff1793b1e2d388a3819bf35797002b1d2e40bb35a10c65605e0ea1435271
+SIZE (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = 179289803