# -*- 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 67885 2010-05-20 18:48:30Z ryandesign@macports.org $

PortSystem          1.0

name                yorick
version             2.1.06
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          science
platforms           darwin
maintainers         users.sourceforge.net:paumard
description         Interpreted language and scientific graphics
long_description    An interpreted programming language for numerical \
                    computations, scientific data processing and \
                    visualisation.
homepage            http://yorick.sourceforge.net/
master_sites        sourceforge
extract.suffix      .tgz

checksums           md5     2cc21b1b61a65bb197adfd96f3bb545e \
                    sha1    779b432d53b1f9ce21a44285fbccdd3f8083c219 \
                    rmd160  f9380c97953f2a7d9ba941ee4c43d73e2f41ad3f

depends_lib         port:xorg-libX11

worksrcdir          ${name}-${branch}

universal_variant   no

configure.cmd       ${build.cmd}
configure.pre_args
configure.args      reloc Make.cfg

post-destroot {
    move ${worksrcpath}/relocate ${destroot}${prefix}/lib/${name}
    ln -s ${prefix}/lib/${name}/bin/yorick ${destroot}${prefix}/bin/
    ln -s ${prefix}/lib/${name}/bin/gist ${destroot}${prefix}/bin/
    xinstall -m 644 -W ${worksrcpath}/doc yorick.1 gist.1 \
        ${destroot}${prefix}/share/man/man1/
}

notes               Yorick has no built-in line-editing capabilities, so it is \
                    recommended to run it within rlwrap. \
                    \nReference websites (incl. online user manual and fora): \
                    \n${homepage} \
                    \nhttp://www.maumae.net/yorick/
