[95894] trunk/dports/devel
mww at macports.org
mww at macports.org
Wed Jul 25 23:44:46 PDT 2012
Revision: 95894
https://trac.macports.org/changeset/95894
Author: mww at macports.org
Date: 2012-07-25 23:44:46 -0700 (Wed, 25 Jul 2012)
Log Message:
-----------
ocaml-dbm: new port (this library is not included anymore in upcoming OCaml 4.0 but still part in 3.x)
Added Paths:
-----------
trunk/dports/devel/ocaml-dbm/
trunk/dports/devel/ocaml-dbm/Portfile
trunk/dports/devel/ocaml-dbm/files/
trunk/dports/devel/ocaml-dbm/files/META
trunk/dports/devel/ocaml-dbm/files/Makefile.config
trunk/dports/devel/ocaml-dbm/files/patch-Makefile.diff
Added: trunk/dports/devel/ocaml-dbm/Portfile
===================================================================
--- trunk/dports/devel/ocaml-dbm/Portfile (rev 0)
+++ trunk/dports/devel/ocaml-dbm/Portfile 2012-07-26 06:44:46 UTC (rev 95894)
@@ -0,0 +1,39 @@
+# $Id: Portfile 88485 2012-01-03 11:01:15Z mww at macports.org $
+
+PortSystem 1.0
+
+name ocaml-dbm
+version 1.0
+categories devel ml
+platforms darwin
+license LGPL-2
+maintainers mww openmaintainer
+description OCaml binding to the GDBM Unix databases
+long_description ${description}
+homepage https://forge.ocamlcore.org/projects/camldbm
+master_sites https://forge.ocamlcore.org/frs/download.php/728/
+distname camldbm-${version}
+extract.suffix .tgz
+
+checksums rmd160 0691f84ac43c97fddaf796c04729baa8bcb280ca \
+ sha256 19741fa7827c306ae43b18170b01f5547326ec7ea6c2f4bd80c93439b5ff538f
+
+depends_lib port:ocaml port:gdbm
+
+patchfiles patch-Makefile.diff
+
+configure {
+ xinstall -m 644 ${filespath}/Makefile.config ${worksrcpath}/Makefile.config
+ reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Makefile.config
+}
+
+use_parallel_build no
+
+post-destroot {
+# enable this when ocaml is at v4
+# xinstall -m 644 ${filespath}/META ${destroot}${prefix}/lib/ocaml/site-lib/dbm/
+}
+
+livecheck.type regex
+livecheck.url https://forge.ocamlcore.org/frs/?group_id=278
+livecheck.regex "camldbm-(.*?)${extract.suffix}"
Added: trunk/dports/devel/ocaml-dbm/files/META
===================================================================
--- trunk/dports/devel/ocaml-dbm/files/META (rev 0)
+++ trunk/dports/devel/ocaml-dbm/files/META 2012-07-26 06:44:46 UTC (rev 95894)
@@ -0,0 +1,5 @@
+name="camldbm"
+version="1.0"
+description="binding to the GDBM Unix databases"
+archive(byte)="dbm.cma"
+archive(native)="dbm.cmxa"
Added: trunk/dports/devel/ocaml-dbm/files/Makefile.config
===================================================================
--- trunk/dports/devel/ocaml-dbm/files/Makefile.config (rev 0)
+++ trunk/dports/devel/ocaml-dbm/files/Makefile.config 2012-07-26 06:44:46 UTC (rev 95894)
@@ -0,0 +1,4 @@
+LIBDIR=@prefix@/lib/ocaml/site-lib/dbm
+DBM_INCLUDES=@prefix@/include
+DBM_LINK=-L at prefix@/lib -lgdbm
+DBM_DEFINES=
Added: trunk/dports/devel/ocaml-dbm/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/ocaml-dbm/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/ocaml-dbm/files/patch-Makefile.diff 2012-07-26 06:44:46 UTC (rev 95894)
@@ -0,0 +1,32 @@
+--- work/camldbm-1.0/Makefile 2011-11-22 16:56:49.000000000 +0100
++++ Makefile 2012-07-26 08:39:14.000000000 +0200
+@@ -21,7 +21,6 @@
+ O=o
+ A=a
+ SO=so
+-LIBDIR=`ocamlc -where`
+ STUBLIBDIR=$(LIBDIR)/stublibs
+
+
+@@ -57,13 +56,14 @@
+ $(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
++ install -m 755 -d $(DESTDIR)$(STUBLIBDIR) $(DESTDIR)$(LIBDIR)
++ 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120725/e77d9fa9/attachment.html>
More information about the macports-changes
mailing list