Ticket #51169: Portfile.5

File Portfile.5, 2.5 KB (added by AlshammariA, 8 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# $Id$
3
4PortSystem          1.0
5
6name                civl
7version             1.7
8set rev              3157
9categories          devel
10platforms           darwin
11maintainers         udel.edu:aturqi openmaintainer
12description         The Concurrency Intermediate Verification Language
13long_description    The CIVL platform encompasses: \
14                    (1) the programming language CIVL-C, a dialect of C with additional primitives \
15                        supporting concurrency, specification, and modeling \
16                    (2) verification and analysis tools, including a symbolic execution-based model \
17                        checker for checking various properties of, or finding defects in, CIVL-C programs \
18                    (3) tools that translate from many commonly used languages/APIs \
19                        to CIVL-C, including MPI, OpenMP, CUDA, and Pthreads.
20license             GPL-3+
21homepage            http://vsl.cis.udel.edu/civl
22distname            CIVL-${version}_${rev}
23extract.suffix      .tgz
24master_sites        http://vsl.cis.udel.edu/lib/sw/${name}/${version}/r${rev}/release
25checksums           rmd160 58e69db8ae9542905789cd5a62f50dfdafd34f09 \
26                    sha256 49ed0467ea281bf5a436b2caf4f87862d3f613fa9e6e746ce52cfd409c3f4403
27depends_lib         port:cvc4 \
28                     port:z3
29use_configure       no
30
31set docdir ${prefix}/share/doc/${name}
32set javadir ${prefix}/share/java/${name}
33set examplesdir ${prefix}/share/examples/${name}
34
35post-patch {
36    reinplace "s|/opt/CIVL-${version}_${rev}/lib|${prefix}/share/java/civl|g" ${worksrcpath}/bin/civl
37}
38
39build {}
40
41destroot {
42    xinstall -m 0755 -W ${worksrcpath}/bin civl ${destroot}/${prefix}/bin/
43    xinstall -d ${destroot}${prefix}/share/java/civl
44    xinstall -m 0644 -W ${worksrcpath}/lib civl-${version}_${rev}.jar ${destroot}/${prefix}/share/java/civl/
45    xinstall -d ${destroot}${docdir}
46    xinstall -m 0644 -W ${worksrcpath} \
47    README \
48    ${destroot}${docdir}
49    xinstall -m 0644 -W ${worksrcpath}/doc \
50    civl-manual.pdf \
51    ${destroot}${docdir}
52    xinstall -m 0644 -W ${worksrcpath}/licenses \
53    LICENSE.antlr-3.txt \
54    LICENSE.antlr-4.txt \
55    LICENSE.civl.txt \
56    ${destroot}${docdir}
57
58    xinstall -d ${destroot}${javadir}
59    xinstall -m 0644 -W ${worksrcpath}/lib \
60    civl-${version}_${rev}.jar \
61    ${destroot}${javadir}
62
63    xinstall -d ${destroot}${examplesdir}
64    copy ${worksrcpath}/examples ${destroot}${examplesdir}
65}