# -*- 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 144005 2015-12-29 21:40:05Z devans@macports.org $ PortSystem 1.0 name ngspice version 26 license BSD categories science cad maintainers nomaintainer platforms darwin description Circuit simulator based on Spice 3f5, XSpice and others long_description \ Ngspice is a mixed-level/mixed-signal circuit simulator. Its \ code is based on three open source software packages: Spice3f5, \ Cider1b1 and Xspice. Ngspice is part of gEDA project, a full \ suite of Electronic Design Automation tools. homepage http://ngspice.sourceforge.net/ master_sites sourceforge:project/ngspice/ng-spice-rework/${version} checksums rmd160 b708ef7af2f6882e04d7bb4985418b4ac0c37a3b \ sha256 51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108 set docdir ${prefix}/share/doc/${name} if {${name} eq ${subport}} { revision 3 depends_lib port:ncurses \ port:libedit \ port:xorg-libx11 \ port:xorg-libxaw \ port:xorg-libxmu \ port:xorg-libXext \ port:xorg-libXt configure.args --enable-cider \ --enable-xspice \ --enable-pss \ --with-editline \ --with-x \ --enable-debug=no post-destroot { xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} \ ANALYSES \ AUTHORS \ BUGS \ COPYING \ ChangeLog \ DEVICES \ FAQ \ NEWS \ README \ Stuarts_Poly_Notes \ ${destroot}${docdir} } variant manual description {Legacy compatibility variant} { depends_run-append port:ngspice-docs } livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} } else { livecheck.type none } subport ngspice-docs { supported_archs noarch description PDF manual for ngspice long_description ${description} distname ${name}-${version}-manual.pdf extract.suffix extract.only checksums rmd160 1d708851d5e1a6feb3cf9e4e40396a0215996048 \ sha256 30b4fde001d012b0350aae3ba64892fb2f315d04f6761b95abd79f4b7c4cd85d use_configure no build {} destroot { xinstall -d ${destroot}${docdir} xinstall -m 644 ${distpath}/${distname} ${destroot}${docdir} } }