source: trunk/dports/devel/ocaml-json-static/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
4
5name                ocaml-json-static
6version             0.9.8
7revision            4
8categories          devel ml
9license             BSD
10maintainers         mww openmaintainer
11description         JSON validator and type converter for OCaml
12long_description    This library converts parsed JSON data with an unchecked structure \
13                    into specialized OCaml types and vice-versa. It is a complement to \
14                    the caml-json-wheel package which provides a parser and pretty-printer.
15homepage            http://martin.jambon.free.fr/json-static.html
16platforms           darwin
17master_sites        http://martin.jambon.free.fr/
18
19distname            json-static-${version}
20use_bzip2           yes
21
22checksums           rmd160  8f6a9e886ddd5beff91a263b967a3c6ab95d0806 \
23                    sha256  fd7a8b741e0a19f145add564dd1ea0e1cdc03d2710e051a5cd26a25126563ddd
24
25depends_lib         port:ocaml \
26                    port:ocaml-findlib \
27                    port:ocaml-json-wheel
28
29use_configure       no
30use_parallel_build  no
31
32livecheck.type      regex
33livecheck.url       http://martin.jambon.free.fr/json-static.html
34livecheck.regex     {>json-static-(.*)\.tar\.gz}
35
36post-patch {
37    set ocaml_site_path [exec ocamlfind printconf destdir]
38    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
39                    ${worksrcpath}/Makefile
40}
41
42build.target        all
43
44pre-destroot {
45    set ocaml_site_path [exec ocamlfind printconf destdir]
46    file mkdir ${destroot}/${ocaml_site_path}/stublibs
47}
48
49pre-destroot {
50    destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}/[exec ${prefix}/bin/ocamlfind printconf destdir]"
51}
Note: See TracBrowser for help on using the repository browser.