diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/Makefile | 59 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/distinfo | 3 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c | 13 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/files/pkg-deinstall.in | 12 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/files/pkg-install.in | 11 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/pkg-descr | 11 | ||||
-rw-r--r-- | databases/ocaml-sqlite3/pkg-plist | 13 |
9 files changed, 134 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index b0122d0711ed..54f7d4b143d6 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -152,6 +152,7 @@ SUBDIR += mysqltcl SUBDIR += mytop SUBDIR += namazu2 + SUBDIR += ocaml-sqlite3 SUBDIR += opendbx SUBDIR += oracle7-client SUBDIR += oracle8-client diff --git a/databases/ocaml-sqlite3/Makefile b/databases/ocaml-sqlite3/Makefile new file mode 100644 index 000000000000..f3f5e7b30463 --- /dev/null +++ b/databases/ocaml-sqlite3/Makefile @@ -0,0 +1,59 @@ +# Ports collection makefile for: ocaml-sqlite3 +# Date created: 27th February 2006 +# Whom: "Meikel Brandmeyer" <ocaml-sqlite3-port@kotka.de> +# +# $FreeBSD$ +# + +PORTNAME= sqlite3 +PORTVERSION= 0.2.0 +CATEGORIES= databases +MASTER_SITES= http://metamatix.org/~ocaml/ +PKGNAMEPREFIX= ocaml- +DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} + +MAINTAINER= ocaml-sqlite3-port@kotka.de +COMMENT= OCaml bindings to sqlite3 library + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib +LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3 + +WRKSRC= ${WRKDIR}/ocaml-sqlite3 + +USE_GCC= 3.2+ +GNU_CONFIGURE= yes +CONFIGURE_ARGS= CC="${CC}"\ + CFLAGS="${CFLAGS}"\ + CPPFLAGS="-UHAVE_ALLOCA_H -I${PREFIX}/include"\ + LDFLAGS="-L${PREFIX}/lib" + +USE_BZIP2= yes + +SUB_FILES= pkg-install pkg-deinstall + +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +PORTDOCS= README style.css *.html + +do-install: + @${ECHO_MSG} "==> Installing port files for ${PKGORIGIN}..." + @( cd ${WRKSRC};\ + OCAMLFIND_DESTDIR="${PREFIX}/lib/ocaml/site-lib"\ + OCAMLFIND_LDCONF="${PREFIX}/lib/ocaml/ld.conf"\ + ocamlfind install\ + sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma\ + *.cmxa *.a *.cmx *.so;\ + OCAMLPATH="${PREFIX}/lib/ocaml/site-lib"\ + ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma;\ + ${INSTALL_SCRIPT} sqlite3top ${PREFIX}/bin/ocamlsqlite3 ) +.if !defined(NOPORTDOCS) + @${ECHO_MSG} "==> Installing port documentation for ${PKGORIGIN}..." + @${MKDIR} ${DOCSDIR} + @( cd ${WRKSRC}; ${INSTALL_DATA} README ${DOCSDIR} ) + @( cd ${WRKSRC}/doc;\ + for f in `${FIND} . -type f -print`; do\ + ${INSTALL_DATA} $${f} ${DOCSDIR};\ + done ) +.endif + +.include <bsd.port.mk> diff --git a/databases/ocaml-sqlite3/distinfo b/databases/ocaml-sqlite3/distinfo new file mode 100644 index 000000000000..d2aeefb2b6fd --- /dev/null +++ b/databases/ocaml-sqlite3/distinfo @@ -0,0 +1,3 @@ +MD5 (ocaml-sqlite3-0.2.0.tar.bz2) = e1c98f9815f63b50c9868484e17bac97 +SHA256 (ocaml-sqlite3-0.2.0.tar.bz2) = ccdd6c7f7ab60ef6896471bd70a2051f551e028000d26f5ed37757b78f3ad80f +SIZE (ocaml-sqlite3-0.2.0.tar.bz2) = 41852 diff --git a/databases/ocaml-sqlite3/files/patch-Makefile.in b/databases/ocaml-sqlite3/files/patch-Makefile.in new file mode 100644 index 000000000000..e6c9f81bbb8a --- /dev/null +++ b/databases/ocaml-sqlite3/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Mon Feb 27 21:11:25 2006 ++++ Makefile.in Mon Feb 27 21:12:12 2006 +@@ -36,7 +36,7 @@ + install: sqlite3.cma sqlite3.cmxa sqlite3top + ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx *.so + ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma +- $(INSTALL) sqlite3top $(bindir)/sqlite3top ++ $(INSTALL) sqlite3top $(bindir)/ocamlsqlite3 + + remove: uninstall + uninstall: diff --git a/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c b/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c new file mode 100644 index 000000000000..4daa6553c2ed --- /dev/null +++ b/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c @@ -0,0 +1,13 @@ +--- sqlite3_stubs.c.orig Mon Feb 27 20:51:46 2006 ++++ sqlite3_stubs.c Mon Feb 27 23:23:43 2006 +@@ -24,7 +24,10 @@ + + #include <stdio.h> + #include <string.h> ++/* FIXME: This should go into configure script. */ ++#if defined(HAVE_ALLOCA_H) + #include <alloca.h> ++#endif + + #include <caml/mlvalues.h> + #include <caml/memory.h> diff --git a/databases/ocaml-sqlite3/files/pkg-deinstall.in b/databases/ocaml-sqlite3/files/pkg-deinstall.in new file mode 100644 index 000000000000..d26108142739 --- /dev/null +++ b/databases/ocaml-sqlite3/files/pkg-deinstall.in @@ -0,0 +1,12 @@ +#! /bin/sh +# + +if [ "x$2" = "xPOST-DEINSTALL" ]; then + ldconf="%%PREFIX%%/lib/ocaml/ld.conf" + + cat ${ldconf} | grep -v sqlite3 > ${ldconf}.tmp + mv ${ldconf}.tmp ${ldconf} +fi + +exit 0 + diff --git a/databases/ocaml-sqlite3/files/pkg-install.in b/databases/ocaml-sqlite3/files/pkg-install.in new file mode 100644 index 000000000000..d5f7d26d2f47 --- /dev/null +++ b/databases/ocaml-sqlite3/files/pkg-install.in @@ -0,0 +1,11 @@ +#! /bin/sh +# + +if [ "x$2" = "xPOST-INSTALL" ]; then + ldconf="%%PREFIX%%/lib/ocaml/ld.conf" + + echo "%%PREFIX%%/lib/ocaml/site-lib/sqlite3" >> ${ldconf} +fi + +exit 0 + diff --git a/databases/ocaml-sqlite3/pkg-descr b/databases/ocaml-sqlite3/pkg-descr new file mode 100644 index 000000000000..29d2b82005d3 --- /dev/null +++ b/databases/ocaml-sqlite3/pkg-descr @@ -0,0 +1,11 @@ +Sqlite3 bindings for Objective Caml + +Copyright (c) 2005 Christian Szegedy <csdontdpam871@metamatix.org> + +Sqlite 3 database library wrapper for ocaml. +Sqlite 3 is available from http://www.sqlite.org +This wrapper is written in a way that enables a friendly +coexistence with the old (version 2) sqlite and its +ocaml wrapper ocaml-sqlite. + +WWW: http://metamatix.org/~ocaml/ diff --git a/databases/ocaml-sqlite3/pkg-plist b/databases/ocaml-sqlite3/pkg-plist new file mode 100644 index 000000000000..a111114cd33a --- /dev/null +++ b/databases/ocaml-sqlite3/pkg-plist @@ -0,0 +1,13 @@ +bin/ocamlsqlite3 +lib/ocaml/site-lib/sqlite3/dllsqlite3.so +lib/ocaml/site-lib/sqlite3/sqlite3.cmx +lib/ocaml/site-lib/sqlite3/sqlite3.a +lib/ocaml/site-lib/sqlite3/libsqlite3.a +lib/ocaml/site-lib/sqlite3/sqlite3.cmxa +lib/ocaml/site-lib/sqlite3/sqlite3.cma +lib/ocaml/site-lib/sqlite3/sqlite3.mli +lib/ocaml/site-lib/sqlite3/sqlite3.cmi +lib/ocaml/site-lib/sqlite3/META +@dirrm lib/ocaml/site-lib/sqlite3 +@unexec ocamlfind remove sqlite3 2> /dev/null || true +@unexec cat %%PREFIX%%/lib/ocaml/ld.conf | grep -v sqlite3 > %%PREFIX%%/lib/ocaml/ld.conf.tmp && mv %%PREFIX%%/lib/ocaml/ld.conf.tmp %%PREFIX%%/lib/ocaml/ld.conf |