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

PortSystem 1.0

name                octave-missing-functions
version             1.0.2
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         Find functions that are in Matlab but not in Octave.  
long_description    ${description}

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

distname            missing-functions-$version

checksums           md5     d975028d2a0fa9778b4ffedd4c1abba2 \
                    sha1    ed641e5af8c1366175b1024c2ae124c15c6986fc \
                    rmd160  2dcac957d371610b715397d109c9dd8778e7b7c6

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