summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2008-05-12 22:18:23 +0000
committerstas <stas@FreeBSD.org>2008-05-12 22:18:23 +0000
commit1a449123e15705c2132659fd9596aa6bc8dba8dc (patch)
treea8f01d9d572a39ecb90959a707461b7b1ddab5fd /databases
parent08706deae57f58a410d2bb2752aff0460e739b32 (diff)
downloadFreeBSD-ports-1a449123e15705c2132659fd9596aa6bc8dba8dc.zip
FreeBSD-ports-1a449123e15705c2132659fd9596aa6bc8dba8dc.tar.gz
- Add databases/ocaml-pgocaml.
PG'OCaml is a type-safe, simple interface to PostgreSQL from OCaml. It lets you embed SQL statements directly into OCaml code. PR: ports/118800 Submitted by: Jaap Boender <jaapb at kerguelen.org>
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/ocaml-pgocaml/Makefile29
-rw-r--r--databases/ocaml-pgocaml/distinfo3
-rw-r--r--databases/ocaml-pgocaml/files/patch-Makefile36
-rw-r--r--databases/ocaml-pgocaml/pkg-descr4
5 files changed, 73 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 95b242e..0abf6f2 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -182,6 +182,7 @@
SUBDIR += mytop
SUBDIR += mywwwatcher
SUBDIR += namazu2
+ SUBDIR += ocaml-pgocaml
SUBDIR += ocaml-sqlite3
SUBDIR += opendbx
SUBDIR += oracle7-client
diff --git a/databases/ocaml-pgocaml/Makefile b/databases/ocaml-pgocaml/Makefile
new file mode 100644
index 0000000..89ac4b6
--- /dev/null
+++ b/databases/ocaml-pgocaml/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: ocaml-calendar
+# Date created: Feb 26, 2007
+# Whom: Jaap Boender <jaapb@kerguelen.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pgocaml
+PORTVERSION= 1.0
+CATEGORIES= databases
+MASTER_SITES= http://merjis.com/_file/
+PKGNAMEPREFIX= ocaml-
+
+MAINTAINER= tcrimi@gmail.com
+COMMENT= An OCaml interface to PostgreSQL
+
+BUILD_DEPENDS= ${LOCALBASE}/${OCAML_SITELIBDIR}/extlib:${PORTSDIR}/devel/ocaml-extlib \
+ ${LOCALBASE}/${OCAML_SITELIBDIR}/pcre:${PORTSDIR}/devel/ocaml-pcre \
+ ${LOCALBASE}/${OCAML_SITELIBDIR}/calendar:${PORTSDIR}/devel/ocaml-calendar \
+ ${LOCALBASE}/${OCAML_SITELIBDIR}/csv:${PORTSDIR}/textproc/ocaml-csv
+
+USE_GMAKE= yes
+USE_OCAML= yes
+USE_OCAML_FINDLIB= yes
+OCAML_PKGDIRS= pgocaml
+
+INSTALL_TARGET= findlib_install
+
+.include <bsd.port.mk>
diff --git a/databases/ocaml-pgocaml/distinfo b/databases/ocaml-pgocaml/distinfo
new file mode 100644
index 0000000..3c2a0ca
--- /dev/null
+++ b/databases/ocaml-pgocaml/distinfo
@@ -0,0 +1,3 @@
+MD5 (pgocaml-1.0.tar.gz) = 4f12ab37e75cc863560600e458e202d5
+SHA256 (pgocaml-1.0.tar.gz) = 57116434f10d50a72e62425e78619091162e7458005ab3301b60e16138873ad8
+SIZE (pgocaml-1.0.tar.gz) = 36288
diff --git a/databases/ocaml-pgocaml/files/patch-Makefile b/databases/ocaml-pgocaml/files/patch-Makefile
new file mode 100644
index 0000000..3dc77d5
--- /dev/null
+++ b/databases/ocaml-pgocaml/files/patch-Makefile
@@ -0,0 +1,36 @@
+--- 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) \
+@@ -99,8 +99,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
+@@ -109,11 +109,11 @@
+ # Install.
+
+ findlib_install:
+- ocamlfind install pgocaml META pgocaml.{,cm{,x}}a pGOCaml.cm[ix] pa_pgsql.cmo
++ ocamlfind install pgocaml META pgocaml.*a pGOCaml.cm[ix] pa_pgsql.cmo
+
+ reinstall:
+ ocamlfind remove pgocaml
+- ocamlfind install pgocaml META pgocaml.{,cm{,x}}a pGOCaml.cm[ix] pa_pgsql.cmo
++ ocamlfind install pgocaml META pgocaml.*a pGOCaml.cm[ix] pa_pgsql.cmo
+
+ install:
+ rm -rf $(DESTDIR)$(OCAMLLIBDIR)/pgocaml
diff --git a/databases/ocaml-pgocaml/pkg-descr b/databases/ocaml-pgocaml/pkg-descr
new file mode 100644
index 0000000..447cb3c
--- /dev/null
+++ b/databases/ocaml-pgocaml/pkg-descr
@@ -0,0 +1,4 @@
+PG'OCaml is a type-safe, simple interface to PostgreSQL from OCaml. It lets you
+embed SQL statements directly into OCaml code.
+
+WWW: http://merjis.com/developers/pgocaml
OpenPOWER on IntegriCloud