# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

set uname           hdf5
github.setup        frigaut yorick-${uname} 0.8.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            14
license             GPL-2+
categories          science yorick
maintainers         {thibaut @paumard} openmaintainer
description         Hierarchical Data Format 5 interface for Yorick
long_description    HDF5 is the yorick interface plugin to the NCSA \
                    Hierarchical Data Format version 5. It includes function \
                    for reading, writing, updating, getting information on \
                    HDF5 files.
homepage            http://maumae.net/yorick/doc/plugins.php

checksums           rmd160  39f530ee7635a87efaa2756eae94bba548f133f2 \
                    sha256  dec88a159c8a263ab2c94a2aa7e6cf5e48d584539990ccf600d86b6d742a40ed

depends_lib-append  path:bin/yorick:yorick \
                    path:lib/libhdf5.dylib:hdf5

depends_run         port:yorick-yutils

universal_variant   no

configure.cmd       ${prefix}/bin/yorick
configure.pre_args
configure.args      -batch make.i


post-destroot {
    xinstall -d ${destroot}${prefix}/lib/yorick/packages/installed/
    xinstall -m 644 ${worksrcpath}/${uname}.info \
        ${destroot}${prefix}/lib/yorick/packages/installed/
}
