# -*- 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 106171 2013-05-17 20:35:05Z ryandesign@macports.org $

PortSystem          1.0

name                cmsvlib
epoch               1
version             2012-10-02
categories          math science
maintainers         takeshi
platforms           darwin
supported_archs     noarch

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/

checksums           rmd160  73183e69738b2b58eed2129e5bf6c928ed6585f9 \
                    sha256  d79704a6a9a0344acf7b9b9f3376d9a829591475cb03cb639d999dddac1b76ea

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