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

PortSystem 1.0

name                octave-financial
version             0.3.2
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         Financial manipulation and plotting functions  
long_description    ${description}

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

distname            financial-$version

checksums           md5     ea871683241da80f766b9af006b78865 \
                    sha1    b51db6769f6591ce49a8a1060a06744dceab66cf \
                    rmd160  1f9f087ed2c8053055e4e2938a1fd23079673c25

depends_lib-append  port:octave port:octave-time

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/financial-(\\d+(\\.\\d+)*)\.tar\.gz
