# -*- 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 41264 2008-10-29 15:44:07Z macsforever2000@macports.org $

PortSystem 1.0

name             fastcap-wr
version          2.0

categories       science
platforms        darwin
maintainers      macsforever2000

description      A multipole-accelerated capacitance analysis program
long_description A multipole-accelerated capacitance analysis program. This version of fastcap has been modified by Whiteley Research.

homepage         http://www.wrcad.com/freestuff.html
distname         fastcap-${version}wr
master_sites     ftp://ftp.srware.com/pub/	\
                 http://www.wrcad.com/ftp/pub/

checksums        md5    6cc1f17175d73c5f808e99a0713a7c65 \
                 sha1   984290c11407de2962305124461b75356d47dfdb \
                 rmd160 6f66b985823c8ad350913c577c9c287970b5e1f7

use_configure    no

destroot {
    xinstall -m 755 -W ${worksrcpath}/bin busgen capgen cubegen fastcap pipedgen pyragen ${destroot}${prefix}/bin
    set docdir ${prefix}/share/doc/fastcap-wr
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath}/doc ug.ps tcad.ps mtt.ps FastCapsuppl.pdf ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} README ${destroot}${docdir}/README.wr
    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/
}
