# -*- 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 60362 2009-11-10 05:35:37Z macsforever2000@macports.org $

PortSystem 1.0

name             fastcap-wr
version          2.0
revision         1

categories       science electronics
platforms        darwin
maintainers      macsforever2000
license          LGPL

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-011109
worksrcdir       fastcap-${version}wr

master_sites     ftp://ftp.srware.com/pub/ \
                 http://www.wrcad.com/ftp/pub/

checksums        md5     e46c46247617a9c81407c1f7b1b85271 \
                 sha1    301696cf0136a833f0e3597286cf01d527472c8d \
                 rmd160  2bea82d0eae27924242e7f9c70f4ebbc20d99492

use_configure    no
use_parallel_build 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}/
}
