# $Id: Portfile 53097 2009-06-29 14:03:12Z alakazam@macports.org $

PortSystem 1.0

name                octave-pt_br
version             1.0.8
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         Brazilian Portuguese translations of the help strings of the Octave functions.   
long_description    ${description}

homepage            http://octave.sourceforge.net/
master_sites        sourceforge:octave

distname            pt_br-$version

checksums           md5     603b69e50932bc1c07f1376553c61cda \
                    sha1    70ca95444a5c750461094988d7ee99170cd8a782 \
                    rmd160  45c4e25dc3692a9ef599b41a8f066240d27c9210

depends_lib-append  port:octave 

post-destroot {
    move ${destroot}${prefix}/share/octave/octave_packages ${destroot}${prefix}/share/octave/octave_packages_${name}
}

post-activate {
    system "octave --eval \"pkg rebuild\""
}

livecheck.check regex
livecheck.url   http://octave.sourceforge.net/packages.html
livecheck.regex http://downloads\.sourceforge\.net/octave/pt_br-(\\d+(\\.\\d+)*)\.tar\.gz
