[84771] trunk/dports/devel/cryptokit/Portfile

mww at macports.org mww at macports.org
Sat Oct 1 07:02:03 PDT 2011


Revision: 84771
          http://trac.macports.org/changeset/84771
Author:   mww at macports.org
Date:     2011-10-01 07:01:58 -0700 (Sat, 01 Oct 2011)
Log Message:
-----------
cryptokit: use ocaml group; install documentation; inc. revision

Modified Paths:
--------------
    trunk/dports/devel/cryptokit/Portfile

Modified: trunk/dports/devel/cryptokit/Portfile
===================================================================
--- trunk/dports/devel/cryptokit/Portfile	2011-10-01 10:43:31 UTC (rev 84770)
+++ trunk/dports/devel/cryptokit/Portfile	2011-10-01 14:01:58 UTC (rev 84771)
@@ -1,10 +1,12 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup ocaml 1.0
 
 name                cryptokit
 version             1.5
-categories          devel security
+revision            1
+categories          ml devel security
 maintainers         mww openmaintainer
 description         Objective Caml interface to cryptographic functions.
 long_description    The Cryptokit library for Objective Caml provides a \
@@ -17,26 +19,13 @@
 checksums           md5     4393bf2b20f8e18eb732c078d582d5ec \
                     sha1    63e1ca4918186bcc7f5e7f6566c765261c4abef3 \
                     rmd160  7e1e179c3970ac8b0cdbac1ef18e9ea79de6526e
-depends_lib         port:ocaml port:caml-findlib
+depends_lib         port:ocaml port:caml-findlib port:zlib
 
-set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
+use_oasis           yes
+use_oasis_doc       yes
 
-# cheat the system by providing a thin ocamlfind-wrapper that obeys destdir
-post-extract {
-    system -W ${worksrcpath} "echo ${prefix}/bin/ocamlfind \\$* -destdir ${ocamlfind_destdir} -ldconf ignore > ocamlfind"
-    system -W ${worksrcpath} "chmod +x ocamlfind"
-}
-configure { system -W ${worksrcpath} "ocaml setup.ml -configure --prefix ${prefix} --destdir ${destroot}" }
-post-configure {
-    reinplace "s|${prefix}/bin/ocamlfind|${worksrcpath}/ocamlfind|g" ${worksrcpath}/setup.data
-}
+configure.args-append "--override docdir ${destroot}${prefix}/share/doc"
 
-build { system -W ${worksrcpath} "ocaml setup.ml -build" }
-destroot {
-    xinstall -d -m 755 ${ocamlfind_destdir}
-    system -W ${worksrcpath} "ocaml setup.ml -install"
-}
-
 livecheck.type      regex
 livecheck.url       http://caml.inria.fr/distrib/bazar-ocaml/
 livecheck.regex     {>cryptokit-(.*)\.tar\.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111001/188216cf/attachment.html>


More information about the macports-changes mailing list