git: 9c016159e9c3 - main - devel/trompeloeil: Update 44 → 45

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 22 Jul 2023 06:48:50 UTC
The branch main has been updated by yuri:

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

commit 9c016159e9c375e1b4b8339831293e5a7c4ca057
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-22 06:29:29 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-22 06:48:42 +0000

    devel/trompeloeil: Update 44 → 45
    
    Reported by:    portscout
---
 devel/trompeloeil/Makefile  | 12 ++++++++++--
 devel/trompeloeil/distinfo  |  6 +++---
 devel/trompeloeil/pkg-plist |  1 +
 3 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/devel/trompeloeil/Makefile b/devel/trompeloeil/Makefile
index e6ca43e200c2..7cda44d58e6a 100644
--- a/devel/trompeloeil/Makefile
+++ b/devel/trompeloeil/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	trompeloeil
 DISTVERSIONPREFIX=	v
-DISTVERSION=	44
+DISTVERSION=	45
 CATEGORIES=	devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -13,11 +13,13 @@ LICENSE_FILE=	${WRKSRC}/LICENSE_1_0.txt
 TEST_DEPENDS=	${LOCALBASE}/include/catch2/catch.hpp:devel/catch \
 		criterion>0:devel/criterion
 
-USES=		cmake:testing # unclear how to run tests, see https://github.com/rollbear/trompeloeil/issues/287
+USES=		cmake:testing
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	rollbear
 
+CMAKE_TESTING_TARGET=	self_test thread_terror custom_recursive_mutex # see the README
+
 NO_BUILD=	yes
 NO_ARCH=	yes
 
@@ -31,4 +33,10 @@ post-install:
 		${MV} docs/* . && \
 		${RMDIR} docs
 
+post-test: # run tests
+.for exe in ${CMAKE_TESTING_TARGET}
+	${ECHO} "==> Running tests executable ${exe}"
+	@cd ${TEST_WRKSRC} && test/${exe}
+.endfor
+
 .include <bsd.port.mk>
diff --git a/devel/trompeloeil/distinfo b/devel/trompeloeil/distinfo
index a3966012adf0..41bce4689275 100644
--- a/devel/trompeloeil/distinfo
+++ b/devel/trompeloeil/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1687077810
-SHA256 (rollbear-trompeloeil-v44_GH0.tar.gz) = 004877db6ba22f24c7867e112e081eeb68858122f55ebe7c7dd9d8d9e3b46c88
-SIZE (rollbear-trompeloeil-v44_GH0.tar.gz) = 307572
+TIMESTAMP = 1690004321
+SHA256 (rollbear-trompeloeil-v45_GH0.tar.gz) = 124b0aa45d84415193719376b6557fc1f1180cbfebf4dc4f7ca247cb404d6bd8
+SIZE (rollbear-trompeloeil-v45_GH0.tar.gz) = 308207
diff --git a/devel/trompeloeil/pkg-plist b/devel/trompeloeil/pkg-plist
index e3a298cb3b07..53f124d4a9d1 100644
--- a/devel/trompeloeil/pkg-plist
+++ b/devel/trompeloeil/pkg-plist
@@ -1,4 +1,5 @@
 include/boost/trompeloeil.hpp
+include/cantata/trompeloeil.hpp
 include/catch2/trompeloeil.hpp
 include/criterion/trompeloeil.hpp
 include/crpcut/trompeloeil.hpp