# -*- 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
github.setup AbiWord enchant 2.2.3 v
categories textproc devel
description Generic spell checking library
long_description Enchant aims to provide a simple but comprehensive abstraction for dealing \
with different spell checking libraries in a consistent way. Installs in \
parallel with legacy Enchant 1.x versions without conflict.
github.tarball_from releases
# Remove dist_subdir when updating to the next version.
dist_subdir ${name}/${version}_1
checksums rmd160 87ac76b00ed54d47d246b0938d493d2a82180de6 \
sha256 abd8e915675cff54c0d4da5029d95c528362266557c61c7149d53fa069b8076d \
depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2
depends_build port:pkgconfig
configure.args --without-hunspell \
# to allow parallel install with enchant 1.x
build.cmd-append pkgdatadir=${prefix}/share/enchant-2
# https://trac.macports.org/ticket/51287
# https://trac.macports.org/ticket/56222
if {${os.platform} eq "darwin" && ${os.major} >= 15} {
# users most likely have AppleSpell already set up for their language
default_variants +applespell
variant aspell description {Enable aspell backend} {
configure.args-replace --without-aspell --with-aspell
configure.args-append --with-aspell-dir=${prefix}/share/aspell
depends_lib-append port:aspell
depends_run port:aspell-dict-en
variant hunspell description {Enable hunspell backend} {
configure.args-replace --without-hunspell --with-hunspell
configure.args-append --with-hunspell-dir=${prefix}/share/hunspell
depends_lib-append port:hunspell
depends_run-append port:hunspell-en_US