# $Id: Portfile 59972 2009-10-28 07:03:21Z pguyot@kallisys.net $

PortSystem 1.0

set langcode        is
name                aspell-dict-${langcode}
version             0.51.1-0
categories          textproc
maintainers         nomaintainer
description         ${langcode} dictionary for aspell
long_description    ${description}
homepage	        http://aspell.net/
platforms	        darwin
universal_variant   no

master_sites	    gnu:aspell/dict/${langcode}
distname	        aspell-${langcode}-${version}
checksums	        md5     1e0b6125d91d7edad710482ddcce2d23 \
                    sha1    26c3a3bf047534cab163411735e8ff880b789ebe \
                    rmd160  3be0c1d7187af7f09a5ae39b65d4ee5c0c13676d

use_bzip2           yes

depends_build       port:aspell

patchfiles          patch-Makefile.pre.diff

extract.post_args   "| tar xf - -T ${filespath}/archive_content"
post-extract {
    file copy "${worksrcpath}/icelandic.alias" "${worksrcpath}/íslenska.alias"
}
configure.pre_args  {}
configure.args      --vars \
                    ASPELL=${prefix}/bin/aspell \
                    WORD_LIST_COMPRESS=${prefix}/bin/word-list-compress

livecheck.regex     >aspell6?-${langcode}-(.*?)\\.tar\\.

