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

mww at macports.org mww at macports.org
Wed Sep 21 06:09:07 PDT 2011


Revision: 84242
          http://trac.macports.org/changeset/84242
Author:   mww at macports.org
Date:     2011-09-21 06:09:07 -0700 (Wed, 21 Sep 2011)
Log Message:
-----------
cryptokit: version 1.5; take (open-)maintainership;

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

Modified: trunk/dports/devel/cryptokit/Portfile
===================================================================
--- trunk/dports/devel/cryptokit/Portfile	2011-09-21 12:45:52 UTC (rev 84241)
+++ trunk/dports/devel/cryptokit/Portfile	2011-09-21 13:09:07 UTC (rev 84242)
@@ -1,10 +1,11 @@
 # $Id$
 
-PortSystem          1.0
+PortSystem 1.0
+
 name                cryptokit
-version             1.3
+version             1.5
 categories          devel security
-maintainers         nomaintainer
+maintainers         mww openmaintainer
 description         Objective Caml interface to cryptographic functions.
 long_description    The Cryptokit library for Objective Caml provides a \
                     variety of cryptographic primitives that can be used to \
@@ -12,32 +13,31 @@
                     applications.
 homepage            http://pauillac.inria.fr/~xleroy/software.html
 platforms           darwin
-master_sites        http://caml.inria.fr/distrib/bazar-ocaml/
-checksums           md5     d7de01d0702d16b3491c9e794ebb2cc3 \
-                    sha1    aebb0b2ed7c89320006de63b73ab639051888a9c \
-                    rmd160  bdf1ec365562b534b7995d0f2c3fc06ec203111f
-depends_lib         bin:camlp4:ocaml
-use_configure       no
-build.target        all allopt doc
+master_sites        http://forge.ocamlcore.org/frs/download.php/639/
+checksums           md5     4393bf2b20f8e18eb732c078d582d5ec \
+                    sha1    63e1ca4918186bcc7f5e7f6566c765261c4abef3 \
+                    rmd160  7e1e179c3970ac8b0cdbac1ef18e9ea79de6526e
+depends_lib         port:ocaml
 
-set instdir         ${destroot}${prefix}/lib/ocaml/site-lib
-destroot.args       INSTALLDIR=${instdir}/cryptokit
-patchfiles          patch-META patch-Makefile
+set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
 
+# 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
+}
+
+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}
 
-pre-destroot {
-        file mkdir ${instdir}/cryptokit/stublibs
-        file mkdir ${instdir}/stublibs
-}
-post-destroot {
-        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}
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110921/42930e81/attachment.html>


More information about the macports-changes mailing list