source: trunk/dports/devel/ocaml-extlib/Portfile @ 136663

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

ocaml-extlib: Add missing build dependency ocaml-camlp4 for camlp4of binary, openmaintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 136663 2015-05-23 17:44:58Z cal@macports.org $
2
3PortSystem 1.0
4
5name                ocaml-extlib
6version             1.6.1
7categories          devel ml
8maintainers         mww openmaintainer
9license             LGPL-2.1
10description         Extended Standard Library for OCaml
11long_description    A User-supported Extended Standard Library for OCaml
12homepage            http://code.google.com/p/ocaml-extlib/
13platforms           darwin
14master_sites        googlecode:ocaml-extlib
15
16checksums           rmd160  4d92f55e71ee6effe58b07126458caa118472aa3 \
17                    sha256  88d4b3638cb4da4e04d81ba157e7235e744373c5784cf4b906570d07b890aeca
18distname            extlib-${version}
19
20depends_build       port:ocaml-camlp4
21depends_lib         port:ocaml port:ocaml-findlib
22
23patchfiles          patch-install.ml
24
25use_configure       no
26
27build {}
28
29destroot.cmd        "${prefix}/bin/ocaml"
30destroot.pre_args   install.ml
31destroot.args       -b -n -doc -min
32destroot.post_args
33
34pre-destroot {
35        set extlib_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
36        xinstall -m 755 -d ${extlib_destdir}
37        reinplace s|##PREFIX##|${prefix}| ${worksrcpath}/install.ml
38        reinplace s|##DESTDIR##|${extlib_destdir}| ${worksrcpath}/install.ml
39}
40
41post-destroot {
42    xinstall -m 755 -d ${destroot}${prefix}/share/doc
43    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
44}
Note: See TracBrowser for help on using the repository browser.