git: af82f6c61834 - main - devel/ut: New port: C++20 micro/Unit Testing Framework

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 12 Dec 2023 23:14:38 UTC
The branch main has been updated by yuri:

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

commit af82f6c61834d77d92a6661f84b83f1cc7bc385a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-12-12 22:51:24 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-12-12 23:14:33 +0000

    devel/ut: New port: C++20 micro/Unit Testing Framework
---
 devel/Makefile     |  1 +
 devel/ut/Makefile  | 32 ++++++++++++++++++++++++++++++++
 devel/ut/distinfo  |  3 +++
 devel/ut/pkg-descr |  8 ++++++++
 4 files changed, 44 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index cff91b87f0a8..00ec359ca3f2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7830,6 +7830,7 @@
     SUBDIR += upp
     SUBDIR += upslug
     SUBDIR += urjtag
+    SUBDIR += ut
     SUBDIR += utf8cpp
     SUBDIR += utf8cpp3
     SUBDIR += uthash
diff --git a/devel/ut/Makefile b/devel/ut/Makefile
new file mode 100644
index 000000000000..f29d35f5e4af
--- /dev/null
+++ b/devel/ut/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	ut
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.0.0
+CATEGORIES=	devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	C++20 micro/Unit Testing Framework
+WWW=		https://boost-ext.github.io/ut/
+
+LICENSE=	BSL
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+USES=		cmake:testing
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	boost-ext
+
+CMAKE_OFF=	BOOST_UT_ALLOW_CPM_USE \
+		BOOST_UT_BUILD_TESTS \
+		BOOST_UT_BUILD_EXAMPLES
+CMAKE_ARGS=	-DFREEBSD_WRKSRC_cpm=${WRKSRC_cpm} \
+		-DCURRENT_CPM_VERSION=0.38.7
+CMAKE_TESTING_ON=	BOOST_UT_BUILD_TESTS # 7 tests fail, see https://github.com/boost-ext/ut/issues/600
+
+PLIST_FILES=	include/ut-2.0.0/include/boost/ut.hpp \
+		lib/cmake/ut-2.0.0/utConfig.cmake \
+		lib/cmake/ut-2.0.0/utConfigVersion.cmake \
+		lib/cmake/ut-2.0.0/utTargets.cmake
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/ut/distinfo b/devel/ut/distinfo
new file mode 100644
index 000000000000..d80d35e3a68c
--- /dev/null
+++ b/devel/ut/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1702421439
+SHA256 (boost-ext-ut-v2.0.0_GH0.tar.gz) = 8b5b11197d1308dfc1fe20efd6a656e0c833dbec2807e2292967f6e2f7c0420f
+SIZE (boost-ext-ut-v2.0.0_GH0.tar.gz) = 65578
diff --git a/devel/ut/pkg-descr b/devel/ut/pkg-descr
new file mode 100644
index 000000000000..bb9eb8e4968b
--- /dev/null
+++ b/devel/ut/pkg-descr
@@ -0,0 +1,8 @@
+UT is a C++20 u(micro)/Unit Testing Framework.
+
+Testing is a very important part of the Software Development, however,
+C++ doesn't provide any good testing facilities out of the box, which often
+leads into a poor testing experience for develops and/or lack of tests/coverage
+in general.
+
+UT attempts to provide a uniform and easy way to run tests in C++.