Ticket #44323: gnutls.3.diff

File gnutls.3.diff, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 10 years ago)
  • Portfile

     
    66
    77name            gnutls
    88version         3.3.5
     9revision        1
    910set branch      [join [lrange [split ${version} .] 0 1] .]
    1011categories      devel security
    1112# yes, some of the libs are GPL only
     
    3940                port:nettle \
    4041                path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
    4142
     43pre-patch {
     44    # Save old mtimes.
     45    global mtime_abstract mtime_gnutls mtime_ocsp mtime_pkcs11 mtime_x509
     46    set mtime_abstract [file mtime ${worksrcpath}/lib/includes/gnutls/abstract.h]
     47    set mtime_gnutls [file mtime ${worksrcpath}/lib/includes/gnutls/gnutls.h.in]
     48    set mtime_ocsp [file mtime ${worksrcpath}/lib/includes/gnutls/ocsp.h]
     49    set mtime_pkcs11 [file mtime ${worksrcpath}/lib/includes/gnutls/pkcs11.h]
     50    set mtime_x509 [file mtime ${worksrcpath}/lib/includes/gnutls/x509.h]
     51}
     52
     53patchfiles      patch-c89.diff
     54
    4255post-patch {
     56    # Restore old mtimes so that it doesn't try to regenerate documentation, which fails on OS X.
     57    global mtime_abstract mtime_gnutls mtime_ocsp mtime_pkcs11 mtime_x509
     58    file mtime ${worksrcpath}/lib/includes/gnutls/abstract.h ${mtime_abstract}
     59    file mtime ${worksrcpath}/lib/includes/gnutls/gnutls.h.in ${mtime_gnutls}
     60    file mtime ${worksrcpath}/lib/includes/gnutls/ocsp.h ${mtime_ocsp}
     61    file mtime ${worksrcpath}/lib/includes/gnutls/pkcs11.h ${mtime_pkcs11}
     62    file mtime ${worksrcpath}/lib/includes/gnutls/x509.h ${mtime_x509}
     63
    4364    # Remove comments which confuse at least Leopard's assembler.
    4465    eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s]
    4566}