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

PortSystem 1.0

name                octave-odebvp
version             1.0.6
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         To approximate the solution of the boundary-value problem  y''=p(x)*y' + q(x)*y + r(x), a<=x<=b, y(a)=alpha, y(b)=beta by the linear finite-diffence method.  
long_description    ${description}

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

distname            odebvp-$version

checksums           md5     7ace0e26b6a4b1abed4959c73eeaf133 \
                    sha1    c20253c62838c610c8da1b984554a5aa031262a1 \
                    rmd160  f8542decb4d7e3b7852ceb806aa1310367de8c18

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