diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-json-wheel/Portfile devel/caml-json-wheel/Portfile
--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-json-wheel/Portfile	1970-01-01 01:00:00.000000000 +0100
+++ devel/caml-json-wheel/Portfile	2009-04-13 15:40:52.000000000 +0200
@@ -0,0 +1,45 @@
+# $Id$
+
+PortSystem          1.0
+
+name                caml-json-wheel
+version             1.0.6
+categories          devel ml
+maintainers         anil@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]"
+}

