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

PortSystem 1.0

name                octave-triangular
version             1.0.4
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         Simple example of a user type implementing a simple matrix type for triangular matrices.  
long_description    ${description}

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

distname            triangular-$version

checksums           md5     adf17789482ae11166c162946a45b124 \
                    sha1    06b557b9666590d4e181f896d6ecaf9f98508469 \
                    rmd160  5e3c9ed675e5d19c953885154441abf1a0c98001

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