caml-pcre version 5.12.2 for Mac OS X 10.5 Leopard
Sunday the 11th of May, 2008

    caml-pcre  most recent diff


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



      # $Id: Portfile 30987 2007-11-13 08:34:51Z eridius macports.org $

      PortSystem 1.0

      Name: caml-pcre
      Version: 5.12.2
      Category: devel ml
      Maintainers: eridius macports.org
      Description: Perl compatibility regular expressions for OCaml
      Long Description: This OCaml-library interfaces the PCRE (Perl-compatibility regular expressions) library which is written in C. it can be used for matching regular expressions which are written in PERL-style. Searching for, replacing or splitting text should become much easier with this library.

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

      checksums sha1 03d29cc16751f79be2a3d06d544864cc1bee7cc9 md5 dbe759392f1c1d22cb96b9136ebf4ec4
      distfiles pcre-ocaml-${version}.tar.bz2
      worksrcdir pcre-ocaml-${version}
      use_bzip2 yes

      livecheck.check regex
      livecheck.regex "pcre-ocaml-(.*?).tar.gz"

      depends_lib bin:camlp4:ocaml bin:ocamlfind:caml-findlib lib:pcre:pcre

      patchfiles patch-OCamlMakefile patch-Makefile.conf

      use_configure no

      proc ocamlfind_destdir {} {
      # only bother calculating this darn thing once
      variable ocamlfind_destdir {}
      variable destroot
      variable prefix
      if {![string length $ocamlfind_destdir]} {
      set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
      }
      return $ocamlfind_destdir
      }

      pre-build {
      file mkdir [ocamlfind_destdir]
      reinplace "s|##OCAMLFIND_INSTFLAGS##|-destdir '[ocamlfind_destdir]' -metadir ''|" ${worksrcpath}/OCamlMakefile
      reinplace "s|##PREFIX##|${prefix}|g" ${worksrcpath}/Makefile.conf
      }

      post-destroot {
      # install the doc/examples dirs if we built them
      if {[variant_isset doc]} then {
      file copy ${worksrcpath}/lib/doc/pcre [ocamlfind_destdir]/pcre/pcre-doc
      }
      if {[variant_isset examples]} then {
      file copy ${worksrcpath}/examples [ocamlfind_destdir]/pcre/pcre-examples
      }
      }

      Variant: doc {
      build.target-append doc
      depends_lib-append port:ghostscript port:teTeX
      }

      Variant: examples {
      build.target-append examples
      }

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

     Where to find more information:

    Darwin Ports



    image test