textproc/nuspell: add new port
https://fosdem.org/2019/schedule/event/nuspell/
This commit is contained in:
parent
e6cefd132f
commit
b38e8e5756
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=492052
5 changed files with 76 additions and 0 deletions
|
@ -531,6 +531,7 @@
|
|||
SUBDIR += nn-aspell
|
||||
SUBDIR += no-hunspell
|
||||
SUBDIR += nunnimcax
|
||||
SUBDIR += nuspell
|
||||
SUBDIR += nux
|
||||
SUBDIR += ny-aspell
|
||||
SUBDIR += ocaml-csv
|
||||
|
|
44
textproc/nuspell/Makefile
Normal file
44
textproc/nuspell/Makefile
Normal file
|
@ -0,0 +1,44 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= nuspell
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.1.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= libboost_locale.so:devel/boost-libs \
|
||||
libicuuc.so:devel/icu
|
||||
|
||||
USES= autoreconf compiler:c++14-lang gmake libtool pkgconfig
|
||||
USE_GITHUB= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
OPTIONS_DEFINE= TEST
|
||||
|
||||
TEST_BUILD_DEPENDS= catch>0:devel/catch
|
||||
TEST_CPPFLAGS= -isystem${LOCALBASE}/include/catch2
|
||||
TEST_TEST_TARGET= check
|
||||
|
||||
post-patch:
|
||||
# Skip README as it only contains install instructions
|
||||
@${REINPLACE_CMD} 's/ README//' ${WRKSRC}/Makefile.am
|
||||
# Don't try to download catch2 during build
|
||||
@${REINPLACE_CMD} '/wget/d' ${WRKSRC}/tests/Makefile.am
|
||||
|
||||
post-patch-TEST-off:
|
||||
@${REINPLACE_CMD} -i .notest 's/ tests//' ${WRKSRC}/Makefile.am
|
||||
|
||||
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
|
3
textproc/nuspell/distinfo
Normal file
3
textproc/nuspell/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1546481730
|
||||
SHA256 (nuspell-nuspell-v2.1.0_GH0.tar.gz) = 95ff7e803ef36f668de405b2c657efb4af36ddeb10c6267cc9bf126898be4482
|
||||
SIZE (nuspell-nuspell-v2.1.0_GH0.tar.gz) = 447400
|
18
textproc/nuspell/pkg-descr
Normal file
18
textproc/nuspell/pkg-descr
Normal file
|
@ -0,0 +1,18 @@
|
|||
Nuspell is a spell checker library and command-line program designed
|
||||
for languages with rich morphology and complex word compounding.
|
||||
Nuspell is a pure C++ reimplementation of Hunspell.
|
||||
|
||||
Main features of Nuspell spell checker and morphological analyzer:
|
||||
|
||||
- Full unicode support
|
||||
- Max. 65535 affix classes and twofold affix stripping (for
|
||||
agglutinative languages, like Azeri, Basque, Estonian, Finnish,
|
||||
Hungarian, Turkish, etc.)
|
||||
- Support complex compounds (for example, Hungarian and German)
|
||||
- Support language specific features (for example, special casing of
|
||||
Azeri and Turkish dotted i, or German sharp s)
|
||||
- Handle conditional affixes, circumfixes, fogemorphemes, forbidden
|
||||
words, pseudoroots and homonyms.
|
||||
- Free software. Licenced under GNU LGPL.
|
||||
|
||||
WWW: https://nuspell.github.io/
|
10
textproc/nuspell/pkg-plist
Normal file
10
textproc/nuspell/pkg-plist
Normal file
|
@ -0,0 +1,10 @@
|
|||
bin/nuspell
|
||||
include/nuspell/aff_data.hxx
|
||||
include/nuspell/dictionary.hxx
|
||||
include/nuspell/finder.hxx
|
||||
include/nuspell/locale_utils.hxx
|
||||
include/nuspell/string_utils.hxx
|
||||
include/nuspell/structures.hxx
|
||||
lib/libnuspell.a
|
||||
libdata/pkgconfig/nuspell.pc
|
||||
man/man1/nuspell.1.gz
|
Loading…
Reference in a new issue