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

    caml-ocamlnet  most recent diff


    version 2.2.9

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


      The caml-ocamlnet Portfile 58448 2009-09-28 20:58:01Z avsm macports.org $

      PortSystem 1.0

      Name: caml-ocamlnet
      Version: 2.2.9
      Category: devel ml
      Maintainers: landonf openmaintainer
      Description: Internet protocols and helper data structures for OCaml.
      Long Description: Internet protocols (http, cgi, email etc.) and helper data structures (mail messages, character sets, etc.) Ocamlnet implements a number of Internet protocols (http client & server, cgi and cgi variants, SunRPC, FTP, POP, SMTP) and is a strong base for web and Internet programming.

      Homepage: http://projects.camlcity.org/projects/ocamlnet.html
      Platform: darwin
      Master Sites: http://download.camlcity.org/download/

      distname ocamlnet-${version}

      Checksums: md5 3655e3be3bb2806e0a1f48bb7ce16fb3 sha1 ca073c60f86fede60d4c479e5589127010482804 rmd160 1299e1316e0547171089b0caaa9deb13c4c67c31


      depends_lib port:ocaml port:caml-findlib port:caml-pcre

      Patch Files: patch-rpcgen.diff

      post-patch {
      set ocaml_site_path [exec ocamlfind printconf destdir]
      reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" ${worksrcpath}/Makefile
      reinplace "s| CPP |${configure.cpp}|g" ${worksrcpath}/src/netplex/Makefile.pre ${worksrcpath}/src/rpc/Makefile.pre ${worksrcpath}/src/rpc-auth-dh/Makefile.pre
      }

      configure.pre_args

      build.target all opt
      use_parallel_build no

      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}"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.