Ticket #50667: pv.patch

File pv.patch, 1.5 KB (added by eborisch (Eric A. Borisch), 9 years ago)
  • Portfile

     
    55PortGroup           muniversal 1.0
    66
    77name                pv
    8 version             1.4.6
     8version             1.6.0
    99categories          sysutils
    1010platforms           darwin
    1111maintainers         me.com:mark.carver openmaintainer
     
    2525
    2626use_bzip2           yes
    2727
    28 checksums           rmd160  ecbcc4791acd108bfee09f49280808d1470e37c2 \
    29                     sha256  edfea0033ec6222eb60b4ec6d905dd2dccdb5900beef03f67f42ca9ed67e9fe2
     28checksums \
     29    rmd160  c1271f71df99db9e8b9df3f491bd2d18ebab4b68 \
     30    sha256  0ece824e0da27b384d11d1de371f20cafac465e038041adab57fcf4b5036ef8d
    3031
    3132configure.args      --mandir=${prefix}/share/man \
    3233                    --infodir=${prefix}/share/info
     
    3435depends_lib         port:gettext
    3536
    3637if {${os.platform} eq "darwin" && ${os.major} != 9} {
    37     # Leopard is the only release where stat64 exists and is not deprecated
    38     patchfiles-append stat64.diff
     38    # Leopard is the only release where stat64 exists and is not deprecated.
     39    # Rather than updating a patch to replace each instance, use the deprecated
     40    # interface as long as it exists, just don't complain about it. (configure
     41    # script runs a check.)
     42    configure.cppflags-append -Wno-deprecated
     43}
     44
     45patch {
     46    reinplace "/fscanf/s/Lu/llu/" src/pv/watchpid.c
    3947}
    4048
    4149livecheck.type      regex