git: 9e67c6d74d7c - main - devel/sdbus-cpp: simplify plist updates

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 21 Nov 2024 00:58:05 UTC
The branch main has been updated by jbeich:

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

commit 9e67c6d74d7cbfd8ab6ed1678a3d538197b94367
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-11-21 00:54:23 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-11-21 00:57:19 +0000

    devel/sdbus-cpp: simplify plist updates
---
 devel/sdbus-cpp/Makefile  | 1 +
 devel/sdbus-cpp/pkg-plist | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/devel/sdbus-cpp/Makefile b/devel/sdbus-cpp/Makefile
index 6bdb67d96f42..c704fbe0ab8f 100644
--- a/devel/sdbus-cpp/Makefile
+++ b/devel/sdbus-cpp/Makefile
@@ -22,5 +22,6 @@ GH_ACCOUNT=	Kistler-Group
 CMAKE_ON=	SDBUSCPP_BUILD_CODEGEN
 CMAKE_OFF=	SDBUSCPP_BUILD_DOCS
 CMAKE_TESTING_ON=	SDBUSCPP_BUILD_TESTS
+PLIST_SUB=	VERSION=${PORTVERSION}
 
 .include <bsd.port.mk>
diff --git a/devel/sdbus-cpp/pkg-plist b/devel/sdbus-cpp/pkg-plist
index a1fbaafc13b7..1c8634ecc104 100644
--- a/devel/sdbus-cpp/pkg-plist
+++ b/devel/sdbus-cpp/pkg-plist
@@ -26,6 +26,6 @@ lib/cmake/sdbus-c++/sdbus-c++-targets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/sdbus-c++/sdbus-c++-targets.cmake
 lib/libsdbus-c++.so
 lib/libsdbus-c++.so.2
-lib/libsdbus-c++.so.2.0.0
+lib/libsdbus-c++.so.%%VERSION%%
 libdata/pkgconfig/sdbus-c++-tools.pc
 libdata/pkgconfig/sdbus-c++.pc