Ticket #55900: Portfile

File Portfile, 2.7 KB (added by mguthaus (Matt Guthaus), 6 years ago)

Updated Portfile with new version and hashes

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