# -*- 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 # $Id$ PortSystem 1.0 name hunspell version 1.3.3 revision 1 license {GPL-2+ LGPL-2.1+ MPL-1.1+} categories textproc maintainers nomaintainer description Spell checker and morphological analyzer homepage http://hunspell.sourceforge.net/ platforms darwin long_description Hunspell is a spell checker and morphological analyzer library and program \ designed for languages with rich morphology and complex word compounding or \ character encoding. Hunspell interfaces: Ispell-like terminal interface \ using Curses library, Ispell pipe interface, OpenOffice.org UNO module. master_sites sourceforge:project/hunspell/Hunspell/${version} checksums rmd160 6e45fdf0c602f0694f414b0cb33de34a5bf95683 \ sha256 a7b2c0de0e2ce17426821dc1ac8eb115029959b3ada9d80a81739fa19373246c conflicts freeling patchfiles patch-hunspell.cxx.diff depends_lib port:gettext port:ncurses port:readline use_autoreconf yes autoreconf.args -fvi configure.cppflags-append -DLIBDIR=\\"${prefix}/share/hunspell\\" configure.args --with-ui --with-readline pre-test { # Fix tools path in test script reinplace /^alias/s:/src/tools:&/.libs: ${worksrcpath}/tests/test.sh } test.run yes test.target check post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} AUTHORS AUTHORS.myspell BUGS COPYING \ COPYING.LGPL COPYING.MPL ChangeLog NEWS README README.myspell THANKS \ TODO ${destroot}${docdir} } if {[variant_isset universal]} { post-configure { # Properly include universal ldflags when building the library reinplace \ "/archive_cmds/s/-dynamiclib/& ${configure.universal_ldflags}/" \ ${worksrcpath}/libtool } } notes " You must install (at least) one of the language dictionaries after installing\ this port in order for it to work. " livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}