From: Peter Rabbitson Date: Fri, 7 Dec 2012 06:04:47 +0000 (+0100) Subject: We don't always need Devel::Hide (RT#81106) X-Git-Tag: 0.25~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=38a897e9c77a71c63e750d85a25934e7c5937cae;p=gitmo%2FClass-C3.git We don't always need Devel::Hide (RT#81106) --- diff --git a/ChangeLog b/ChangeLog index e676a6d..43e742d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ Revision history for Perl extension Class::C3. - Pod typo fixes (RT#77453) + - Only ask for Devel::Hide on perls where it will be actually used + (RT#81106) 0.24 Sat, May 12, 2012 - Require Class::C3::XS on 5.8 perls if a working compiler is found diff --git a/Makefile.PL b/Makefile.PL index 9de5dd2..0fcdc76 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -16,12 +16,11 @@ test_requires 'Test::More' => '0.47'; requires 'Algorithm::C3' => '0.07'; requires 'Scalar::Util' => '0'; -# XS not interesting after mro is cored -requires 'Class::C3::XS' => '0.13' - if $] < 5.009_005 and can_xs(); - -test_requires 'Devel::Hide' => 0 - if is_smoker(); +if ($] < 5.009_005) { + # XS not interesting after mro is cored + requires 'Class::C3::XS' => '0.13' if can_xs(); + test_requires 'Devel::Hide' => 0 if is_smoker(); +} if($Module::Install::AUTHOR) { # compiler detection, goes into META