Subject: [PATCH] Hash::Util & restricted hash touch up, part 1
[p5sagit/p5-mst-13.2.git] / ext / Data / Util / Makefile.PL
1 # A template for Makefile.PL.
2 # - Set the $PACKAGE variable to the name of your module.
3 # - Set $LAST_API_CHANGE to reflect the last version you changed the API 
4 #   of your module.
5 # - Fill in your dependencies in PREREQ_PM
6 # Alternatively, you can say the hell with this and use h2xs.
7
8 require 5.007003;
9
10 use ExtUtils::MakeMaker;
11
12 $PACKAGE = 'Data::Util';
13 ($PACKAGE_FILE = $PACKAGE) =~ s|::|/|g;
14 $LAST_API_CHANGE = 0.03;
15
16 eval "require $PACKAGE";
17
18 unless ($@) { # Make sure we did find the module.
19     print <<"CHANGE_WARN" if ${$PACKAGE.'::VERSION'} < $LAST_API_CHANGE;
20
21 NOTE: There have been API changes between this version and any older
22 than version $LAST_API_CHANGE!  Please read the Changes file if you
23 are upgrading from a version older than $LAST_API_CHANGE.
24
25 CHANGE_WARN
26 }
27
28 WriteMakefile(
29     NAME            => $PACKAGE,
30     DISTNAME        => 'Data-Hash-Utils',
31     VERSION_FROM    => "lib/$PACKAGE_FILE.pm", # finds $VERSION
32     PREREQ_PM       => {   },
33 );
34
35
36 {
37     package MY;
38
39     sub test_via_harness {
40         my($self, $orig_perl, $tests) = @_;
41
42         my @perls = ($orig_perl);
43         push @perls, qw(bleadperl)
44           if $ENV{PERL_TEST_ALL};
45
46         my $out;
47         foreach my $perl (@perls) {
48             $out .= $self->SUPER::test_via_harness($perl, $tests);
49         }
50
51         return $out;
52     }
53 }