source: trunk/dports/devel/ocaml-react/Portfile @ 131478

Last change on this file since 131478 was 131478, checked in by ryandesign@…, 4 years ago

ocaml-react: simplify destroot by using xinstall's -W argument

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 131478 2015-01-12 17:25:59Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           ocaml 1.0
5
6name                ocaml-react
7version             1.2.0
8revision            1
9categories          devel ml
10license             BSD
11maintainers         mww openmaintainer
12description         Functional reactive progreamming for OCaml
13long_description    React is an OCaml module for functional reactive programming (FRP).\
14                    It provides support to program with time varying values : applicative \
15                    events and signals. React doesn't define any primitive event or signal, \
16                    this lets the client chooses the concrete timeline.
17homepage            http://erratique.ch/software/react
18platforms           darwin
19
20master_sites        http://erratique.ch/software/react/releases/
21use_bzip2           yes
22extract.suffix      .tbz
23distname            react-${version}
24
25depends_build       port:ocaml-findlib
26depends_lib         port:ocaml
27
28checksums           rmd160  07a2621d5bef6c6509b80d7385393fbcded5139c \
29                    sha256  887aaea9191870bc0f37f945c02ec4c90497d949cd4dedc3d565c3fbec7ad04e
30
31use_configure       no
32
33build {
34  # from 'opam'
35  system -W ${worksrcpath} "${ocaml} pkg/git.ml"
36  system -W ${worksrcpath} "${ocaml} pkg/build.ml native=true native-dynlink=true"
37}
38
39livecheck.type      regex
40livecheck.url       http://erratique.ch/software/react/releases/
41livecheck.regex     react-(\[0-9.\]+)${extract.suffix}
42
43set docdir ${destroot}${prefix}/share/doc/${name}
44set libdir ${destroot}${ocamlfind_dir}/react
45destroot {
46  # from 'react.install'
47  xinstall -m 0755 -d ${docdir} ${libdir}
48  xinstall -m 0644 -W ${worksrcpath}/_build \
49    CHANGES.md \
50    README.md \
51    ${docdir}
52  xinstall -m 0644 -W ${worksrcpath}/_build \
53    pkg/META \
54    src/react.a \
55    src/react.cma \
56    src/react.cmi \
57    src/react.cmti \
58    src/react.cmx \
59    src/react.cmxa \
60    src/react.cmxs \
61    src/react.mli \
62    src/react_top.a \
63    src/react_top.cma \
64    src/react_top.cmxa \
65    src/react_top.cmxs \
66    ${libdir}
67}
Note: See TracBrowser for help on using the repository browser.