Ticket #18786: devel--cryptokit.patch

File devel--cryptokit.patch, 2.7 KB (added by Damien.Pollet@…, 16 years ago)
  • devel/cryptokit/Portfile

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/cryptokit/Portfile devel/cryptokit/Portfile
    old new  
    22
    33PortSystem          1.0
    44name                cryptokit
    5 version             1.2
     5version             1.3
     6revision            1
    67categories          devel security
    78maintainers         anil@recoil.org
    89description         Objective Caml interface to cryptographic functions.
     
    1314homepage            http://pauillac.inria.fr/~xleroy/software.html
    1415platforms           darwin
    1516master_sites        http://caml.inria.fr/distrib/bazar-ocaml/
    16 checksums           md5 0249135953f10c1515e88985b45ee4c9
     17checksums           md5     d7de01d0702d16b3491c9e794ebb2cc3 \
     18                    sha1    aebb0b2ed7c89320006de63b73ab639051888a9c \
     19                    rmd160  bdf1ec365562b534b7995d0f2c3fc06ec203111f
    1720depends_lib         bin:camlp4:ocaml
    1821use_configure       no
    19 build.target        all allopt
     22build.target        all allopt doc
    2023
    21 set instdir         ${destroot}${prefix}/lib/ocaml/
    22 destroot.args       INSTALLDIR=${instdir}
     24set instdir         ${destroot}${prefix}/lib/ocaml/site-lib
     25destroot.args       INSTALLDIR=${instdir}/cryptokit
     26patchfiles          patch-META
    2327pre-destroot {
    24         file mkdir ${instdir}
     28        file mkdir ${instdir}/cryptokit/stublibs
     29        file mkdir ${instdir}/stublibs
    2530}
    2631post-destroot {
    27         system "ranlib ${instdir}/cryptokit.a"
    28         system "ranlib ${instdir}/libcryptokit.a"
     32        system "ranlib ${instdir}/cryptokit/cryptokit.a"
     33        system "ranlib ${instdir}/cryptokit/libcryptokit.a"
     34        xinstall ${worksrcpath}/META ${instdir}/cryptokit/META
     35        system "mv ${instdir}/cryptokit/stublibs/*.so ${instdir}/stublibs/"
     36        xinstall -d -755 ${destroot}${prefix}/share/doc/${name}
     37        eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
     38            ${destroot}/${prefix}/share/doc/${name}
    2939}
  • devel/cryptokit/files/patch-META

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/cryptokit/files/patch-META devel/cryptokit/files/patch-META
    old new  
     1--- META.orig   2009-03-06 02:57:10.000000000 +0000
     2+++ META        2009-03-06 05:29:58.000000000 +0000
     3@@ -0,0 +1,6 @@
     4+name="cryptokit"
     5+version="1.3"
     6+description="Cryptographic primitives"
     7+requires="num unix"
     8+archive(byte)="cryptokit.cma"
     9+archive(native)="cryptokit.cmxa"