Caml-json-static version 0.9.8 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    caml-json-static  most recent diff


    version 0.9.8

      View the most recent changes for the caml-json-static port at: caml-json-static.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for caml-json-static.
      The raw portfile for caml-json-static 0.9.8 is located here:
      http://caml-json-static.darwinports.com/dports/devel/caml-json-static/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/caml-json-static


      The caml-json-static Portfile 59414 2009-10-14 20:15:00Z avsm macports.org $

      PortSystem 1.0

      Name: caml-json-static
      Version: 0.9.8
      Category: devel ml
      Maintainers: avsm openmaintainer
      Description: JSON validator and type converter for OCaml
      Long Description: This library converts parsed JSON data with an unchecked structure into specialized OCaml types and vice-versa. It is a complement to the caml-json-wheel package which provides a parser and pretty-printer.
      Homepage: http://martin.jambon.free.fr/json-static.html
      Platform: darwin
      Master Sites: http://martin.jambon.free.fr/

      distname json-static-${version}
      use_bzip2 yes

      Checksums: md5 a8b586a4c7851f5e34c28da60ebf8904 sha1 4bbcc49340e1f23af6f59fc41eb687e32de7350a rmd160 8f6a9e886ddd5beff91a263b967a3c6ab95d0806

      depends_lib port:ocaml port:caml-findlib port:caml-json-wheel

      use_configure no
      use_parallel_build no

      livecheck.type regex
      livecheck.url http://martin.jambon.free.fr/json-static.html
      livecheck.regex {>json-static-(.*)\.tar\.gz}

      post-patch {
      set ocaml_site_path [exec ocamlfind printconf destdir]
      reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" ${worksrcpath}/Makefile
      }

      build.target all

      pre-destroot {
      set ocaml_site_path [exec ocamlfind printconf destdir]
      file mkdir ${destroot}/${ocaml_site_path}/stublibs
      }

      pre-destroot {
      destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}/[exec ${prefix}/bin/ocamlfind printconf destdir]"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/caml-json-static
      % sudo port install caml-json-static
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching caml-json-static
      ---> Verifying checksum for caml-json-static
      ---> Extracting caml-json-static
      ---> Configuring caml-json-static
      ---> Building caml-json-static with target all
      ---> Staging caml-json-static into destroot
      ---> Installing caml-json-static
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using caml-json-static with these commands:
      %  man caml-json-static
      % apropos caml-json-static
      % which caml-json-static
      % locate caml-json-static

     Where to find more information:

    Darwin Ports



    Lightbox this page.