# -*- 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
checksums rmd160 9463ce8f8f5db73e403cc8ee4ea9f4c66fb1ed25 \
sha256 5ca8fc8cb0370cc6c9eb5b64c6d1bc5d57b3750dbf17887726c3407d833b70e4 \
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers openmaintainer {jochen @jokuha}
description Spell checker with better logic than ispell
homepage http://aspell.net/
long_description Aspell is a spell checker designed to eventually replace ispell. \
Aspell's main feature is that it does a much better job of coming up with \
possible suggestions than ispell.
depends_lib port:gettext port:texinfo port:ncurses
# texinfo is also used in post-activate
# Teach glibtool to pass -stdlib at link time.
configure.args --enable-dict-dir="${prefix}/share/aspell" \
--enable-compile-in-filters
xinstall -m 0644 -W ${filespath} u-deva.cmap u-deva.cset ${destroot}${prefix}/lib/aspell-${branch}/
copy ${worksrcpath}/scripts/ispell ${destroot}${prefix}/bin/ispell
system "${prefix}/bin/install-info ${prefix}/share/info/aspell.info ${prefix}/share/info/dir"
system "${prefix}/bin/install-info ${prefix}/share/info/aspell-dev.info ${prefix}/share/info/dir"
configure.args-delete --disable-nls
configure.args-append --enable-nls
if {${os.platform} eq "darwin" && ${os.subplatform} eq "macosx"} {
# gnustep-gui uses aspell and will not work if aspell is linked to gettext because
# gettext is linked to CoreFoundation which is itself linked to the Apple objc runtime