source: trunk/dports/lang/ocaml-js_of_ocaml/Portfile

Last change on this file was 137992, checked in by mww@…, 2 years ago

inc. revision to rebuild library dependents of ocaml (ocaml update to version 4.02.2)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           ocaml 1.0
5
6name                ocaml-js_of_ocaml
7version             1.3.2
8revision            3
9categories          lang devel www ml
10platforms           darwin
11license             LGPL-2
12maintainers         mww openmaintainer
13description         Js_of_ocaml is a compiler of OCaml bytecode to Javascript
14long_description    \
15    Js_of_ocaml is a compiler of OCaml bytecode to Javascript. It makes it \
16    possible to run Ocaml programs in a Web browser.
17homepage            http://ocsigen.org/js_of_ocaml/
18master_sites        http://ocsigen.org/download/
19distname            js_of_ocaml-${version}
20checksums           rmd160  e79ec4bab7976d76e9573c2edb7f61f0bdcd9818 \
21                    sha256  5996d2a9bc32121186e1964af557bb411eb5a27aa155d2c6a8a144ee5f3d0c36
22
23depends_lib         port:ocaml port:ocaml-findlib port:ocaml-deriving-ocsigen port:ocaml-lwt
24
25configure {
26    reinplace "s|ocamlfind|${ocamlfind_wrapper}|g" ${worksrcpath}/Makefile
27}
28
29use_parallel_build  no
30build.target        all doc
31build.args          BINDIR=${prefix}/bin
32
33destroot.destdir    BINDIR=${destroot}${prefix}/bin
34
35post-destroot {
36    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
37    xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE README TODO.txt VERSION \
38        ${destroot}${prefix}/share/doc/${name}
39    file copy ${worksrcpath}/doc/api-html \
40        ${destroot}${prefix}/share/doc/${name}/api
41    xinstall -m 755 -d ${destroot}${prefix}/share/examples
42    file copy ${worksrcpath}/examples \
43        ${destroot}${prefix}/share/examples/${name}
44}
45
46livecheck.url       http://ocsigen.org/js_of_ocaml/install
47livecheck.type      regex
48livecheck.regex     js_of_ocaml-(\[0-9\\.\]+)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.