git: 20126e986e75 - main - security/botan3: update to 3.8.1 release (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Wed, 25 Jun 2025 22:48:04 UTC
The branch main has been updated by fluffy:

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

commit 20126e986e75476e23fee580dcc6a9f0155ebfa4
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-06-25 21:49:36 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-06-25 22:47:50 +0000

    security/botan3: update to 3.8.1 release (+)
    
    Release Notes:  https://botan.randombit.net/news.html#version-3-8-0-2025-05-06 \
                    https://botan.randombit.net/news.html#version-3-8-1-2025-05-07
---
 security/botan3/Makefile | 26 ++++++++++++++++----------
 security/botan3/distinfo |  6 +++---
 2 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/security/botan3/Makefile b/security/botan3/Makefile
index a376d1c4fa7c..c5c0ff84d783 100644
--- a/security/botan3/Makefile
+++ b/security/botan3/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	botan
-DISTVERSION=	3.7.1
+DISTVERSION=	3.8.1
 CATEGORIES=	security
 MASTER_SITES=	http://botan.randombit.net/releases/
 PKGNAMESUFFIX=	${_BOTANMAJOR}
@@ -14,7 +14,8 @@ LICENSE_FILE=	${WRKSRC}/license.txt
 
 BUILD_DEPENDS=	${LOCALBASE}/include/boost/asio.hpp:devel/boost-libs
 
-USES=		compiler:c++20-lang cpe gmake llvm shebangfix tar:xz # llvm fixes build failure, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279136
+USES=		compiler:c++20-lang cpe gmake shebangfix tar:xz
+
 CPE_VENDOR=	${PORTNAME}_project
 USE_LDCONFIG=	yes
 
@@ -37,7 +38,7 @@ LDFLAGS+=		-pthread
 
 DOCSDIR=	${LOCALBASE}/share/doc/${PORTNAME}-${PORTVERSION}
 
-_SOABIVER=	7
+_SOABIVER=	8
 _BOTANMAJOR=	${DISTVERSION:S/./ /g:[1]}
 _SHLIBVER=	${DISTVERSION:S/./ /g:[2]}
 _SHLIBVERPATCH=	${DISTVERSION:S/./ /g:[3]}
@@ -47,10 +48,12 @@ PLIST_SUB=	SHLIBVER=${_SHLIBVER} \
 		BOTANMAJOR=${_BOTANMAJOR}
 PORTDOCS=	*
 
-OPTIONS_DEFINE=			DOCS MANPAGES PYTHON SQLITE3
+OPTIONS_DEFINE=			DOCS LLVM_FROM_PORTS MANPAGES PYTHON SQLITE3
 OPTIONS_DEFAULT=		MANPAGES
 OPTIONS_SUB=			yes
 
+LLVM_FROM_PORTS_DESC=		Use LLVM from ports to build
+
 MANPAGES_BUILD_DEPENDS=		${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR} \
 				${PYTHON_PKGNAMEPREFIX}furo>=2022.6.21:textproc/py-furo@${PY_FLAVOR}
 MANPAGES_CONFIGURE_WITH=	sphinx
@@ -65,6 +68,15 @@ SQLITE3_CONFIGURE_WITH=	sqlite3
 
 .include <bsd.port.options.mk>
 
+# llvm from ports fixes build failure, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279136
+.if ${OPSYS} == FreeBSD && \
+	((${OSVERSION} >= 1500000) || \
+	${PORT_OPTIONS:MLLVM_FROM_PORTS})
+USES+=	llvm
+USES:=	${USES:Ncompiler\:*} # XXX avoid warnings
+CHOSEN_COMPILER_TYPE=	clang
+.endif
+
 .if ${ARCH} == aarch64
 CONFIGURE_ARGS+=	--cc-abi="-march=armv8-a+crypto"
 .elif ${ARCH:Mpowerpc64*}
@@ -74,12 +86,6 @@ CONFIGURE_ARGS+=	--disable-powercrypto
 .endif
 .endif
 
-.if ${ARCH} == i386 || ${ARCH} == amd64
-PLIST_SUB+=	HAS_RDRAND_RNG=""
-.else
-PLIST_SUB+=	HAS_RDRAND_RNG="@comment "
-.endif
-
 .if ${ARCH} == i386 || ${ARCH} == amd64 || ${ARCH:Mpowerpc64*}
 PLIST_SUB+=	HAS_PROCESSOR_RNG=""
 .else
diff --git a/security/botan3/distinfo b/security/botan3/distinfo
index e90946f4ca79..e64fce607f4f 100644
--- a/security/botan3/distinfo
+++ b/security/botan3/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1738854685
-SHA256 (Botan-3.7.1.tar.xz) = fc0620463461caaea8e60f06711d7e437a3ad1eebd6de4ac29c14bbd901ccd1b
-SIZE (Botan-3.7.1.tar.xz) = 8659408
+TIMESTAMP = 1747422221
+SHA256 (Botan-3.8.1.tar.xz) = b039681d4b861a2f5853746d8ba806f553e23869ed72d89edbfa3c3dbfa17e68
+SIZE (Botan-3.8.1.tar.xz) = 8706304