source: trunk/dports/textproc/aspell/Portfile

Last change on this file was 144108, checked in by khindenburg@…, 21 months ago

aspell: remove legacy variant

  • 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; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 144108 2016-01-01 22:10:02Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                            aspell
7version                 0.60.6.1
8revision                1
9set branch              [join [lrange [split ${version} .] 0 1] .]
10categories                  textproc
11maintainers                 openmaintainer jochen
12conflicts               ispell
13description                 Spell checker with better logic than ispell
14homepage                    http://aspell.net/
15platforms                   darwin
16license                 LGPL-2
17use_parallel_build      yes
18
19long_description        Aspell is a spell checker designed to eventually replace ispell. \
20                        Aspell's main feature is that it  does a much better job of coming up with \
21                        possible suggestions than ispell.
22
23master_sites            gnu freebsd
24
25checksums               rmd160  6d4e29228e5c47cd4dbd780a73dbc1d2222e8266 \
26                        sha256  f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1
27
28depends_lib             port:gettext port:texinfo port:ncurses
29# texinfo is also used in post-activate
30
31patchfiles              clang.patch
32
33use_autoreconf          yes
34autoreconf.args         -fvi
35
36configure.args          --enable-dict-dir="${prefix}/share/aspell" \
37                        --disable-nls \
38                        --enable-compile-in-filters
39
40test.run                yes
41test.target             check
42
43post-destroot { 
44    xinstall -m 644 -W ${filespath} u-deva.cmap u-deva.cset ${destroot}${prefix}/lib/aspell-${branch}/
45    copy ${worksrcpath}/scripts/ispell ${destroot}${prefix}/bin/ispell
46}
47
48post-activate {
49    system "${prefix}/bin/install-info ${prefix}/share/info/aspell.info ${prefix}/share/info/dir"
50    system "${prefix}/bin/install-info ${prefix}/share/info/aspell-dev.info ${prefix}/share/info/dir"
51}
52
53variant nls {
54    configure.args-delete --disable-nls
55    configure.args-append --enable-nls
56}
57
58if {${os.platform} eq "darwin" && ${os.subplatform} eq "macosx"} {
59    # gnustep-gui uses aspell and will not work if aspell is linked to gettext because
60    # gettext is linked to CoreFoundation which is itself linked to the Apple objc runtime
61    default_variants -nls
62} else {
63    default_variants +nls
64}
65
66notes "
67You must install (at least) one of the language dictionaries after installing\
68this port in order for it to work.
69"
Note: See TracBrowser for help on using the repository browser.