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

PortSystem 1.0

name                octave-io
version             1.0.9
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         Input/Output in external formats.  
long_description    ${description}

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

distname            io-$version

checksums           md5     a53eb6864746d230240745a8f82c0d0b \
                    sha1    2c9e3d9b94aba55f97d42dbf91d7d8c6b6af2f21 \
                    rmd160  a6009ca3afe53573624348bbd8d449679badbabb

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