Ticket #18786: devel--caml-json-static.patch

File devel--caml-json-static.patch, 1.9 KB (added by Damien.Pollet@…, 16 years ago)
  • devel/caml-json-static/Portfile

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-json-static/Portfile devel/caml-json-static/Portfile
    old new  
     1# $Id$
     2
     3PortSystem          1.0
     4
     5name                caml-json-static
     6version             0.9.6
     7categories          devel ml
     8maintainers         anil@recoil.org
     9description         JSON validator and type converter for OCaml
     10long_description    This library converts parsed JSON data with an unchecked structure \
     11                    into specialized OCaml types and vice-versa. It is a complement to \
     12                    the caml-json-wheel package which provides a parser and pretty-printer.
     13homepage            http://martin.jambon.free.fr/json-static.html
     14platforms           darwin
     15master_sites        http://martin.jambon.free.fr/
     16
     17distname            json-static-${version}
     18use_bzip2           yes
     19
     20checksums           md5 7ffc8c00353a6fc14fde490c4edeb1d0 \
     21                    sha1 f1b032ac702acb5b421075b25d3910b23268a1cc \
     22                    rmd160 dd5d84992fd68c1230e1e8b6e26707324d491f78
     23
     24depends_lib         port:ocaml \
     25                    port:caml-findlib \
     26                    port:caml-json-wheel
     27
     28use_configure       no
     29
     30post-patch {
     31    set ocaml_site_path [exec ocamlfind printconf destdir]
     32    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
     33                    ${worksrcpath}/Makefile
     34}
     35
     36build.target        all
     37
     38pre-destroot {
     39    set ocaml_site_path [exec ocamlfind printconf destdir]
     40    file mkdir ${destroot}/${ocaml_site_path}/stublibs
     41}
     42
     43pre-destroot {
     44    destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}/[exec ${prefix}/bin/ocamlfind printconf destdir]"
     45}