# -*- 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           yutils
github.setup        frigaut yorick-${uname} 1.5.2
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories          science yorick
license             GPL-2
platforms           any
maintainers         {thibaut @paumard} openmaintainer
supported_archs     noarch

description         Various utilities for the Yorick language
long_description    Yutils is a must-have collection of interpreted routines \
                    for Yorick. Topics: astronomical data reduction, physical \
                    constants, search for extrema in arrays or functions, \
                    plots, and more.
homepage            http://maumae.net/yorick/doc/plugins.php

checksums           rmd160  d4ce6f26cabd2b0f356a039c328dd8c1613840bd \
                    sha256  d99b2a9e8a937eecfd80221323e6dbc7a44ce658ebbc1191bfe91491b91e7653

depends_lib-append  port:yorick

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

build               {}

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