# -*- 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 92470 2012-04-29 16:29:02Z cal@macports.org $

PortSystem          1.0
PortGroup           github 1.0

set uname           soy
github.setup        frigaut yorick-${uname} 1.4.0
license             GPL-2+
categories          science
platforms           darwin
maintainers         users.sourceforge.net:paumard openmaintainer
description         Sparse matrix operations for the Yorick language
long_description    Sparse Operations with Yorick is a plugin for Yorick (an \
                    interpreted computer language specialized for numerical \
                    and scientific problems) that allows performing efficient \
                    operations on sparse matrices.
homepage            http://maumae.net/yorick/doc/plugins.php

checksums           rmd160  95fc7d4dddc706e852be93e49fa08040cdc1a6ec \
                    sha256  555563db50c88b96b490ddb51fe5be72e874ca5363d3aa2cbf05804cb52c0622

depends_lib-append  path:bin/yorick:yorick

# yorick isn't universal
universal_variant   no

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

build.args-append   CC=${configure.cc} \
                    PKG_CFLAGS=\"${configure.cflags}\" \
                    PKG_LDFLAGS=\"${configure.ldflags}\"

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