Ticket #46227: patch-xml-parser-2.44.diff

File patch-xml-parser-2.44.diff, 1.8 KB (added by dbevans (David B. Evans), 10 years ago)

Proposed patch revised

  • Portfile

     
    55PortGroup           perl5 1.0
    66
    77perl5.branches      5.16 5.18 5.20
    8 # https://trac.macports.org/ticket/46227
    9 perl5.setup         XML-Parser 2.41
    10 revision            1
     8perl5.setup         XML-Parser 2.44
    119maintainers         phoenixtrap.com:mjg
    1210platforms           darwin
    1311categories-append   textproc
     
    1614
    1715long_description    A perl module for parsing XML documents using expat.
    1816
    19 checksums           rmd160  61252e5f33b205246f51c668180311e6cbd60111 \
    20                     sha256  b48197cd2265a26c5f016489f11a7b450d8833cb8b3d6a46ee15975740894de9
     17checksums           rmd160  59c4f47030ef7d753ddf51e604c0fa505243c8f2 \
     18                    sha256  1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216
    2119
    2220if {${perl5.major} != ""} {
    2321    depends_lib-append \
    24                     port:expat
    25     patchfiles      patch-CheckLib.pm.diff
     22                    port:expat \
     23                    port:p${perl5.major}-libwww-perl
    2624}
  • files/patch-CheckLib.pm.diff

     
    1 --- inc/Devel/CheckLib.pm.orig  2011-05-24 21:39:14.000000000 -0600
    2 +++ inc/Devel/CheckLib.pm       2014-07-21 14:04:44.000000000 -0600
    3 @@ -332,6 +332,8 @@
    4  }
    5      
    6  sub _findcc {
    7 +    my @cc = split(/\s+/, $ENV{CC});
    8 +    return @cc if -x $cc[0];
    9      # Need to use $keep=1 to work with MSWin32 backslashes and quotes
    10      my @Config_ccflags_ldflags =  @Config{qw(ccflags ldflags)};  # use copy so ASPerl will compile
    11      my @flags = grep { length } map { quotewords('\s+', 1, $_ || ()) } @Config_ccflags_ldflags;