blob: 57af1d0875f7ea29da0ca499d47e848ee322a40d (
plain) (
blame)
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
45
46
47
48
49
|
# $FreeBSD$
PORTNAME= nuspell
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.0
PORTREVISION= 1
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
USES= cmake compiler:c++14-lang
USE_GITHUB= yes
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
OPTIONS_DEFINE= MANPAGES TEST
OPTIONS_DEFAULT=MANPAGES
MANPAGES_BUILD_DEPENDS= ronn:textproc/rubygem-ronn
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
|