Ticket #46756: p5-test-unit.p5.20.Portfile.patch

File p5-test-unit.p5.20.Portfile.patch, 1.9 KB (added by mojca (Mojca Miklavec), 9 years ago)
  • Portfile

     
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem          1.0
    45PortGroup           perl5 1.0
    56
    6 perl5.branches      5.16
     7perl5.branches      5.16 5.18 5.20
    78perl5.setup         Test-Unit 0.25
    89revision            1
    910license             {Artistic-1 GPL-1}
     
    1112description         The PerlUnit testing framework
    1213long_description    ${description}
    1314
     15checksums           rmd160  c5771ec693b5e1224c905ddd564c94f9277a0e79 \
     16                    sha256  5bd36b7262b849aef07510df53081f3858893a583021f8e831d9a497be31dfaf
     17
    1418platforms           darwin
    15 
    16 checksums           md5    bbd92a461996ae978ac378eae477bd79 \
    17                     sha256 5bd36b7262b849aef07510df53081f3858893a583021f8e831d9a497be31dfaf
    18 
    1919supported_archs     noarch
    2020
    2121if {${perl5.major} != ""} {
    22 depends_lib-append  port:p${perl5.major}-class-inner \
    23                     port:p${perl5.major}-devel-symdump
     22    depends_lib-append \
     23                    port:p${perl5.major}-class-inner \
     24                    port:p${perl5.major}-devel-symdump \
     25                    port:p${perl5.major}-error
     26    patchfiles      patch-lib-Test-Unit-TestCase.pm.diff
    2427}
  • files/patch-lib-Test-Unit-TestCase.pm.diff

     
     1--- lib/Test/Unit/TestCase.pm.orig
     2+++ lib/Test/Unit/TestCase.pm
     3@@ -103,7 +103,7 @@ sub list_tests {
     4     my $class = ref($_[0]) || $_[0];
     5     my @tests = ();
     6     no strict 'refs';
     7-    if (defined(@{"$class\::TESTS"})) {
     8+    if (@{"$class\::TESTS"}) {
     9         push @tests, @{"$class\::TESTS"};
     10     }
     11     else {