Ticket #44753: Portfile-gnutls.diff

File Portfile-gnutls.diff, 2.6 KB (added by Schamschula (Marius Schamschula), 10 years ago)
  • Portfile

    old new  
    11# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
    2 # $Id: Portfile 123721 2014-08-13 18:44:22Z ryandesign@macports.org $
     2# $Id: Portfile 121522 2014-06-28 08:25:08Z ryandesign@macports.org $
    33
    44PortSystem      1.0
    55PortGroup       muniversal 1.0
    66
    77name            gnutls
    8 version         3.3.6
     8version         3.3.7
    99set branch      [join [lrange [split ${version} .] 0 1] .]
    1010categories      devel security
    1111# yes, some of the libs are GPL only
     
    2424master_sites    ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/ \
    2525                http://archive.hmug.org/src/gnutls/
    2626
    27 checksums       rmd160  80a8d77e265fdca3bf4adee174ff8a8d7376ecc2 \
    28                 sha256  edc9df4c1faab96002ddcab041322bee386c2cdd22c958f7d1f3bad914af5a9e
     27checksums       rmd160  7207cc3c4442a4116bcc499eb13cbf8b4d6235f1 \
     28                sha256  52d86c1bf2ff142c5499037db812d06d42e29bcfefe1fdd2035aaab38677c79f
    2929
    3030use_xz          yes
    3131
     
    3939                port:nettle \
    4040                path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
    4141
    42 pre-patch {
    43     # Save old mtimes.
    44     global mtime_abstract mtime_gnutls mtime_ocsp mtime_pkcs11 mtime_x509
    45     set mtime_abstract [file mtime ${worksrcpath}/lib/includes/gnutls/abstract.h]
    46     set mtime_gnutls [file mtime ${worksrcpath}/lib/includes/gnutls/gnutls.h.in]
    47     set mtime_ocsp [file mtime ${worksrcpath}/lib/includes/gnutls/ocsp.h]
    48     set mtime_pkcs11 [file mtime ${worksrcpath}/lib/includes/gnutls/pkcs11.h]
    49     set mtime_x509 [file mtime ${worksrcpath}/lib/includes/gnutls/x509.h]
    50 }
    51 
    52 patchfiles      patch-c89.diff
    53 
    5442post-patch {
    55     # Restore old mtimes so that it doesn't try to regenerate documentation, which fails on OS X.
    56     global mtime_abstract mtime_gnutls mtime_ocsp mtime_pkcs11 mtime_x509
    57     file mtime ${worksrcpath}/lib/includes/gnutls/abstract.h ${mtime_abstract}
    58     file mtime ${worksrcpath}/lib/includes/gnutls/gnutls.h.in ${mtime_gnutls}
    59     file mtime ${worksrcpath}/lib/includes/gnutls/ocsp.h ${mtime_ocsp}
    60     file mtime ${worksrcpath}/lib/includes/gnutls/pkcs11.h ${mtime_pkcs11}
    61     file mtime ${worksrcpath}/lib/includes/gnutls/x509.h ${mtime_x509}
    62 
    6343    # Remove comments which confuse at least Leopard's assembler.
    6444    eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s]
    6545}
     
    125105}
    126106
    127107livecheck.type  regex
    128 livecheck.url   ${master_sites}
     108livecheck.url   ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/
    129109livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"