# -*- 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           ml4
github.setup        frigaut yorick-${uname} 0.6.0
license             GPL-2+
categories          science yorick
platforms           darwin
maintainers         {thibaut @paumard} openmaintainer
description         Matlab 4 file format support fo Yorick
long_description    This plug-in gives read/write access to files saved in the \
                    Matlab 4 format.
homepage            http://maumae.net/yorick/doc/plugins.php

checksums           rmd160  a0a9c9ae31a84c49905fecb82a26b9e7fba3a49b \
                    sha256  98d5b208f3c26cf2efe7d4c55dd2996abb475a960d1b1d4d0dfd047900cc0ac0

depends_lib-append  path:bin/yorick:yorick

universal_variant   no

# bug fix from github
patchfiles          patch-ml4.i.diff

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/
}