# -*- 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
# $Id: Portfile 67904 2010-05-21 10:39:05Z ryandesign@macports.org $

PortSystem          1.0

set uname           yutils
name                yorick-${uname}
version             1.5.0
categories          science
platforms           darwin
maintainers         users.sourceforge.net:paumard
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
master_sites        http://maumae.net/yorick/packages/src/
distname            ${uname}-${version}-src
extract.suffix      .tgz
worksrcdir          ${name}-${version}

checksums           md5     c8d86715be5f9453fd0b8c70dd39308a \
                    sha1    be3a4793cfe6080d2841dc1a9943f8fea5d31932 \
                    rmd160  2c9fb2d3e751189d82235fafb84b2cb9439f9bde

depends_lib         port:yorick

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant no
}

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