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