source: trunk/dports/textproc/hunspell/Portfile @ 78762

Last change on this file since 78762 was 78762, checked in by jmr@…, 9 years ago

remove ncursesw dependencies

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 78762 2011-05-21 15:29:21Z jmr@macports.org $
3
4PortSystem 1.0
5
6name                        hunspell
7version                     1.3.2
8license                     GPL-2.0+ LGPL-2.1+ MPL-1.1+
9categories                  textproc
10maintainers                 nomaintainer
11description                 Spell checker and morphological analyzer
12homepage                    http://hunspell.sourceforge.net/
13platforms                   darwin
14
15long_description            Hunspell is a spell checker and morphological analyzer library and program \
16                            designed for languages with rich morphology and complex word compounding or \
17                            character encoding. Hunspell interfaces: Ispell-like terminal interface \
18                            using Curses library, Ispell pipe interface, OpenOffice.org UNO module.
19
20master_sites                sourceforge
21
22checksums           md5     3121aaf3e13e5d88dfff13fb4a5f1ab8 \
23                    sha1    902c76d2b55a22610e2227abc4fd26cbe606a51c \
24                    rmd160  f193de180f9ac29cfb54824a45366ba57b27e5c4
25
26patchfiles                  patch-hunspell.cxx.diff
27
28depends_lib                 port:gettext port:ncurses port:readline
29
30configure.cppflags-append   -DLIBDIR=\\"${prefix}/share/hunspell\\"
31configure.args              --with-ui --with-readline
32
33pre-test {
34    # Fix tools path in test script
35    reinplace /^alias/s:/src/tools:&/.libs: ${worksrcpath}/tests/test.sh
36}
37
38test.run                    yes
39test.target                 check
40
41post-destroot {
42    set docdir ${prefix}/share/doc/${name}
43    xinstall -d ${destroot}${docdir}
44    xinstall -m 644 -W ${worksrcpath} AUTHORS AUTHORS.myspell BUGS COPYING \
45        COPYING.LGPL COPYING.MPL ChangeLog NEWS README README.myspell THANKS \
46        TODO ${destroot}${docdir}
47}
48
49if {[variant_isset universal]} {
50    post-configure {
51        # Properly include universal ldflags when building the library
52        reinplace \
53            "/archive_cmds/s/-dynamiclib/& ${configure.universal_ldflags}/" \
54            ${worksrcpath}/libtool
55    }
56}
57
58
59notes \
60"You must install (at least) one of the language dictionaries after
61installing this port in order for it to work."
62
63livecheck.url   http://sourceforge.net/projects/${name}/files/
64livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.