diff --git a/textproc/nuspell/Makefile b/textproc/nuspell/Makefile index 198f43b5b7f1..a8cb0339b44e 100644 --- a/textproc/nuspell/Makefile +++ b/textproc/nuspell/Makefile @@ -1,35 +1,36 @@ PORTNAME= nuspell DISTVERSIONPREFIX= v DISTVERSION= 5.1.4 PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= jbeich@FreeBSD.org COMMENT= Fast and safe spellchecking C++ library WWW= https://nuspell.github.io/ LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/COPYING.LESSER LIB_DEPENDS= libicuuc.so:devel/icu TEST_DEPENDS= catch2>0:devel/catch2 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 @${REINPLACE_CMD} -i .doc '/README/d' ${WRKSRC}/CMakeLists.txt # Respect PREFIX != /usr/local @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \ ${WRKSRC}/src/nuspell/finder.cxx makepatch-clean: @${RM} ${WRKSRC}/tests/suggestiontest/Makefile.orig .include # XXX Don't override definition in Mk/bsd.port.mk makepatch: makepatch-clean 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 @@ -1,18 +1,18 @@ bin/nuspell include/nuspell/aff_data.hxx include/nuspell/checker.hxx include/nuspell/defines.hxx include/nuspell/dictionary.hxx include/nuspell/finder.hxx include/nuspell/nuspell_export.h include/nuspell/structures.hxx include/nuspell/suggester.hxx include/nuspell/unicode.hxx lib/cmake/nuspell/NuspellConfig.cmake lib/cmake/nuspell/NuspellConfigVersion.cmake 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