blob: 075379ffb78248edcb5804d470233481971f7a82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= nuspell
DISTVERSIONPREFIX= v
DISTVERSION= 4.2.0
CATEGORIES= textproc
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Free and open source C++ spell checking library
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
LIB_DEPENDS= libicuuc.so:devel/icu
USES= cmake compiler:c++17-lang
USE_GITHUB= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= MANPAGES TEST
OPTIONS_DEFAULT=MANPAGES
MANPAGES_BUILD_DEPENDS= pandoc:textproc/hs-pandoc
MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz
TEST_BUILD_DEPENDS= catch>0:devel/catch \
bash:shells/bash
TEST_CMAKE_BOOL= BUILD_TESTING
TEST_TEST_TARGET= test
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
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
|