summaryrefslogtreecommitdiff
path: root/databases/ocaml-dbm
diff options
context:
space:
mode:
authorjaapb <jaapb>2012-12-15 10:25:52 +0000
committerjaapb <jaapb>2012-12-15 10:25:52 +0000
commitf24c7cd32f609677ec0ee44c4ded13edd0bb4326 (patch)
tree546c5281e9463692aa703140ab969bd55e13c81f /databases/ocaml-dbm
parent438cf56c7e8886a8c48f4e221caf814417180c67 (diff)
downloadpkgsrc-f24c7cd32f609677ec0ee44c4ded13edd0bb4326.tar.gz
Added databases/ocaml-dbm version 1.0 to pkgsrc. This is an OCaml binding for
the gdbm/ndbm database libraries.
Diffstat (limited to 'databases/ocaml-dbm')
-rw-r--r--databases/ocaml-dbm/DESCR2
-rw-r--r--databases/ocaml-dbm/Makefile23
-rw-r--r--databases/ocaml-dbm/PLIST9
-rw-r--r--databases/ocaml-dbm/buildlink3.mk15
-rw-r--r--databases/ocaml-dbm/distinfo6
-rw-r--r--databases/ocaml-dbm/patches/patch-Makefile27
6 files changed, 82 insertions, 0 deletions
diff --git a/databases/ocaml-dbm/DESCR b/databases/ocaml-dbm/DESCR
new file mode 100644
index 00000000000..1adf32e41e7
--- /dev/null
+++ b/databases/ocaml-dbm/DESCR
@@ -0,0 +1,2 @@
+This OCaml library is a binding to the NDBM/GDBM Unix "databases". It provides
+persistent storage of key-value pairs of strings.
diff --git a/databases/ocaml-dbm/Makefile b/databases/ocaml-dbm/Makefile
new file mode 100644
index 00000000000..bd5d7399389
--- /dev/null
+++ b/databases/ocaml-dbm/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2012/12/15 10:25:52 jaapb Exp $
+#
+
+PKGNAME= ocaml-dbm-${PKGVERSION}
+DISTNAME= camldbm-${PKGVERSION}
+PKGVERSION= 1.0
+CATEGORIES= databases
+MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/728/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= http://camldbm.forge.ocamlcore.org/
+COMMENT= OCaml binding to the NDBM and GDBM database library
+LICENSE= gnu-lgpl-v2
+
+HAS_CONFIGURE= yes
+MAKE_ENV+= DESTDIR="${DESTDIR}"
+
+INSTALLATION_DIRS= lib/ocaml/stublibs
+
+.include "../../databases/gdbm/buildlink3.mk"
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/ocaml-dbm/PLIST b/databases/ocaml-dbm/PLIST
new file mode 100644
index 00000000000..437d798840e
--- /dev/null
+++ b/databases/ocaml-dbm/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2012/12/15 10:25:52 jaapb Exp $
+lib/ocaml/dbm.a
+lib/ocaml/dbm.cma
+lib/ocaml/dbm.cmi
+lib/ocaml/dbm.cmxa
+lib/ocaml/dbm.cmxs
+lib/ocaml/dbm.mli
+lib/ocaml/libcamldbm.a
+lib/ocaml/stublibs/dllcamldbm.so
diff --git a/databases/ocaml-dbm/buildlink3.mk b/databases/ocaml-dbm/buildlink3.mk
new file mode 100644
index 00000000000..b70a048f61d
--- /dev/null
+++ b/databases/ocaml-dbm/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2012/12/15 10:25:52 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-dbm
+
+.if !defined(OCAML_DBM_BUILDLINK3_MK)
+OCAML_DBM_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-dbm+= ocaml-dbm>=1.0
+BUILDLINK_PKGSRCDIR.ocaml-dbm?= ../../databases/ocaml-dbm
+
+.include "../../databases/gdbm/buildlink3.mk"
+.include "../../lang/ocaml/buildlink3.mk"
+.endif # OCAML_DBM_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-dbm
diff --git a/databases/ocaml-dbm/distinfo b/databases/ocaml-dbm/distinfo
new file mode 100644
index 00000000000..3f42efee524
--- /dev/null
+++ b/databases/ocaml-dbm/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2012/12/15 10:25:52 jaapb Exp $
+
+SHA1 (camldbm-1.0.tgz) = e3f17c9cd9c72930fd39e3bc1025bea57241e3f9
+RMD160 (camldbm-1.0.tgz) = 0691f84ac43c97fddaf796c04729baa8bcb280ca
+Size (camldbm-1.0.tgz) = 14397 bytes
+SHA1 (patch-Makefile) = 49402bd4ea4178932fd363baaae236d2e5ee56e1
diff --git a/databases/ocaml-dbm/patches/patch-Makefile b/databases/ocaml-dbm/patches/patch-Makefile
new file mode 100644
index 00000000000..c1e15f46971
--- /dev/null
+++ b/databases/ocaml-dbm/patches/patch-Makefile
@@ -0,0 +1,27 @@
+$NetBSD: patch-Makefile,v 1.1 2012/12/15 10:25:52 jaapb Exp $
+
+Install into DESTDIR
+--- Makefile.orig 2011-11-22 15:56:49.000000000 +0000
++++ Makefile
+@@ -57,13 +57,14 @@ depend:
+ $(OCAMLDEP) *.ml *.mli > .depend
+
+ install::
+- if test -f dllcamldbm.$(SO); then cp dllcamldbm.$(SO) $(STUBLIBDIR)/; fi
+- cp libcamldbm.$(A) $(LIBDIR)/
+- cd $(LIBDIR) && ranlib libcamldbm.$(A)
+- cp dbm.cma dbm.cmxa dbm.cmi dbm.mli $(LIBDIR)/
+- cp dbm.$(A) $(LIBDIR)/
+- cd $(LIBDIR) && ranlib dbm.$(A)
+- if test -f dbm.cmxs; then cp dbm.cmxs $(LIBDIR)/; fi
++ if test -f dllcamldbm.$(SO); then cp dllcamldbm.$(SO) \
++ $(DESTDIR)/$(STUBLIBDIR)/; fi
++ cp libcamldbm.$(A) $(DESTDIR)/$(LIBDIR)/
++ cd $(DESTDIR)/$(LIBDIR) && ranlib libcamldbm.$(A)
++ cp dbm.cma dbm.cmxa dbm.cmi dbm.mli $(DESTDIR)/$(LIBDIR)/
++ cp dbm.$(A) $(DESTDIR)/$(LIBDIR)/
++ cd $(DESTDIR)/$(LIBDIR) && ranlib dbm.$(A)
++ if test -f dbm.cmxs; then cp dbm.cmxs $(DESTDIR)/$(LIBDIR)/; fi
+
+ clean::
+ rm -f *.cm* *.$(O) *.$(A) *.$(SO)