[53820] trunk/dports/devel

stechert at macports.org stechert at macports.org
Tue Jul 14 16:13:45 PDT 2009


Revision: 53820
          http://trac.macports.org/changeset/53820
Author:   stechert at macports.org
Date:     2009-07-14 16:13:45 -0700 (Tue, 14 Jul 2009)
Log Message:
-----------
Re #18786, adding port for caml-json-static.

Added Paths:
-----------
    trunk/dports/devel/caml-json-static/
    trunk/dports/devel/caml-json-static/Portfile

Added: trunk/dports/devel/caml-json-static/Portfile
===================================================================
--- trunk/dports/devel/caml-json-static/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-json-static/Portfile	2009-07-14 23:13:45 UTC (rev 53820)
@@ -0,0 +1,45 @@
+# $Id$
+
+PortSystem          1.0
+
+name                caml-json-static
+version             0.9.6
+categories          devel ml
+maintainers         anil at recoil.org
+description         JSON validator and type converter for OCaml
+long_description    This library converts parsed JSON data with an unchecked structure \
+                    into specialized OCaml types and vice-versa. It is a complement to \
+                    the caml-json-wheel package which provides a parser and pretty-printer.
+homepage            http://martin.jambon.free.fr/json-static.html
+platforms           darwin
+master_sites        http://martin.jambon.free.fr/
+
+distname            json-static-${version}
+use_bzip2           yes
+
+checksums           md5 7ffc8c00353a6fc14fde490c4edeb1d0 \
+                    sha1 f1b032ac702acb5b421075b25d3910b23268a1cc \
+                    rmd160 dd5d84992fd68c1230e1e8b6e26707324d491f78
+
+depends_lib         port:ocaml \
+                    port:caml-findlib \
+                    port:caml-json-wheel
+
+use_configure       no
+
+post-patch {
+    set ocaml_site_path [exec ocamlfind printconf destdir]
+    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
+                    ${worksrcpath}/Makefile
+}
+
+build.target        all
+
+pre-destroot {
+    set ocaml_site_path [exec ocamlfind printconf destdir]
+    file mkdir ${destroot}/${ocaml_site_path}/stublibs
+}
+
+pre-destroot {
+    destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}/[exec ${prefix}/bin/ocamlfind printconf destdir]"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090714/1f0df809/attachment.html>


More information about the macports-changes mailing list