source: trunk/dports/textproc/hunspell/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- 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
2# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                        hunspell
7version                     1.3.3
8revision                    1
9license                     {GPL-2+ LGPL-2.1+ MPL-1.1+}
10categories                  textproc
11maintainers                 nomaintainer
12description                 Spell checker and morphological analyzer
13homepage                    http://hunspell.sourceforge.net/
14platforms                   darwin
15
16long_description            Hunspell is a spell checker and morphological analyzer library and program \
17                            designed for languages with rich morphology and complex word compounding or \
18                            character encoding. Hunspell interfaces: Ispell-like terminal interface \
19                            using Curses library, Ispell pipe interface, OpenOffice.org UNO module.
20
21master_sites                sourceforge:project/hunspell/Hunspell/${version}
22
23checksums                   rmd160  6e45fdf0c602f0694f414b0cb33de34a5bf95683 \
24                            sha256  a7b2c0de0e2ce17426821dc1ac8eb115029959b3ada9d80a81739fa19373246c
25
26conflicts                   freeling
27
28patchfiles                  patch-hunspell.cxx.diff
29
30depends_lib                 port:gettext port:ncurses port:readline
31
32use_autoreconf              yes
33autoreconf.args             -fvi
34
35configure.cppflags-append   -DLIBDIR=\\"${prefix}/share/hunspell\\"
36configure.args              --with-ui --with-readline
37
38pre-test {
39    # Fix tools path in test script
40    reinplace /^alias/s:/src/tools:&/.libs: ${worksrcpath}/tests/test.sh
41}
42
43test.run                    yes
44test.target                 check
45
46post-destroot {
47    set docdir ${prefix}/share/doc/${name}
48    xinstall -d ${destroot}${docdir}
49    xinstall -m 644 -W ${worksrcpath} AUTHORS AUTHORS.myspell BUGS COPYING \
50        COPYING.LGPL COPYING.MPL ChangeLog NEWS README README.myspell THANKS \
51        TODO ${destroot}${docdir}
52}
53
54if {[variant_isset universal]} {
55    post-configure {
56        # Properly include universal ldflags when building the library
57        reinplace \
58            "/archive_cmds/s/-dynamiclib/& ${configure.universal_ldflags}/" \
59            ${worksrcpath}/libtool
60    }
61}
62
63
64notes "
65You must install (at least) one of the language dictionaries after installing\
66this port in order for it to work.
67"
68
69livecheck.regex             /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.