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

PortSystem 1.0

name                octave-physicalconstants
version             0.1.7
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         Physical Constants from Atomic & Molecular Physics, taken from NIST database  
long_description    ${description}

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

distname            physicalconstants-$version

checksums           md5     808a9c50a0e77cdf31e62c968d82d85b \
                    sha1    58a3a4627de5b1c5a185ee1331aec1d310a05e01 \
                    rmd160  8d5b85066e3f65f1e49cc723bf249c880e7d41a6

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