pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/ocaml-sqlite3 Initial import of ocaml-sqlite...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c3d8b19043e8
branches:  trunk
changeset: 603837:c3d8b19043e8
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon May 14 09:20:39 2012 +0000

description:
Initial import of ocaml-sqlite3-1.6.1, packaged by Jaap Boender in
PR 41690.

This package contains is an OCaml database library wrapper for
SQLite.

diffstat:

 databases/ocaml-sqlite3/DESCR                         |   2 +
 databases/ocaml-sqlite3/Makefile                      |  37 +++++++++++++++++
 databases/ocaml-sqlite3/PLIST                         |  10 ++++
 databases/ocaml-sqlite3/PLIST.opt                     |   5 ++
 databases/ocaml-sqlite3/distinfo                      |   8 +++
 databases/ocaml-sqlite3/patches/patch-Makefile.in     |  41 +++++++++++++++++++
 databases/ocaml-sqlite3/patches/patch-configure.ac    |  14 ++++++
 databases/ocaml-sqlite3/patches/patch-sqlite3_stubs.c |  14 ++++++
 8 files changed, 131 insertions(+), 0 deletions(-)

diffs (163 lines):

diff -r 91fdee2c4e52 -r c3d8b19043e8 databases/ocaml-sqlite3/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ocaml-sqlite3/DESCR     Mon May 14 09:20:39 2012 +0000
@@ -0,0 +1,2 @@
+This package contains is an OCaml database library wrapper for
+SQLite.
diff -r 91fdee2c4e52 -r c3d8b19043e8 databases/ocaml-sqlite3/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ocaml-sqlite3/Makefile  Mon May 14 09:20:39 2012 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $
+#
+
+DISTNAME=      ocaml-sqlite3-1.6.1
+CATEGORIES=    databases
+MASTER_SITES=  http://www.ocaml.info/ocaml_sources/
+
+MAINTAINER=    jaapb%kerguelen.org@localhost
+HOMEPAGE=      http://www.ocaml.info/home/ocaml_sources.html
+COMMENT=       Sqlite bindings for OCaml
+LICENSE=       mit
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+DEPENDS+=      ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
+
+GNU_CONFIGURE= yes
+USE_TOOLS+=    gmake autoconf
+BUILD_TARGET=  docs bytecode
+
+MAKE_ENV+=     OCAML_SITELIBDIR="${PREFIX}/lib/ocaml/site-lib"
+MAKE_JOBS_SAFE=        no
+
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
+    (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
+PLIST_SRC+=    PLIST.opt
+BUILD_TARGET+= opt sqlite3.cmxs
+.endif
+
+PLIST_SRC+=    PLIST
+
+pre-configure:
+       cd ${WRKSRC} && autoconf
+
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 91fdee2c4e52 -r c3d8b19043e8 databases/ocaml-sqlite3/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ocaml-sqlite3/PLIST     Mon May 14 09:20:39 2012 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $
+@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/sqlite3
+bin/sqlite3top
+lib/ocaml/site-lib/sqlite3/META
+lib/ocaml/site-lib/sqlite3/dllsqlite3_stubs.so
+lib/ocaml/site-lib/sqlite3/libsqlite3_stubs.a
+lib/ocaml/site-lib/sqlite3/sqlite3.cma
+lib/ocaml/site-lib/sqlite3/sqlite3.cmi
+lib/ocaml/site-lib/sqlite3/sqlite3.mli
+@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/sqlite3
diff -r 91fdee2c4e52 -r c3d8b19043e8 databases/ocaml-sqlite3/PLIST.opt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ocaml-sqlite3/PLIST.opt Mon May 14 09:20:39 2012 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST.opt,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $
+lib/ocaml/site-lib/sqlite3/sqlite3.a
+lib/ocaml/site-lib/sqlite3/sqlite3.cmx
+lib/ocaml/site-lib/sqlite3/sqlite3.cmxa
+lib/ocaml/site-lib/sqlite3/sqlite3.cmxs
diff -r 91fdee2c4e52 -r c3d8b19043e8 databases/ocaml-sqlite3/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ocaml-sqlite3/distinfo  Mon May 14 09:20:39 2012 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $
+
+SHA1 (ocaml-sqlite3-1.6.1.tar.gz) = 1f67e2bd80907a755ac5689fc466020f5f2c394c
+RMD160 (ocaml-sqlite3-1.6.1.tar.gz) = dbfdb928041fdb8ccaac8f1d14223124d6bfe8ec
+Size (ocaml-sqlite3-1.6.1.tar.gz) = 59073 bytes
+SHA1 (patch-Makefile.in) = 4c60faa5c9e0e2b5ae55d6fc96d63a12fac369bd
+SHA1 (patch-configure.ac) = 18f762288c41c4e23cfc263108b20339ff9179cb
+SHA1 (patch-sqlite3_stubs.c) = 1ec65d01c5119e36be1431da9d57b49fc25ef4ff
diff -r 91fdee2c4e52 -r c3d8b19043e8 databases/ocaml-sqlite3/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ocaml-sqlite3/patches/patch-Makefile.in Mon May 14 09:20:39 2012 +0000
@@ -0,0 +1,41 @@
+$NetBSD: patch-Makefile.in,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $
+
+change install procedure for DESTDIR, and build cmxs for dynamic linking
+--- Makefile.in.orig   2011-03-10 17:47:28.000000000 +0000
++++ Makefile.in
+@@ -37,18 +37,20 @@ test:      bytecode opt
+ 
+ clean:
+       @cd test && $(MAKE) clean
+-      rm -f *.o *.cmo *.cmx *.cmi *.so *.cma *.cmxa *.a sqlite3top
++      rm -f *.o *.cmo *.cmx *.cmi *.so *.cma *.cmxa *.cmxs *.a sqlite3top
+ 
+ distclean: clean
+       rm -rf autom4te.* config.* META Makefile doc
+ 
+ # install rebuilds sqlite3top to point to the findlib-managed dll and not the
+ # one in .
+-install: sqlite3.cma sqlite3.cmxa sqlite3top
++install: sqlite3.cma sqlite3top
++      ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${OCAML_SITELIBDIR}
+       [ -f *.so ] && SO_FILES=*.so; \
+-      ocamlfind install sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.a *.cmx $$SO_FILES
+-      ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma
+-      $(INSTALL) sqlite3top $(bindir)/sqlite3top
++      ocamlfind install -ldconf /dev/null -destdir ${DESTDIR}${OCAML_SITELIBDIR} -optional sqlite3 META sqlite3.cmi sqlite3.mli sqlite3.cma *.cmxa *.cmxs *.a *.cmx $$SO_FILES
++      OCAMLPATH="${DESTDIR}${OCAML_SITELIBDIR}" ocamlfind ocamlmktop -o sqlite3top -package "sqlite3" sqlite3.cma
++      ${BSD_INSTALL_SCRIPT_DIR} ${DESTDIR}$(bindir)
++      ${BSD_INSTALL_SCRIPT} sqlite3top ${DESTDIR}$(bindir)/sqlite3top
+ 
+ remove: uninstall
+ uninstall:
+@@ -68,6 +70,9 @@ sqlite3.cma: sqlite3.cmo sqlite3_stubs.o
+ sqlite3.cmxa: sqlite3.cmx sqlite3.o sqlite3_stubs.o
+       ocamlmklib -o sqlite3 -oc sqlite3_stubs sqlite3.cmx sqlite3_stubs.o -L. $(LDFLAGS) $(LIBS) $(MKLIBFLAGS)
+ 
++sqlite3.cmxs: sqlite3.cmxa
++      ocamlopt -linkall -shared -o sqlite3.cmxs sqlite3.cmxa
++
+ sqlite3.cmo: sqlite3.cmi sqlite3.ml
+ 
+ .SUFFIXES: .ml .mli .cmo .cmi .cmx
diff -r 91fdee2c4e52 -r c3d8b19043e8 databases/ocaml-sqlite3/patches/patch-configure.ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ocaml-sqlite3/patches/patch-configure.ac        Mon May 14 09:20:39 2012 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-configure.ac,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $
+
+disable linking to libdl which is not used
+--- configure.ac.orig  2010-12-20 05:13:10.000000000 +0000
++++ configure.ac
+@@ -26,7 +26,7 @@ AC_ARG_WITH(
+ AC_CHECKING(for sqlite3 library)
+ AC_CHECK_LIB(
+   sqlite3, sqlite3_open,,
+-  AC_ERROR([SQLite is required.  See the --with-sqlite3 configure option.]), -ldl)
++  AC_ERROR([SQLite is required.  See the --with-sqlite3 configure option.]))
+ 
+ AC_CHECKING(for Sqlite header files)
+ AC_CHECK_HEADER(sqlite3.h,,
diff -r 91fdee2c4e52 -r c3d8b19043e8 databases/ocaml-sqlite3/patches/patch-sqlite3_stubs.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ocaml-sqlite3/patches/patch-sqlite3_stubs.c     Mon May 14 09:20:39 2012 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-sqlite3_stubs.c,v 1.1.1.1 2012/05/14 09:20:39 wiz Exp $
+
+unused definition for FreeBSD works on NetBSD too
+--- sqlite3_stubs.c.orig       2008-04-13 14:26:56.000000000 +0200
++++ sqlite3_stubs.c    2008-04-13 14:27:35.000000000 +0200
+@@ -40,7 +40,7 @@
+ 
+ #if __GNUC__ >= 3
+ # define inline inline __attribute__ ((always_inline))
+-# if !defined(__FreeBSD__) && !__APPLE__
++# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !__APPLE__
+ # define __unused __attribute__ ((unused))
+ # endif
+ #else



Home | Main Index | Thread Index | Old Index