Ticket #51094: Portfile.3

File Portfile.3, 2.2 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
5PortGroup           github 1.0
6
7github.setup        Z3Prover z3 4.4.1 z3-
8categories          math devel
9platforms           darwin
10maintainers         nomaintainer
11license             MIT
12
13description         A high-performance theorem prover being developed at Microsoft Research. \
14
15long_description    Z3 is a state-of-the art theorem prover from Microsoft Research. It can be \
16                    used to check the satisfiability of logical formulas over one or more theories. \
17                    Z3 offers a compelling match for software analysis and verification tools, \
18                    since several common software constructs map directly into supported theories.
19
20checksums           rmd160  679774156c28c2eee366f72f379552d7c039a8fd \
21                    sha256  d0a5833a2ebbff5dc82fb8ff0065f9c39ba884862c690479fade606a62d0808c
22
23use_parallel_build  no
24
25depends_build-append  port:python27
26depends_lib-append    port:python27
27
28patchfiles          mk_util.py.diff
29
30set python_prefix [exec ${prefix}/bin/python2.7-config --prefix]
31
32post-patch {
33    reinplace "s|@PYTHON_PACKAGE_DIR@|${destroot}${python_prefix}/lib/python2.7/site-packages|" \
34        ${worksrcpath}/scripts/mk_util.py
35}
36
37# here is the recommended installation sequence:
38# CXX=clang++ CC=clang python scripts/mk_make.py --prefix=${worksrcpath}
39# cd build
40# make
41
42configure.cmd       ${prefix}/bin/python2.7
43configure.pre_args  {}
44# --prefix=${destroot}${python_prefix}/Python
45configure.args      scripts/mk_make.py \
46                    --prefix=${destroot}${prefix}
47
48build.args-append   CC=${configure.cc} \
49                    CXX=${configure.cxx} \
50                    CPP=${configure.cpp}
51# build.pre_args ${makearg} all
52build {
53    build.dir ${worksrcpath}/build
54    command_exec build
55}
56
57post-destroot {
58    set docdir ${prefix}/share/doc/${name}
59    xinstall -d ${destroot}${docdir}
60    xinstall -m 0644 -W ${worksrcpath} \
61        LICENSE.txt \
62        README \
63        RELEASE_NOTES \
64        ${destroot}${docdir}
65
66    copy ${worksrcpath}/examples ${destroot}${docdir}
67}