Source
# -*- 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
PortSystem 1.0
name ngspice
version 28
license BSD
categories science cad
maintainers {@mguthaus ucsc.edu:mrg+openram} openmaintainer
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 2925b2af9dec0b1fcfeff6a4c9b9a9746d8bc08e \
sha256 94804fa78c8db2f90f088902e8c27f7b732a66767a58c70f37612bff5a16df66 \
size 6737636
set docdir ${prefix}/share/doc/${name}
if {${name} eq ${subport}} {
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}