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

PortSystem 1.0

name                octave-strings
version             1.0.7
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         Additional manipulation functions  
long_description    ${description}

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

distname            strings-$version

checksums           md5     0b360fc1db30daf8e74db85548aad0fb \
                    sha1    ab6a49f72b925cba7a5b3e8bf5fc5850484abc42 \
                    rmd160  a33812368f8f257f0646fe5499cbf9d55cba312c

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