[53818] trunk/dports/devel

stechert at macports.org stechert at macports.org
Tue Jul 14 15:40:00 PDT 2009


Revision: 53818
          http://trac.macports.org/changeset/53818
Author:   stechert at macports.org
Date:     2009-07-14 15:39:59 -0700 (Tue, 14 Jul 2009)
Log Message:
-----------
Re #18786, adding new port for caml-json-wheel.

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

Added: trunk/dports/devel/caml-json-wheel/Portfile
===================================================================
--- trunk/dports/devel/caml-json-wheel/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-json-wheel/Portfile	2009-07-14 22:39:59 UTC (rev 53818)
@@ -0,0 +1,45 @@
+# $Id$
+
+PortSystem          1.0
+
+name                caml-json-wheel
+version             1.0.6
+categories          devel ml
+maintainers         anil at recoil.org
+description         JSON parsing library for OCaml
+long_description    Implements RFC4627 for parsing the JSON interchange format.\
+                    Uses key/value pairs to represent objects, and lists to \
+                    represent JSON arrays.  Also provides pretty-print support.
+homepage            http://martin.jambon.free.fr/json-wheel.html
+platforms           darwin
+master_sites        http://martin.jambon.free.fr/
+
+distname            json-wheel-${version}
+use_bzip2           yes
+
+checksums           md5 8685ecee7a7416c77c14fbdf05c5a06e \
+                    sha1 dea8a5b3bd580c39f3cfb3139aeca4fef653aa31 \
+                    rmd160 cd31f74e67c4241dbb3e3b792440d02ea45b739b
+
+depends_lib         port:ocaml \
+                    port:caml-findlib \
+                    port:caml-ocamlnet
+
+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 opt
+
+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/e8310878/attachment.html>


More information about the macports-changes mailing list