git: f4444a04d995 - main - devel/expected: Correct the version in cmake scripts
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Jun 2025 15:52:40 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f4444a04d9951d639b58802078bf08576a2ffddd
commit f4444a04d9951d639b58802078bf08576a2ffddd
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-06-18 06:24:01 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-06-19 15:52:36 +0000
devel/expected: Correct the version in cmake scripts
---
devel/expected/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/devel/expected/Makefile b/devel/expected/Makefile
index 7ba061123c07..a692246ca223 100644
--- a/devel/expected/Makefile
+++ b/devel/expected/Makefile
@@ -1,6 +1,7 @@
PORTNAME= expected
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.0
+PORTREVISION= 1
CATEGORIES= devel science
MAINTAINER= yuri@FreeBSD.org
@@ -29,6 +30,11 @@ PLIST_FILES= include/tl/expected.hpp \
NO_ARCH= yes
+post-install: # workaround for https://github.com/TartanLlama/expected/issues/173
+ @${REINPLACE_CMD} -i '' \
+ -e 's/1\.0\.0/${PORTVERSION}/' \
+ ${STAGEDIR}${PREFIX}/share/cmake/tl-expected/tl-expected-config-version.cmake
+
# tests as of 1.1.0: 100% tests passed, 0 tests failed out of 1
.include <bsd.port.mk>