# -*- 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 92024 2012-04-16 12:32:40Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        dhmunro yorick 2.2.02 y_
github.version      [strsed ${version} {g/\./_/}]
license             BSD
categories          science
platforms           darwin
maintainers         users.sourceforge.net:paumard openmaintainer
description         Interpreted language and scientific graphics
long_description    An interpreted programming language for numerical \
                    computations, scientific data processing and \
                    visualisation.

homepage            http://yorick.github.com/

checksums           rmd160  44f3a75795df3a5a8a720c3da1b9eea555507437 \
                    sha256  a360ee57548118917b7473d0eb7fc666b49b5c913d245f9b96fd680cbfe398bf

depends_lib         port:xorg-libX11

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.

Reference websites (including online user manual and fora):

${homepage}
http://www.maumae.net/yorick/
"
