git: 819e3439b08a - main - textproc/nuspell: simplify plist updates

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 05 Jul 2024 12:04:23 UTC
The branch main has been updated by jbeich:

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

commit 819e3439b08a65b93df5bb66ab8caaf8ccfa710a
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-07-04 00:26:06 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-07-05 12:02:41 +0000

    textproc/nuspell: simplify plist updates
---
 textproc/nuspell/Makefile  | 1 +
 textproc/nuspell/pkg-plist | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/textproc/nuspell/Makefile b/textproc/nuspell/Makefile
index 198f43b5b7f1..a8cb0339b44e 100644
--- a/textproc/nuspell/Makefile
+++ b/textproc/nuspell/Makefile
@@ -18,6 +18,7 @@ USES=		cmake:testing compiler:c++17-lang
 USE_GITHUB=	yes
 USE_LDCONFIG=	yes
 CMAKE_OFF+=	${CMAKE_TESTING_ON}
+PLIST_SUB=	VERSION=${PORTVERSION}
 
 post-patch:
 # Skip README as it only contains install instructions
diff --git a/textproc/nuspell/pkg-plist b/textproc/nuspell/pkg-plist
index 659e4ccd96f4..d0b4a0242e49 100644
--- a/textproc/nuspell/pkg-plist
+++ b/textproc/nuspell/pkg-plist
@@ -14,5 +14,5 @@ lib/cmake/nuspell/NuspellTargets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/nuspell/NuspellTargets.cmake
 lib/libnuspell.so
 lib/libnuspell.so.5
-lib/libnuspell.so.5.1.4
+lib/libnuspell.so.%%VERSION%%
 libdata/pkgconfig/nuspell.pc