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

PortSystem 1.0

set langcode        nb
name                aspell-dict-${langcode}
version             0.50.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     d1173a5ce04f39e9c93183da691e7ce8 \
                    sha1    40e2549973c192b82f782b9e0b1159e6b51464b3 \
                    rmd160  5f2fd214608c9a80d318690912efd3aae02d5cd3

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}/bokmal.alias" "${worksrcpath}/bokmål.alias"
}
configure.pre_args  {}
configure.args      --vars \
                    ASPELL=${prefix}/bin/aspell \
                    WORD_LIST_COMPRESS=${prefix}/bin/word-list-compress

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

