# -*- 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 41263 2008-10-29 15:36:01Z macsforever2000@macports.org $

PortSystem 1.0

name             fasthenry-wr
version          3.0

categories       science
platforms        darwin
maintainers      macsforever2000

description      A multipole-accelerated inductance analysis program
long_description A multipole-accelerated inductance analysis program. This version of fasthenry has been modified by Whiteley Research to support superconducting segments and ground planes.

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

checksums        md5    27eceb7a70bebd2b3bbca2b81534351f \
                 sha1   b50298ac31be0d656fe2a46a3207725938568a5b \
                 rmd160 1255783d7278578918ae45e645f8f569eb16f23f

use_configure    no

destroot {
    xinstall -m 755 -W ${worksrcpath}/bin fasthenry zbuf ${destroot}${prefix}/bin
    set docdir ${prefix}/share/doc/fasthenry-wr
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath}/doc manual_001.ps manual_002.ps manual_003.ps ms_thesis.ps nonuniform_manual_1.ps nonuniform_manual_2.ps README ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} README ${destroot}${docdir}/README.wr
    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/
}
