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

    caml-postgresql  most recent diff


    version 1.8.2

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


      The caml-postgresql Portfile 38744 2008-07-30 02:21:39Z landonf macports.org $

      PortSystem 1.0

      Name: caml-postgresql
      Version: 1.8.2
      Revision: 1
      Category: devel ml
      Maintainers: landonf openmaintainer
      Description: OCaml-interface to the PostgreSQL-database
      Long Description: This OCaml-library provides an interface to PostgreSQL Almost all functionality available through the C-API (libpq) is replicated in a type-safe way. This library uses objects for representing database connections and results of queries.

      Homepage: http://www.ocaml.info/home/ocaml_sources.html
      Platform: darwin
      Master Sites: http://www.ocaml.info/ocaml_sources/

      distname postgresql-ocaml-${version}

      Checksums: md5 2e08be3b40c67af09cdd713538d0dd50 sha1 dcd6f0be8aa756c0233c53357ce937475c412f9c rmd160 bf590dbeb48cb7632dcb1b6a1e5734ee75b88912

      depends_lib port:ocaml port:caml-findlib port:postgresql83

      post-patch {
      set ocaml_site_path [exec ocamlfind printconf destdir]

      reinplace s|pg_config|${prefix}/lib/postgresql83/bin/pg_config|g ${worksrcpath}/Makefile.conf

      reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" ${worksrcpath}/OCamlMakefile
      }

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

      use_configure no

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.