PORTNAME= nuspell DISTVERSIONPREFIX= v DISTVERSION= 5.1.0 CATEGORIES= textproc MAINTAINER= jbeich@FreeBSD.org COMMENT= Fast and safe spellchecking C++ library LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/COPYING.LESSER LIB_DEPENDS= libicuuc.so:devel/icu TEST_DEPENDS= catch>0:devel/catch USES= cmake:testing compiler:c++17-lang USE_GITHUB= yes USE_LDCONFIG= yes CMAKE_OFF+= ${CMAKE_TESTING_ON} 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