Caml-ounit version 1.0.3 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    caml-ounit  most recent diff


    version 1.0.3

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


      The caml-ounit Portfile 59418 2009-10-14 20:39:16Z avsm macports.org $

      PortSystem 1.0

      Name: caml-ounit
      Version: 1.0.3
      Category: devel ml
      Maintainers: landonf openmaintainer
      Description: Unit test framework for OCaml
      Long Description: OUnit is a unit test framework for OCaml. It allows one to easily create unit-tests for OCaml code. It is based on HUnit, a unit testing framework for Haskell. It is similar to JUnit, and other XUnit testing frameworks.

      Homepage: http://www.xs4all.nl/~mmzeeman/ocaml/
      Platform: darwin
      Master Sites: ${homepage}

      distname ounit-${version}

      Checksums: md5 e0831c33cd18fdbf7615bb053e3792b9 sha1 fd5674ba094ed8d32c11618cd22d4efa58535a76 rmd160 35496f9df16121b4246074e79df0c5396e3faba7

      depends_lib port:ocaml port:caml-findlib

      livecheck.type regex
      livecheck.regex {>ounit-(.*)\.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
      }

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

      post-destroot {
      xinstall -d -755 ${destroot}${prefix}/share/doc/${name}
      eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] ${destroot}/${prefix}/share/doc/${name}
      }

      use_configure no

      build.target allopt doc

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.