# -*- 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 74204 2010-12-07 12:22:34Z takeshi@macports.org $

PortSystem          1.0

name                cmsvlib
version             20101118
categories          math science
maintainers         takeshi igf.fuw.edu.pl:slayoo
platforms           darwin
description         Read and Write IDL SAVE files
long_description \
    allows interactive users and programmers \
    to read, write and interrogate IDL SAVE files.
homepage http://www.physics.wisc.edu/~craigm/idl/cmsave.html
master_sites        http://www.physics.wisc.edu/~craigm/idl/down/
distfiles           ${name}${extract.suffix}
dist_subdir         ${name}/${version}

checksums           md5     e07ac7c7147a8995931014cb34a72557 \
                    sha1    8955cb94119f564ee2ba8bb257891a277e5fba2f \
                    rmd160  e70ddee1b5f731277f121db7add1d9808999efe2

extract.mkdir       yes
use_configure       no
build {
}

use_parallel_build  yes

destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/cmsvlib
   eval xinstall -m 644 [glob ${worksrcpath}/*.pro] ${destroot}${prefix}/share/${name}
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 ${worksrcpath}/LICENSE.RSI ${destroot}${prefix}/share/doc/${name}/
   eval xinstall -m 644 [glob ${worksrcpath}/*.html] ${destroot}${prefix}/share/doc/${name}/
   eval xinstall -m 644 [glob ${worksrcpath}/savefmt.*] ${destroot}${prefix}/share/doc/${name}/
}
