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), 10 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 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 4 5 PortGroup perl5 1.0 5 6 6 perl5.branches 5.16 7 perl5.branches 5.16 5.18 5.20 7 8 perl5.setup Test-Unit 0.25 8 9 revision 1 9 10 license {Artistic-1 GPL-1} … … 11 12 description The PerlUnit testing framework 12 13 long_description ${description} 13 14 15 checksums rmd160 c5771ec693b5e1224c905ddd564c94f9277a0e79 \ 16 sha256 5bd36b7262b849aef07510df53081f3858893a583021f8e831d9a497be31dfaf 17 14 18 platforms darwin 15 16 checksums md5 bbd92a461996ae978ac378eae477bd79 \17 sha256 5bd36b7262b849aef07510df53081f3858893a583021f8e831d9a497be31dfaf18 19 19 supported_archs noarch 20 20 21 21 if {${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 24 27 } -
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 {