[58751] trunk/dports/devel/cryptokit
avsm at macports.org
avsm at macports.org
Sun Oct 4 12:33:53 PDT 2009
Revision: 58751
http://trac.macports.org/changeset/58751
Author: avsm at macports.org
Date: 2009-10-04 12:33:50 -0700 (Sun, 04 Oct 2009)
Log Message:
-----------
update to cryptokit 1.3 and make packaging ocamlfind compatible
Modified Paths:
--------------
trunk/dports/devel/cryptokit/Portfile
Added Paths:
-----------
trunk/dports/devel/cryptokit/files/
trunk/dports/devel/cryptokit/files/patch-META
trunk/dports/devel/cryptokit/files/patch-Makefile
Modified: trunk/dports/devel/cryptokit/Portfile
===================================================================
--- trunk/dports/devel/cryptokit/Portfile 2009-10-04 10:53:50 UTC (rev 58750)
+++ trunk/dports/devel/cryptokit/Portfile 2009-10-04 19:33:50 UTC (rev 58751)
@@ -2,9 +2,9 @@
PortSystem 1.0
name cryptokit
-version 1.2
+version 1.3
categories devel security
-maintainers recoil.org:anil
+maintainers avsm
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 \
@@ -13,17 +13,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 patch-Makefile
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}
}
Added: trunk/dports/devel/cryptokit/files/patch-META
===================================================================
--- trunk/dports/devel/cryptokit/files/patch-META (rev 0)
+++ trunk/dports/devel/cryptokit/files/patch-META 2009-10-04 19:33:50 UTC (rev 58751)
@@ -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"
Added: trunk/dports/devel/cryptokit/files/patch-Makefile
===================================================================
--- trunk/dports/devel/cryptokit/files/patch-Makefile (rev 0)
+++ trunk/dports/devel/cryptokit/files/patch-Makefile 2009-10-04 19:33:50 UTC (rev 58751)
@@ -0,0 +1,30 @@
+--- Makefile.orig 2005-04-20 14:19:54.000000000 +0100
++++ Makefile 2009-08-01 00:40:39.000000000 +0100
+@@ -46,7 +46,7 @@
+
+ all: libcryptokit.a cryptokit.cmi cryptokit.cma
+
+-allopt: libcryptokit.a cryptokit.cmi cryptokit.cmxa
++allopt: libcryptokit.a cryptokit.cmi cryptokit.cmxs
+
+ libcryptokit.a: $(C_OBJS)
+ $(MKLIB) -o cryptokit $(C_OBJS) -L$(ZLIB_LIBDIR) $(ZLIB_LIB)
+@@ -57,6 +57,9 @@
+ cryptokit.cmxa: $(CAML_OBJS:.cmo=.cmx)
+ $(MKLIB) -o cryptokit $(CAML_OBJS:.cmo=.cmx) -L$(ZLIB_LIBDIR) $(ZLIB_LIB)
+
++cryptokit.cmxs: cryptokit.cmxa
++ $(OCAMLOPT) -shared -linkall -o $@ $< -cclib "-L. -L$(ZLIB_LIBDIR) $(ZLIB_LIB)"
++
+ test: test.byt
+ $(OCAMLRUN) -I . ./test.byt
+
+@@ -77,7 +80,7 @@
+ cp cryptokit.cmi cryptokit.cma cryptokit.mli $(INSTALLDIR)
+ cp libcryptokit.a $(INSTALLDIR)
+ if test -f dllcryptokit.so; then cp dllcryptokit.so $(INSTALLDIR)/stublibs; fi
+- if test -f cryptokit.cmxa; then cp cryptokit.cmxa cryptokit.cmx cryptokit.a $(INSTALLDIR); fi
++ if test -f cryptokit.cmxa; then cp cryptokit.cmxa cryptokit.cmxs cryptokit.cmx cryptokit.a $(INSTALLDIR); fi
+
+ doc: FORCE
+ cd doc; $(OCAMLDOC) -html -I .. ../cryptokit.mli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091004/bac9ec15/attachment.html>
More information about the macports-changes
mailing list