2019-02-03 09:59:54 -05:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nuspell
|
|
|
|
DISTVERSIONPREFIX= v
|
2020-07-01 09:39:58 -04:00
|
|
|
DISTVERSION= 3.1.2
|
2019-02-03 09:59:54 -05:00
|
|
|
CATEGORIES= textproc
|
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= Free and open source C++ spell checking library
|
|
|
|
|
|
|
|
LICENSE= LGPL3+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
|
|
|
|
|
|
|
|
LIB_DEPENDS= libboost_locale.so:devel/boost-libs \
|
|
|
|
libicuuc.so:devel/icu
|
|
|
|
|
2019-03-20 08:22:54 -04:00
|
|
|
USES= cmake compiler:c++14-lang
|
2019-02-03 09:59:54 -05:00
|
|
|
USE_GITHUB= yes
|
2019-03-20 08:38:10 -04:00
|
|
|
USE_LDCONFIG= yes
|
2019-03-20 08:22:54 -04:00
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
2019-02-03 09:59:54 -05:00
|
|
|
|
2019-08-11 02:14:28 -04:00
|
|
|
OPTIONS_DEFINE= MANPAGES TEST
|
|
|
|
OPTIONS_DEFAULT=MANPAGES
|
2019-02-03 09:59:54 -05:00
|
|
|
|
2019-08-11 02:14:28 -04:00
|
|
|
MANPAGES_BUILD_DEPENDS= ronn:textproc/rubygem-ronn
|
2019-08-11 02:58:19 -04:00
|
|
|
MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz
|
2019-03-20 08:22:54 -04:00
|
|
|
|
|
|
|
TEST_BUILD_DEPENDS= catch>0:devel/catch \
|
|
|
|
bash:shells/bash
|
|
|
|
TEST_CMAKE_BOOL= BUILD_TESTING
|
|
|
|
TEST_TEST_TARGET= test
|
2019-02-03 09:59:54 -05:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
# Skip README as it only contains install instructions
|
2019-03-20 08:22:54 -04:00
|
|
|
@${REINPLACE_CMD} -i .doc '/README/d' ${WRKSRC}/CMakeLists.txt
|
2019-02-03 10:27:18 -05:00
|
|
|
# Respect PREFIX != /usr/local
|
|
|
|
@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
|
|
|
|
${WRKSRC}/src/nuspell/finder.cxx
|
2019-02-03 09:59:54 -05:00
|
|
|
|
|
|
|
pre-install-TEST-on: do-test
|
|
|
|
|
|
|
|
makepatch-clean:
|
|
|
|
@${RM} ${WRKSRC}/tests/suggestiontest/Makefile.orig
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
|
|
|
|
# XXX Don't override definition in Mk/bsd.port.mk
|
|
|
|
makepatch: makepatch-clean
|