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

PortSystem 1.0

name                octave-integration
version             1.0.7
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         Toolbox for 1-D, 2-D, and n-D Numerical Integration  
long_description    ${description}

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

distname            integration-$version

checksums           md5     ccd4224ec51e35ccd50c6a119f304284 \
                    sha1    b9d66b79391aef4bc574af62e716edfe833d9aa8 \
                    rmd160  2340ae906e77ba64a31b08ca548f1ecaf2eee79e

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