Ticket #37536: Portfile.2

File Portfile.2, 2.5 KB (added by holger.waechtler@…, 10 years ago)

Portfile for ngspice-26, incorporating requested changes

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# $Id$
3
4PortSystem      1.0
5
6name            ngspice
7version         26
8license         BSD
9categories      science cad
10maintainers     nomaintainer
11platforms       darwin
12description     Circuit simulator based on Spice 3f5, XSpice and others
13long_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
20homepage        http://ngspice.sourceforge.net/
21master_sites    sourceforge:project/ngspice/ng-spice-rework/${version}
22
23checksums       rmd160  b708ef7af2f6882e04d7bb4985418b4ac0c37a3b \
24                sha256  51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108
25
26set docdir      ${prefix}/share/doc/${name}
27
28if {${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
62subport 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     
69    extract.only
70 
71    checksums           rmd160  1d708851d5e1a6feb3cf9e4e40396a0215996048 \
72                        sha256  30b4fde001d012b0350aae3ba64892fb2f315d04f6761b95abd79f4b7c4cd85d
73   
74    use_configure       no
75
76    build {}
77   
78    destroot {
79        xinstall -d ${destroot}${docdir}
80        xinstall -m 644 ${distpath}/${distname} ${destroot}${docdir}
81    }
82}