Ticket #55721: Portfile

File Portfile, 3.2 KB (added by mguthaus (Matt Guthaus), 6 years ago)
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
4PortGroup           active_variants 1.1
5PortGroup           conflicts_build 1.0
6
7# Please keep the magic and magic-devel ports as similar as possible.
8
9name                netgen-lvs
10version             1.5.91
11set branch          [join [lrange [split ${version} .] 0 1] .]
12categories          science
13# mostly very permissively licensed, but includes a copy of GNU readline
14license             GPL-2+
15maintainers         ucsc.edu:mrg
16description         Netgen netlist comparison (LVS) and netlist manipulation
17
18long_description    Netgen is a tool for comparing netlists, a process known as LVS, \
19                    which stands for Layout vs. Schematic. This is an important step \
20                    in the integrated circuit design flow, ensuring that the geometry \
21                    that has been laid out matches the expected circuit. Very small \
22                    circuits can bypass this step by confirming circuit operation \
23                    through extraction and simulation. Very large digital circuits are \
24                    usually generated by tools from high-level descriptions, using \
25                    compilers that ensure the correct layout geometry. The greatest \
26                    need for LVS is in large analog or mixed-signal circuits that \
27                    cannot be simulated in reasonable time. Even for small circuits, \
28                    LVS can be done much faster than simulation, and provides feedback \
29                    that makes it easier to find an error than does a simulation.
30
31platforms           darwin
32
33homepage            http://opencircuitdesign.com/netgen
34master_sites        ${homepage}archive/
35
36
37dist_subdir         netgen-lvs
38distname            netgen-${version}
39extract.suffix      .tgz
40
41checksums           ${distname}${extract.suffix} \
42                    rmd160  1136290bd8e44569c750a04c275533b86f5da709 \
43                    sha256  e9b6530b6b8945c210e790656b0cc16907889fa6758d38e200dbbbdfbe330eb1 \
44                    patch-netgen-1.5.91.diff \
45                    rmd160  c7fac23e33f8cb9b0a3b75558dfa6405cbec3c21 \
46                    sha256  918bd4afc5175a34e74dcd371c7ce27138d597834d1b6c6d1f64a136372cc138
47
48depends_lib         port:tcl \
49                    port:tk
50
51require_active_variants tk x11
52
53
54universal_variant   no
55
56conflicts_build     gnome-keyring
57
58use_autoreconf      yes
59autoreconf.dir      ${worksrcpath}/scripts
60
61patch_sites         http://users.soe.ucsc.edu/~mrg/
62patchfiles          patch-netgen-${version}.diff
63patch.pre_args      -p1
64
65use_parallel_build  no
66
67configure.args       --with-tk=${prefix} --with-tcl=${prefix}
68
69build.env           X11_LDFLAGS=-L${prefix}/lib
70
71post-build {
72    # The build and install don't notice when essential files don't get built,
73    # so we must exit for it when it fails. #32934
74    foreach f {netgen/tclnetgen.dylib} {
75        if {![file exists ${worksrcpath}/${f}]} {
76            return -code error "${f} did not get built"
77        }
78    }
79}
80
81livecheck.type      regex
82livecheck.url       [lindex ${master_sites} 0]
83livecheck.regex     netgen-lvs-(${branch}\\.\[0-9.\]+)${extract.suffix}