# $Id: Portfile 51488 2009-05-26 16:20:06Z devans@macports.org $

PortSystem  1.0

name		enchant
version		1.5.0
categories	textproc devel
maintainers	kix.in:anant
description	Spellchecker wrapping library
homepage        http://www.abisource.com/enchant/
platforms	darwin

long_description    On the surface, Enchant appears to be a generic spell checking library.\
                    You can request dictionaries from it, ask if a word is correctly spelled,\
                    get corrections for a misspelled word, etc. but all it really does is to \
                    provide a uniform wrapper over several popular spell checking libraries \
                    including aspell, ispell and AppleSpell.
                   
master_sites    http://www.abisource.com/downloads/${name}/${version}/

checksums       md5     7dfaed14e142b4a0004b770c9568ed02 \
                sha1    44e10feb9942324f603d84211599f4f5303d8c0e \
                rmd160  7eb98a0ca56b1a35e32ff58f794eff05f7147b85

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:aspell \
                port:hunspell

depends_build   bin:glibtoolize:libtool \
                port:pkgconfig

configure.args	--mandir=${prefix}/share/man

pre-configure {
#    cd ${worksrcpath}
#    system "aclocal -Iac-helpers/"
#    system "automake --add-missing"
#    system "glibtoolize --force --copy"
#    system "cp /usr/share/automake-1.6/config.guess ."
#       system "cp /usr/share/automake-1.6/config.sub ."
#    system "autoconf"
}

livecheck.check regex
livecheck.url  http://www.abisource.com/downloads/${name}/
livecheck.regex {"(\d+(?:\.\d+)*)/"}
