From 92a3e465c389eb5b15306524fe09e719e8c2896c Mon Sep 17 00:00:00 2001 From: John Marino Date: Thu, 27 Mar 2014 09:41:44 +0000 Subject: Add new Ocaml port: databases/dbm The initial version submitted in the PR was augmented by later changes seen in pkgsrc where the counterpart is maintained by the submitter. == This OCaml library is a binding to the NDBM/GDBM Unix "databases". It provides persistent storage of key-value pairs of strings. WWW: http://forge.ocamlcore.org/projects/camldbm/ == PR: ports/176115 Submitted by: Jaap Boender Maintainer: Jaap Boender Stage support: Taken from pkgsrc --- databases/ocaml-dbm/files/patch-META | 10 ++++++++++ databases/ocaml-dbm/files/patch-Makefile | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 databases/ocaml-dbm/files/patch-META create mode 100644 databases/ocaml-dbm/files/patch-Makefile (limited to 'databases/ocaml-dbm/files') diff --git a/databases/ocaml-dbm/files/patch-META b/databases/ocaml-dbm/files/patch-META new file mode 100644 index 000000000000..861715dffc1e --- /dev/null +++ b/databases/ocaml-dbm/files/patch-META @@ -0,0 +1,10 @@ +$NetBSD: patch-META,v 1.1 2013/07/21 17:04:29 jaapb Exp $ + +point to correct directory for library files +--- META.orig 2011-11-22 15:56:49.000000000 +0000 ++++ META +@@ -3,3 +3,4 @@ requires = "" + version = "1.0" + archive(byte) = "dbm.cma" + archive(native) = "dbm.cmxa" ++directory = "^" diff --git a/databases/ocaml-dbm/files/patch-Makefile b/databases/ocaml-dbm/files/patch-Makefile new file mode 100644 index 000000000000..c1e15f46971f --- /dev/null +++ b/databases/ocaml-dbm/files/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) -- cgit v1.2.3