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

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

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-json-wheel/Portfile devel/caml-json-wheel/Portfile
    old new  
     1# $Id$
     2
     3PortSystem          1.0
     4
     5name                caml-json-wheel
     6version             1.0.6
     7categories          devel ml
     8maintainers         anil@recoil.org
     9description         JSON parsing library for OCaml
     10long_description    Implements RFC4627 for parsing the JSON interchange format.\
     11                    Uses key/value pairs to represent objects, and lists to \
     12                    represent JSON arrays.  Also provides pretty-print support.
     13homepage            http://martin.jambon.free.fr/json-wheel.html
     14platforms           darwin
     15master_sites        http://martin.jambon.free.fr/
     16
     17distname            json-wheel-${version}
     18use_bzip2           yes
     19
     20checksums           md5 8685ecee7a7416c77c14fbdf05c5a06e \
     21                    sha1 dea8a5b3bd580c39f3cfb3139aeca4fef653aa31 \
     22                    rmd160 cd31f74e67c4241dbb3e3b792440d02ea45b739b
     23
     24depends_lib         port:ocaml \
     25                    port:caml-findlib \
     26                    port:caml-ocamlnet
     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 opt
     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}