Ticket #40224: Portfile

File Portfile, 2.2 KB (added by someuser12, 11 years ago)
Line 
1# $Id: Portfile 98499 2012-10-07 11:42:35Z mww@macports.org $
2
3PortSystem        1.0
4PortGroup         ocaml 1.0
5
6name                ocamlviz
7version             1.01
8platforms           darwin
9maintainers         nomaintainer
10categories          lang ml
11description         allows monitoring of Objective Caml programs and values in real time
12license             LGPL-2
13homepage            http://ocamlviz.forge.ocamlcore.org/
14master_sites        ${homepage} ${homepage}/doc
15distfiles-append    manual.pdf
16checksums           ${distname}.tar.gz \
17                    rmd160  b82d7bb353666594120723d0b08a451f2c671630 \
18                    sha256  82786fbb39d3d0d512e3885903fdfba1cf69b39d19582cda87a615345a6878eb\
19                    manual.pdf \
20                    rmd160  b346143f43a2b91f6d6626640bcc6f962ecfc878 \
21                    sha256  d79828f5590b96ef409efe057d8afe7f33350dcffce32bbdf1a41138257fc517
22
23long_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
28depends_build       port:ocaml
29
30worksrcdir          ${name}
31
32configure.args      --prefix ${prefix}
33
34post-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
39destroot.destdir prefix=${destroot}${prefix} OCAMLLIB=${destroot}${prefix}/lib/ocaml
40
41post-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
47variant 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
57livecheck.type      regex
58livecheck.url       ${homepage}/download.html
59livecheck.regex     "ocamlviz-(\[0-9\.\]+).tar.gz"