[20888] trunk/dports/devel

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 7 14:27:06 PST 2006


Revision: 20888
          http://trac.macosforge.org/projects/macports/changeset/20888
Author:   jmpp at macports.org
Date:     2006-12-07 14:27:05 -0800 (Thu, 07 Dec 2006)

Log Message:
-----------

New Port: caml-pcre, by Kevin Ballard, thanks! Closes #11112.

Added Paths:
-----------
    trunk/dports/devel/caml-pcre/
    trunk/dports/devel/caml-pcre/Portfile
    trunk/dports/devel/caml-pcre/files/
    trunk/dports/devel/caml-pcre/files/patch-Makefile.conf
    trunk/dports/devel/caml-pcre/files/patch-OCamlMakefile

Added: trunk/dports/devel/caml-pcre/Portfile
===================================================================
--- trunk/dports/devel/caml-pcre/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-pcre/Portfile	2006-12-07 22:27:05 UTC (rev 20888)
@@ -0,0 +1,64 @@
+PortSystem 1.0
+
+name                caml-pcre
+version             5.11.2
+categories          devel
+maintainers         kevin at sb.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
+platforms           darwin
+master_sites        http://www.ocaml.info/ocaml_sources/
+
+checksums           sha1 2a9f44165670a4fc81d9a13f4f7192ebc5a96b71 \
+                    md5 ba3ad47c971ef1eb7f5b7006462f321f
+distfiles           pcre-ocaml-${version}.tar.bz2
+worksrcdir          pcre-ocaml-${version}
+use_bzip2           yes
+
+depends_lib         bin:caml4p:ocaml bin:ocamlfind:caml-findlib lib:pcre:pcre
+
+patchfiles          patch-OCamlMakefile patch-Makefile.conf
+
+configure {}
+
+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
+        cd $worksrcpath
+        if {[string equal [lindex [array get variations doc] end] +]} then {
+            file copy lib/doc/pcre [ocamlfind_destdir]/pcre/pcre-doc
+        }
+        if {[string equal [lindex [array get variations examples] end] +]} then {
+            file copy 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
+}


Property changes on: trunk/dports/devel/caml-pcre/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/devel/caml-pcre/files/patch-Makefile.conf
===================================================================
--- trunk/dports/devel/caml-pcre/files/patch-Makefile.conf	                        (rev 0)
+++ trunk/dports/devel/caml-pcre/files/patch-Makefile.conf	2006-12-07 22:27:05 UTC (rev 20888)
@@ -0,0 +1,8 @@
+--- Makefile.conf.orig	2006-12-06 18:48:26.000000000 -0500
++++ Makefile.conf	2006-12-06 18:48:53.000000000 -0500
+@@ -1,3 +1,3 @@
+ # export STATIC = yes
+-# export INCDIRS := /usr/include/pcre
+-# export LIBDIRS :=
++export INCDIRS := ##PREFIX##/include
++export LIBDIRS := ##PREFIX##/lib


Property changes on: trunk/dports/devel/caml-pcre/files/patch-Makefile.conf
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/dports/devel/caml-pcre/files/patch-OCamlMakefile
===================================================================
--- trunk/dports/devel/caml-pcre/files/patch-OCamlMakefile	                        (rev 0)
+++ trunk/dports/devel/caml-pcre/files/patch-OCamlMakefile	2006-12-07 22:27:05 UTC (rev 20888)
@@ -0,0 +1,11 @@
+--- OCamlMakefile.orig	2006-12-06 17:51:53.000000000 -0500
++++ OCamlMakefile	2006-12-06 17:52:08.000000000 -0500
+@@ -89,7 +89,7 @@
+ 
+ export OCAMLDOCFLAGS
+ 
+-export OCAMLFIND_INSTFLAGS
++export OCAMLFIND_INSTFLAGS = ##OCAMLFIND_INSTFLAGS##
+ 
+ export DVIPSFLAGS
+ 


Property changes on: trunk/dports/devel/caml-pcre/files/patch-OCamlMakefile
___________________________________________________________________
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061207/733e1017/attachment.html


More information about the macports-changes mailing list