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

    caml-json-wheel  most recent diff


    version 1.0.6

      View the most recent changes for the caml-json-wheel port at: caml-json-wheel.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for caml-json-wheel.
      The raw portfile for caml-json-wheel 1.0.6 is located here:
      http://caml-json-wheel.darwinports.com/dports/devel/caml-json-wheel/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-wheel


      The caml-json-wheel Portfile 59413 2009-10-14 20:13:51Z avsm macports.org $

      PortSystem 1.0

      Name: caml-json-wheel
      Version: 1.0.6
      Revision: 1
      Category: devel ml
      Maintainers: avsm openmaintainer
      Description: JSON parsing library for OCaml
      Long Description: Implements RFC4627 for parsing the JSON interchange format. Uses key/value pairs to represent objects, and lists to represent JSON arrays. Also provides pretty-print support.
      Homepage: http://martin.jambon.free.fr/json-wheel.html
      Platform: darwin
      Master Sites: http://martin.jambon.free.fr/

      distname json-wheel-${version}
      use_bzip2 yes

      Checksums: md5 8685ecee7a7416c77c14fbdf05c5a06e sha1 dea8a5b3bd580c39f3cfb3139aeca4fef653aa31 rmd160 cd31f74e67c4241dbb3e3b792440d02ea45b739b

      depends_lib port:ocaml port:caml-findlib port:caml-ocamlnet

      use_configure no
      use_parallel_build no
      destroot.env-append BINDIR=${destroot}${prefix}/bin

      livecheck.type regex
      livecheck.url http://martin.jambon.free.fr/json-wheel.html
      livecheck.regex {>json-wheel-(.*)\.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 opt

      pre-destroot {
      set ocaml_site_path [exec ocamlfind printconf destdir]
      file mkdir ${destroot}${ocaml_site_path}/stublibs
      destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}${ocaml_site_path}"
      }

      pre-activate {
      # caml-json-wheel 1.0.6_0 installed an item in ${prefix}/bin; remove it if found
      set filepath ${prefix}/bin/jsoncat
      if {[file exists ${filepath}]} {
      if {[catch {delete ${filepath}}]} {
      ui_warn "Cannot delete ${filepath}; please remove it manually"
      }
      }
      }

    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-wheel
      % sudo port install caml-json-wheel
      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-wheel
      ---> Verifying checksum for caml-json-wheel
      ---> Extracting caml-json-wheel
      ---> Configuring caml-json-wheel
      ---> Building caml-json-wheel with target all
      ---> Staging caml-json-wheel into destroot
      ---> Installing caml-json-wheel
    - 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-wheel with these commands:
      %  man caml-json-wheel
      % apropos caml-json-wheel
      % which caml-json-wheel
      % locate caml-json-wheel

     Where to find more information:

    Darwin Ports



    Lightbox this page.