1 | # $Id: Portfile 98499 2012-10-07 11:42:35Z mww@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup ocaml 1.0 |
---|
5 | |
---|
6 | name ocamlviz |
---|
7 | version 1.01 |
---|
8 | platforms darwin |
---|
9 | maintainers nomaintainer |
---|
10 | categories lang ml |
---|
11 | description allows monitoring of Objective Caml programs and values in real time |
---|
12 | license LGPL-2 |
---|
13 | homepage http://ocamlviz.forge.ocamlcore.org/ |
---|
14 | master_sites ${homepage} ${homepage}/doc |
---|
15 | distfiles-append manual.pdf |
---|
16 | checksums ${distname}.tar.gz \ |
---|
17 | rmd160 b82d7bb353666594120723d0b08a451f2c671630 \ |
---|
18 | sha256 82786fbb39d3d0d512e3885903fdfba1cf69b39d19582cda87a615345a6878eb\ |
---|
19 | manual.pdf \ |
---|
20 | rmd160 b346143f43a2b91f6d6626640bcc6f962ecfc878 \ |
---|
21 | sha256 d79828f5590b96ef409efe057d8afe7f33350dcffce32bbdf1a41138257fc517 |
---|
22 | |
---|
23 | long_description \ |
---|
24 | Ocamlviz allows the monitoring of Objective Caml programs \ |
---|
25 | and values in real time by using the Ocamlviz library. \ |
---|
26 | Ocamlviz can also be used as a debugging tool. |
---|
27 | |
---|
28 | depends_build port:ocaml |
---|
29 | |
---|
30 | worksrcdir ${name} |
---|
31 | |
---|
32 | configure.args --prefix ${prefix} |
---|
33 | |
---|
34 | post-patch { |
---|
35 | reinplace -locale C "s|cp -f camlp4/|mkdir \$(OCAMLLIB)/camlp4 \\&\\& cp -f camlp4/|" ${worksrcpath}/Makefile.in |
---|
36 | reinplace -locale C "s|cp -f gui.\$(OCAMLBEST)|#cp -f gui.\$(OCAMLBEST)|" ${worksrcpath}/Makefile.in |
---|
37 | } |
---|
38 | |
---|
39 | destroot.destdir prefix=${destroot}${prefix} OCAMLLIB=${destroot}${prefix}/lib/ocaml |
---|
40 | |
---|
41 | post-destroot { |
---|
42 | set destdocdir ${destroot}${prefix}/share/doc/${name} |
---|
43 | xinstall -d -m 0755 ${destdocdir} |
---|
44 | xinstall -m 0644 ${distpath}/manual.pdf ${destdocdir} |
---|
45 | } |
---|
46 | |
---|
47 | variant gui description {Include GUI} { |
---|
48 | # Need a portfile for libcairo-ocaml before commenting out |
---|
49 | #depends_lib-append port:lablgtk2 port:ocaml-libcairo-ocaml |
---|
50 | #post-patch { |
---|
51 | # reinplace -locale C "s|\$OCAMLLIB/lablgtk2|\$OCAMLLIB/site-lib/lablgtk2|" ${worksrcpath}/configure.in |
---|
52 | # reinplace -locale C "s|#cp -f gui.\$(OCAMLBEST)|cp -f gui.\$(OCAMLBEST)|" ${worksrcpath}/Makefile.in |
---|
53 | #} |
---|
54 | #use_autoreconf yes |
---|
55 | } |
---|
56 | |
---|
57 | livecheck.type regex |
---|
58 | livecheck.url ${homepage}/download.html |
---|
59 | livecheck.regex "ocamlviz-(\[0-9\.\]+).tar.gz" |
---|