blob: ffbab858cc3550cc49375455ba43f3a8b8d4536a (
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
50
51
52
|
# $FreeBSD$
PORTNAME= nuspell
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.0
PORTREVISION= 3
CATEGORIES= textproc
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 35ae2bd38585.patch:-p1
PATCHFILES+= 1d4c96d3fe0f.patch:-p1
PATCHFILES+= ad0eea5e8028.patch:-p1
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= DOCS TEST
DOCS_BUILD_DEPENDS= ronn:textproc/rubygem-ronn
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
|