1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name ngspice |
---|
7 | version 25 |
---|
8 | license BSD |
---|
9 | categories science cad |
---|
10 | maintainers nomaintainer |
---|
11 | platforms darwin |
---|
12 | description Circuit simulator based on Spice 3f5 |
---|
13 | long_description \ |
---|
14 | Ngspice is a mixed-level/mixed-signal circuit simulator. Its \ |
---|
15 | code is based on three open source software packages: Spice3f5, \ |
---|
16 | Cider1b1 and Xspice. Ngspice is part of gEDA project, a full \ |
---|
17 | GPL'd suite of Electronic Design Automation tools. \ |
---|
18 | Note: this port does not compile the Cider module. |
---|
19 | |
---|
20 | homepage http://ngspice.sourceforge.net/ |
---|
21 | master_sites sourceforge:project/ngspice/ng-spice-rework/${version} |
---|
22 | |
---|
23 | checksums rmd160 4079fd072a6605a8517ef5306e951a2085e9de27 \ |
---|
24 | sha256 d000bbb978db846ff6df7ce327d8194abe046fdd5c93e7cba23c484137ef140e |
---|
25 | |
---|
26 | set docdir ${prefix}/share/doc/${name} |
---|
27 | |
---|
28 | if {${name} == ${subport}} { |
---|
29 | depends_lib port:libedit |
---|
30 | |
---|
31 | configure.args --enable-cider \ |
---|
32 | --enable-xspice \ |
---|
33 | --enable-pss \ |
---|
34 | --with-editline \ |
---|
35 | --enable-debug=no |
---|
36 | |
---|
37 | post-destroot { |
---|
38 | xinstall -d ${destroot}${docdir} |
---|
39 | xinstall -m 644 -W ${worksrcpath} \ |
---|
40 | ANALYSES \ |
---|
41 | AUTHORS \ |
---|
42 | BUGS \ |
---|
43 | COPYING \ |
---|
44 | ChangeLog \ |
---|
45 | DEVICES \ |
---|
46 | FAQ \ |
---|
47 | NEWS \ |
---|
48 | README \ |
---|
49 | Stuarts_Poly_Notes \ |
---|
50 | ${destroot}${docdir} |
---|
51 | } |
---|
52 | |
---|
53 | variant manual description {Legacy compatibility variant} { |
---|
54 | depends_run-append port:ngspice-docs |
---|
55 | } |
---|
56 | |
---|
57 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|
58 | } else { |
---|
59 | livecheck.type none |
---|
60 | } |
---|
61 | |
---|
62 | subport ngspice-docs { |
---|
63 | supported_archs noarch |
---|
64 | description PDF manual for ngspice |
---|
65 | long_description ${description} |
---|
66 | |
---|
67 | distname ${name}-${version}-manual.pdf |
---|
68 | extract.suffix .gz |
---|
69 | |
---|
70 | checksums rmd160 9cbf607ca18626b2b3161a8168d052e7417b28b8 \ |
---|
71 | sha256 fd8771ccb8756dda85173a6123de828dd0eb7a79ee0ee6bcbcc1e1f966acde29 |
---|
72 | |
---|
73 | extract.only |
---|
74 | |
---|
75 | use_configure no |
---|
76 | |
---|
77 | build {} |
---|
78 | |
---|
79 | destroot { |
---|
80 | xinstall -d ${destroot}${docdir} |
---|
81 | system "gzcat ${distpath}/${distfiles} > ${destroot}${docdir}/${name}-manual.pdf" |
---|
82 | } |
---|
83 | } |
---|