[38694] trunk/dports/devel

landonf at macports.org landonf at macports.org
Mon Jul 28 18:29:00 PDT 2008


Revision: 38694
          http://trac.macosforge.org/projects/macports/changeset/38694
Author:   landonf at macports.org
Date:     2008-07-28 18:29:00 -0700 (Mon, 28 Jul 2008)
Log Message:
-----------
Type-safe OCaml-interface to the PostgreSQL-database

Added Paths:
-----------
    trunk/dports/devel/caml-pgocaml/
    trunk/dports/devel/caml-pgocaml/Portfile
    trunk/dports/devel/caml-pgocaml/files/
    trunk/dports/devel/caml-pgocaml/files/patch-Makefile

Added: trunk/dports/devel/caml-pgocaml/Portfile
===================================================================
--- trunk/dports/devel/caml-pgocaml/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-pgocaml/Portfile	2008-07-29 01:29:00 UTC (rev 38694)
@@ -0,0 +1,46 @@
+# $Id: $
+
+PortSystem          1.0
+
+name                caml-pgocaml
+version             1.1
+categories          devel ocaml
+maintainers         landonf openmaintainer
+description         Type-safe OCaml-interface to the PostgreSQL-database
+long_description    PG'OCaml is a type-safe, simple interface to PostgreSQL \
+                    from OCaml. It lets you embed SQL statements directly \
+                    into OCaml code.
+
+homepage            http://developer.berlios.de/projects/pgocaml/
+platforms           darwin
+master_sites        http://download.berlios.de/pgocaml/
+
+distname            pgocaml-${version}
+
+checksums           md5 e52d0f88b4ce850aa592a033c7e7b64d \
+                    sha1 6f0daa89777a8b93380ad0857b50efc996df322e \
+                    rmd160 625caad4c1f5eeda00374f34a1bbe1ce06ee066b
+
+depends_lib         port:ocaml \
+                    port:caml-findlib \
+                    port:caml-calendar \
+                    port:caml-csv \
+                    port:caml-pcre
+
+patchfiles          patch-Makefile
+
+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}
+}
+
+destroot.target     findlib_install
+
+use_configure        no

Added: trunk/dports/devel/caml-pgocaml/files/patch-Makefile
===================================================================
--- trunk/dports/devel/caml-pgocaml/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/devel/caml-pgocaml/files/patch-Makefile	2008-07-29 01:29:00 UTC (rev 38694)
@@ -0,0 +1,22 @@
+--- Makefile.orig	2007-12-17 18:15:17.332386495 -0500
++++ Makefile	2007-12-17 18:19:21.926038900 -0500
+@@ -36,7 +36,7 @@
+ OBJS	:= pGOCaml_config.cmo pGOCaml.cmo
+ XOBJS	:= $(OBJS:.cmo=.cmx)
+ 
+-all:	pGOCaml_config.ml pgocaml.cma pgocaml.cmxa pa_pgsql.cmo test_pgocaml_lowlevel$(EXECUTABLE_SUFFIX) test_pgocaml$(EXECUTABLE_SUFFIX) pgocaml_prof$(EXECUTABLE_SUFFIX) META
++all:	pGOCaml_config.ml pgocaml.cma pgocaml.cmxa pa_pgsql.cmo pgocaml_prof$(EXECUTABLE_SUFFIX) META
+ 
+ test_pgocaml_lowlevel$(EXECUTABLE_SUFFIX): test_pgocaml_lowlevel.cmo pgocaml.cma
+ 	ocamlfind ocamlc $(OCAMLCFLAGS) $(OCAMLCPACKAGES) $(OCAMLCLIBS) \
+@@ -114,8 +114,8 @@
+ 
+ .depend: pGOCaml_config.ml
+ 	rm -f .depend
+-	ocamldep pGOCaml.mli pGOCaml.ml test_pgocaml_lowlevel.ml > $@
+-	-ocamldep -pp "camlp4o $(FOR_P4) ./pa_pgsql.cmo" test_pgocaml.ml >> $@
++	ocamldep pGOCaml.mli pGOCaml.ml > $@
++	-ocamldep -pp "camlp4o $(FOR_P4) ./pa_pgsql.cmo" >> $@
+ 
+ ifeq ($(wildcard .depend),.depend)
+ include .depend
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080728/65fefc96/attachment.html 


More information about the macports-changes mailing list