mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
65 lines
2.0 KiB
Tcl
65 lines
2.0 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup cmake 1.1
|
|
PortGroup github 1.0
|
|
PortGroup legacysupport 1.1
|
|
|
|
# please rev-bump enchant2 when the library version changes
|
|
github.setup nuspell nuspell 5.1.7 v
|
|
github.tarball_from archive
|
|
revision 1
|
|
|
|
homepage https://nuspell.github.io
|
|
|
|
description Fast and safe spellchecking C++ library
|
|
|
|
long_description Nuspell is a fast and safe spelling checker software \
|
|
program. It is designed for languages with rich \
|
|
morphology and complex word compounding. Nuspell is \
|
|
written in modern C++ and it supports Hunspell \
|
|
dictionaries.
|
|
|
|
categories textproc
|
|
license LGPL-3+
|
|
maintainers {gmail.com:herby.gillot @herbygillot} \
|
|
openmaintainer
|
|
|
|
checksums rmd160 bab2053b71b8a2fd9dfe85ea8412d4c5580a36c7 \
|
|
sha256 9aee944e86924ce44434741cb950fee8f9a6ff9c4f002803ab5f04698c8e4c68 \
|
|
size 339465
|
|
|
|
depends_lib-append path:lib/pkgconfig/icu-uc.pc:icu
|
|
|
|
compiler.cxx_standard \
|
|
2017
|
|
|
|
configure.args-append \
|
|
-DBUILD_DOCS=OFF \
|
|
-DBUILD_TESTING=OFF
|
|
|
|
set hunspell_path ${prefix}/share/hunspell
|
|
|
|
patchfiles patch-finder-cxx.diff
|
|
|
|
post-patch {
|
|
reinplace "s|@@HUNSPELL_PATH@@|${hunspell_path}|g" \
|
|
${worksrcpath}/src/nuspell/finder.cxx
|
|
}
|
|
|
|
variant docs description {Build documentation} {
|
|
depends_build-append \
|
|
port:pandoc
|
|
|
|
configure.args-replace \
|
|
-DBUILD_DOCS=OFF -DBUILD_DOCS=ON
|
|
}
|
|
|
|
notes "
|
|
You must install (at least) one of the language dictionaries after installing\
|
|
this port in order for it to work.
|
|
|
|
One suggestion is the Hunspell US English dictionary:
|
|
\$ sudo port install hunspell-en_US
|
|
"
|