Ticket #44323: gnutls.2.diff

File gnutls.2.diff, 1.0 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    global mtime
     45    # Save old mtime.
     46    set mtime [file mtime ${worksrcpath}/lib/includes/gnutls/gnutls.h.in]
     47}
     48
     49patchfiles      patch-lib-includes-gnutls-gnutls.h.in.diff
     50
    4251post-patch {
     52    global mtime
     53    # Restore old mtime so that it doesn't try to regenerate documentation, which fails on OS X.
     54    file mtime ${worksrcpath}/lib/includes/gnutls/gnutls.h.in ${mtime}
     55
    4356    # Remove comments which confuse at least Leopard's assembler.
    4457    eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s]
    4558}