initial import of ocaml-sqlite3-0.2.0

--
OCaml bindings to the SQLite 3 database access library.  The current
version provides low level access to the SQL queries and data
transfer.  Aggregate/user-defined SQL function support is not
implemented.
This commit is contained in:
avsm 2006-06-01 01:20:25 +00:00
parent 6128ecb42f
commit 90e83b7a7f
8 changed files with 116 additions and 0 deletions

View File

@ -0,0 +1,35 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/06/01 01:20:25 avsm Exp $
COMMENT= "Objective Caml bindings for SQLite3"
CATEGORIES= databases
V= 0.2.0
DISTNAME= ocaml-sqlite3-${V}
EXTRACT_SUFX= .tar.bz2
MASTER_SITES= http://metamatix.org/~ocaml/
WRKDIST= ${WRKDIR}/ocaml-sqlite3
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
HOMEPAGE= http://metamatix.org/~ocaml/ocaml-sqlite3.html
# BSD
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
MODULES= lang/ocaml
NO_REGRESS= Yes
CONFIGURE_STYLE=autoconf
AUTOCONF_VERSION=2.59
ALL_TARGET= all ${MODOCAML_NATIVE:S,Yes,opt,:S,No,,}
USE_GMAKE= Yes
CONFIGURE_ENV= CFLAGG="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib -L."
CONFIGURE_ARGS= --with-sqlite3=${LOCALBASE}
LIB_DEPENDS= sqlite3.8::databases/sqlite3
pre-fake:
${INSTALL_DATA_DIR} ${PREFIX}/lib/ocaml/site-lib
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (ocaml-sqlite3-0.2.0.tar.bz2) = e1c98f9815f63b50c9868484e17bac97
RMD160 (ocaml-sqlite3-0.2.0.tar.bz2) = 4414ddff97046df07ff39fb5c696fc05751386cb
SHA1 (ocaml-sqlite3-0.2.0.tar.bz2) = fb81cd797277e076b6feb079747d4bb9a3ed1584
SIZE (ocaml-sqlite3-0.2.0.tar.bz2) = 41852

View File

@ -0,0 +1,33 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2006/06/01 01:20:25 avsm Exp $
--- Makefile.in.orig Mon Oct 17 03:25:28 2005
+++ Makefile.in Mon May 29 22:19:44 2006
@@ -5,7 +5,7 @@ exec_prefix=@exec_prefix@
bindir=@bindir@
CC=@CC@
-CFLAGS=@CPPFLAGS@ @CFLAGS@
+CFLAGS=@CPPFLAGS@ @CFLAGS@ @DEFS@
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@
@@ -34,9 +34,8 @@ distclean: clean
# install rebuilds sqlite3top to point to the findlib-managed dll and not the
# one in .
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
+ ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma -optional *.cmxa *.a *.cmx *.so
+ $(INSTALL) sqlite3top $(DESTDIR)$(bindir)/sqlite3top
remove: uninstall
uninstall:
@@ -48,7 +47,7 @@ update: sqlite3.cma
make install
sqlite3top: sqlite3.cma
- ocamlfind ocamlmktop -o sqlite3top sqlite3.cma
+ ocamlfind ocamlmktop -o sqlite3top libsqlite3.a sqlite3.cma
sqlite3.cma: sqlite3.cmo sqlite3_stubs.o
ocamlmklib -o sqlite3 sqlite3.cmo sqlite3_stubs.o $(LDFLAGS) $(LIBS) $(MKLIBFLAGS)

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-configure_ac,v 1.1.1.1 2006/06/01 01:20:25 avsm Exp $
--- configure.ac.orig Mon May 29 05:46:05 2006
+++ configure.ac Mon May 29 05:46:19 2006
@@ -14,6 +14,7 @@ AC_PROG_CC
AC_CHECKING(for C header files)
AC_HEADER_STDC
+AC_FUNC_ALLOCA
AC_CHECKING(libraries)

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-sqlite3_stubs_c,v 1.1.1.1 2006/06/01 01:20:25 avsm Exp $
--- sqlite3_stubs.c.orig Mon May 29 05:54:50 2006
+++ sqlite3_stubs.c Mon May 29 05:56:12 2006
@@ -24,7 +24,10 @@
#include <stdio.h>
#include <string.h>
+
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
+#endif
#include <caml/mlvalues.h>
#include <caml/memory.h>

View File

@ -0,0 +1,4 @@
OCaml bindings to the SQLite 3 database access library. The current
version provides low level access to the SQL queries and data
transfer. Aggregate/user-defined SQL function support is not
implemented.

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PFRAG.native,v 1.1.1.1 2006/06/01 01:20:25 avsm Exp $
lib/ocaml/site-lib/sqlite3/libsqlite3.a
lib/ocaml/site-lib/sqlite3/sqlite3.a
lib/ocaml/site-lib/sqlite3/sqlite3.cmx
lib/ocaml/site-lib/sqlite3/sqlite3.cmxa

View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/06/01 01:20:25 avsm Exp $
@comment bin/sqlite3top
lib/ocaml/
lib/ocaml/site-lib/
lib/ocaml/site-lib/sqlite3/
lib/ocaml/site-lib/sqlite3/META
lib/ocaml/site-lib/sqlite3/sqlite3.cma
lib/ocaml/site-lib/sqlite3/sqlite3.cmi
lib/ocaml/site-lib/sqlite3/sqlite3.mli
%%native%%