Date: 28 Feb 2006 00:50:00 +0100 From: Meikel Brandmeyer <ocaml-sqlite3-port@kotka.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/93920: New port: databases/ocaml-sqlite3 OCaml bindings for databases/sqlite3 Message-ID: <20060227235000.84795.qmail@ceres.kotka.de> Resent-Message-ID: <200602280000.k1S00Nh0009616@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 93920 >Category: ports >Synopsis: New port: databases/ocaml-sqlite3 OCaml bindings for databases/sqlite3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 28 00:00:22 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Meikel Brandmeyer >Release: FreeBSD 6.0-RELEASE i386 >Organization: >Environment: System: FreeBSD ceres.kotka.de 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 >Description: OCaml bindings for the SQLite3 database engine. >How-To-Repeat: >Fix: --- ocaml-sqlite3.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/databases/ocaml-sqlite3 # /usr/ports/databases/ocaml-sqlite3/files # /usr/ports/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c # /usr/ports/databases/ocaml-sqlite3/files/patch-Makefile.in # /usr/ports/databases/ocaml-sqlite3/files/pkg-deinstall.in # /usr/ports/databases/ocaml-sqlite3/files/pkg-install.in # /usr/ports/databases/ocaml-sqlite3/pkg-plist # /usr/ports/databases/ocaml-sqlite3/pkg-descr # /usr/ports/databases/ocaml-sqlite3/distinfo # /usr/ports/databases/ocaml-sqlite3/Makefile # echo c - /usr/ports/databases/ocaml-sqlite3 mkdir -p /usr/ports/databases/ocaml-sqlite3 > /dev/null 2>&1 echo c - /usr/ports/databases/ocaml-sqlite3/files mkdir -p /usr/ports/databases/ocaml-sqlite3/files > /dev/null 2>&1 echo x - /usr/ports/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c sed 's/^X//' >/usr/ports/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c << 'END-of-/usr/ports/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c' X--- sqlite3_stubs.c.orig Mon Feb 27 20:51:46 2006 X+++ sqlite3_stubs.c Mon Feb 27 23:23:43 2006 X@@ -24,7 +24,10 @@ X X #include <stdio.h> X #include <string.h> X+/* FIXME: This should go into configure script. */ X+#if defined(HAVE_ALLOCA_H) X #include <alloca.h> X+#endif X X #include <caml/mlvalues.h> X #include <caml/memory.h> END-of-/usr/ports/databases/ocaml-sqlite3/files/patch-sqlite3_stubs.c echo x - /usr/ports/databases/ocaml-sqlite3/files/patch-Makefile.in sed 's/^X//' >/usr/ports/databases/ocaml-sqlite3/files/patch-Makefile.in << 'END-of-/usr/ports/databases/ocaml-sqlite3/files/patch-Makefile.in' X--- Makefile.in.orig Mon Feb 27 21:11:25 2006 X+++ Makefile.in Mon Feb 27 21:12:12 2006 X@@ -36,7 +36,7 @@ X install: sqlite3.cma sqlite3.cmxa sqlite3top X ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx *.so X ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma X- $(INSTALL) sqlite3top $(bindir)/sqlite3top X+ $(INSTALL) sqlite3top $(bindir)/ocamlsqlite3 X X remove: uninstall X uninstall: END-of-/usr/ports/databases/ocaml-sqlite3/files/patch-Makefile.in echo x - /usr/ports/databases/ocaml-sqlite3/files/pkg-deinstall.in sed 's/^X//' >/usr/ports/databases/ocaml-sqlite3/files/pkg-deinstall.in << 'END-of-/usr/ports/databases/ocaml-sqlite3/files/pkg-deinstall.in' X#! /bin/sh X# X Xif [ "x$2" = "xPOST-DEINSTALL" ]; then X ldconf="%%PREFIX%%/lib/ocaml/ld.conf" X X cat ${ldconf} | grep -v sqlite3 > ${ldconf}.tmp X mv ${ldconf}.tmp ${ldconf} Xfi X Xexit 0 X END-of-/usr/ports/databases/ocaml-sqlite3/files/pkg-deinstall.in echo x - /usr/ports/databases/ocaml-sqlite3/files/pkg-install.in sed 's/^X//' >/usr/ports/databases/ocaml-sqlite3/files/pkg-install.in << 'END-of-/usr/ports/databases/ocaml-sqlite3/files/pkg-install.in' X#! /bin/sh X# X Xif [ "x$2" = "xPOST-INSTALL" ]; then X ldconf="%%PREFIX%%/lib/ocaml/ld.conf" X X echo "%%PREFIX%%/lib/ocaml/site-lib/sqlite3" >> ${ldconf} Xfi X Xexit 0 X END-of-/usr/ports/databases/ocaml-sqlite3/files/pkg-install.in echo x - /usr/ports/databases/ocaml-sqlite3/pkg-plist sed 's/^X//' >/usr/ports/databases/ocaml-sqlite3/pkg-plist << 'END-of-/usr/ports/databases/ocaml-sqlite3/pkg-plist' Xbin/ocamlsqlite3 Xlib/ocaml/site-lib/sqlite3/dllsqlite3.so Xlib/ocaml/site-lib/sqlite3/sqlite3.cmx Xlib/ocaml/site-lib/sqlite3/sqlite3.a Xlib/ocaml/site-lib/sqlite3/libsqlite3.a Xlib/ocaml/site-lib/sqlite3/sqlite3.cmxa Xlib/ocaml/site-lib/sqlite3/sqlite3.cma Xlib/ocaml/site-lib/sqlite3/sqlite3.mli Xlib/ocaml/site-lib/sqlite3/sqlite3.cmi Xlib/ocaml/site-lib/sqlite3/META X@dirrm lib/ocaml/site-lib/sqlite3 X@unexec ocamlfind remove sqlite3 2> /dev/null || true X@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 END-of-/usr/ports/databases/ocaml-sqlite3/pkg-plist echo x - /usr/ports/databases/ocaml-sqlite3/pkg-descr sed 's/^X//' >/usr/ports/databases/ocaml-sqlite3/pkg-descr << 'END-of-/usr/ports/databases/ocaml-sqlite3/pkg-descr' XSqlite3 bindings for Objective Caml X XCopyright (c) 2005 Christian Szegedy <csdontdpam871@metamatix.org> X XSqlite 3 database library wrapper for ocaml. XSqlite 3 is available from http://www.sqlite.org XThis wrapper is written in a way that enables a friendly Xcoexistence with the old (version 2) sqlite and its Xocaml wrapper ocaml-sqlite. X XWWW: http://metamatix.org/~ocaml/ END-of-/usr/ports/databases/ocaml-sqlite3/pkg-descr echo x - /usr/ports/databases/ocaml-sqlite3/distinfo sed 's/^X//' >/usr/ports/databases/ocaml-sqlite3/distinfo << 'END-of-/usr/ports/databases/ocaml-sqlite3/distinfo' XMD5 (ocaml-sqlite3-0.2.0.tar.bz2) = e1c98f9815f63b50c9868484e17bac97 XSHA256 (ocaml-sqlite3-0.2.0.tar.bz2) = ccdd6c7f7ab60ef6896471bd70a2051f551e028000d26f5ed37757b78f3ad80f XSIZE (ocaml-sqlite3-0.2.0.tar.bz2) = 41852 END-of-/usr/ports/databases/ocaml-sqlite3/distinfo echo x - /usr/ports/databases/ocaml-sqlite3/Makefile sed 's/^X//' >/usr/ports/databases/ocaml-sqlite3/Makefile << 'END-of-/usr/ports/databases/ocaml-sqlite3/Makefile' X# Ports collection makefile for: ocaml-sqlite3 X# Date created: 27th February 2006 X# Whom: "Meikel Brandmeyer" <ocaml-sqlite3-port@kotka.de> X# X# $FreeBSD$ X# X XPORTNAME= sqlite3 XPORTVERSION= 0.2.0 XCATEGORIES= databases XMASTER_SITES= http://metamatix.org/~ocaml/ XPKGNAMEPREFIX= ocaml- XDISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} X XMAINTAINER= ocaml-sqlite3-port@kotka.de XCOMMENT= OCaml bindings to sqlite3 library X XBUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ X ocamlfind:${PORTSDIR}/devel/ocaml-findlib XLIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3 X XWRKSRC= ${WRKDIR}/ocaml-sqlite3 X XGNU_CONFIGURE= yes XCONFIGURE_ARGS= CC="${CC}"\ X CFLAGS="${CFLAGS}"\ X CPPFLAGS="-UHAVE_ALLOCA_H -I${PREFIX}/include"\ X LDFLAGS="-L${PREFIX}/lib" X XUSE_BZIP2= yes X XSUB_FILES= pkg-install pkg-deinstall X XDOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} XPORTDOCS= README style.css *.html X Xdo-install: X @${ECHO_MSG} "==> Installing port files for ${PKGORIGIN}..." X @( cd ${WRKSRC};\ X OCAMLFIND_DESTDIR="${PREFIX}/lib/ocaml/site-lib"\ X OCAMLFIND_LDCONF="${PREFIX}/lib/ocaml/ld.conf"\ X ocamlfind install\ X sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma\ X *.cmxa *.a *.cmx *.so;\ X OCAMLPATH="${PREFIX}/lib/ocaml/site-lib"\ X ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma;\ X ${INSTALL_SCRIPT} sqlite3top ${PREFIX}/bin/ocamlsqlite3 ) X.if !defined(NOPORTDOCS) X @${ECHO_MSG} "==> Installing port documentation for ${PKGORIGIN}..." X @${MKDIR} ${DOCSDIR} X @( cd ${WRKSRC}; ${INSTALL_DATA} README ${DOCSDIR} ) X @( cd ${WRKSRC}/doc;\ X for f in `${FIND} . -type f -print`; do\ X ${INSTALL_DATA} $${f} ${DOCSDIR};\ X done ) X.endif X X.include <bsd.port.mk> END-of-/usr/ports/databases/ocaml-sqlite3/Makefile exit --- ocaml-sqlite3.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060227235000.84795.qmail>