Ticket #44753: Portfile-gnutls.diff
File Portfile-gnutls.diff, 2.6 KB (added by Schamschula (Marius Schamschula), 10 years ago) |
---|
-
Portfile
old new 1 1 # -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4 2 # $Id: Portfile 12 3721 2014-08-13 18:44:22Z ryandesign@macports.org $2 # $Id: Portfile 121522 2014-06-28 08:25:08Z ryandesign@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 PortGroup muniversal 1.0 6 6 7 7 name gnutls 8 version 3.3. 68 version 3.3.7 9 9 set branch [join [lrange [split ${version} .] 0 1] .] 10 10 categories devel security 11 11 # yes, some of the libs are GPL only … … 24 24 master_sites ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/ \ 25 25 http://archive.hmug.org/src/gnutls/ 26 26 27 checksums rmd160 80a8d77e265fdca3bf4adee174ff8a8d7376ecc2\28 sha256 edc9df4c1faab96002ddcab041322bee386c2cdd22c958f7d1f3bad914af5a9e27 checksums rmd160 7207cc3c4442a4116bcc499eb13cbf8b4d6235f1 \ 28 sha256 52d86c1bf2ff142c5499037db812d06d42e29bcfefe1fdd2035aaab38677c79f 29 29 30 30 use_xz yes 31 31 … … 39 39 port:nettle \ 40 40 path:share/curl/curl-ca-bundle.crt:curl-ca-bundle 41 41 42 pre-patch {43 # Save old mtimes.44 global mtime_abstract mtime_gnutls mtime_ocsp mtime_pkcs11 mtime_x50945 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.diff53 54 42 post-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_x50957 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 63 43 # Remove comments which confuse at least Leopard's assembler. 64 44 eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s] 65 45 } … … 125 105 } 126 106 127 107 livecheck.type regex 128 livecheck.url ${master_sites}108 livecheck.url ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/ 129 109 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"