diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/cryptokit/Portfile devel/cryptokit/Portfile
--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/cryptokit/Portfile	2006-11-01 02:45:51.000000000 +0100
+++ devel/cryptokit/Portfile	2009-04-13 15:40:52.000000000 +0200
@@ -2,7 +2,8 @@
 
 PortSystem          1.0
 name                cryptokit
-version             1.2
+version             1.3
+revision            1
 categories          devel security
 maintainers         anil@recoil.org
 description         Objective Caml interface to cryptographic functions.
@@ -13,17 +14,26 @@
 homepage            http://pauillac.inria.fr/~xleroy/software.html
 platforms           darwin
 master_sites        http://caml.inria.fr/distrib/bazar-ocaml/
-checksums           md5 0249135953f10c1515e88985b45ee4c9
+checksums           md5     d7de01d0702d16b3491c9e794ebb2cc3 \
+                    sha1    aebb0b2ed7c89320006de63b73ab639051888a9c \
+                    rmd160  bdf1ec365562b534b7995d0f2c3fc06ec203111f
 depends_lib         bin:camlp4:ocaml
 use_configure       no
-build.target        all allopt
+build.target        all allopt doc
 
-set instdir         ${destroot}${prefix}/lib/ocaml/
-destroot.args       INSTALLDIR=${instdir}
+set instdir         ${destroot}${prefix}/lib/ocaml/site-lib
+destroot.args       INSTALLDIR=${instdir}/cryptokit
+patchfiles          patch-META
 pre-destroot {
-        file mkdir ${instdir}
+        file mkdir ${instdir}/cryptokit/stublibs
+        file mkdir ${instdir}/stublibs
 }
 post-destroot {
-        system "ranlib ${instdir}/cryptokit.a"
-        system "ranlib ${instdir}/libcryptokit.a"
+        system "ranlib ${instdir}/cryptokit/cryptokit.a"
+        system "ranlib ${instdir}/cryptokit/libcryptokit.a"
+        xinstall ${worksrcpath}/META ${instdir}/cryptokit/META
+        system "mv ${instdir}/cryptokit/stublibs/*.so ${instdir}/stublibs/"
+        xinstall -d -755 ${destroot}${prefix}/share/doc/${name}
+        eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
+            ${destroot}/${prefix}/share/doc/${name}
 }
diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/cryptokit/files/patch-META devel/cryptokit/files/patch-META
--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/cryptokit/files/patch-META	1970-01-01 01:00:00.000000000 +0100
+++ devel/cryptokit/files/patch-META	2009-04-13 15:40:52.000000000 +0200
@@ -0,0 +1,9 @@
+--- META.orig	2009-03-06 02:57:10.000000000 +0000
++++ META	2009-03-06 05:29:58.000000000 +0000
+@@ -0,0 +1,6 @@
++name="cryptokit"
++version="1.3"
++description="Cryptographic primitives"
++requires="num unix"
++archive(byte)="cryptokit.cma"
++archive(native)="cryptokit.cmxa"

