~ubuntu-branches/ubuntu/edgy/libmodule-info-perl/edgy

« back to all changes in this revision

Viewing changes to Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Jay Bonci
  • Date: 2003-10-06 10:51:04 UTC
  • Revision ID: james.westby@ubuntu.com-20031006105104-1b67d55zyyay6jvo
Tags: upstream-0.24
ImportĀ upstreamĀ versionĀ 0.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.004;
 
9
 
 
10
use ExtUtils::MakeMaker;
 
11
 
 
12
$PACKAGE = 'Module::Info';
 
13
($PACKAGE_FILE = $PACKAGE) =~ s|::|/|g;
 
14
$LAST_API_CHANGE = 0;
 
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
    VERSION_FROM    => "lib/$PACKAGE_FILE.pm", # finds $VERSION
 
31
    PREREQ_PM       => { File::Spec => 0.8 },
 
32
    'dist'          => { COMPRESS   => 'gzip -9',
 
33
                         SUFFIX     => '.gz',
 
34
                         DIST_DEFAULT   => 'all tardist',
 
35
                       },
 
36
    EXE_FILES       => [qw(bin/pfunc bin/module_info)],
 
37
);
 
38
 
 
39
 
 
40
{
 
41
    package MY;
 
42
 
 
43
    sub test_via_harness {
 
44
        my($self, $orig_perl, $tests) = @_;
 
45
 
 
46
        my @perls = ($orig_perl);
 
47
        push @perls, qw(bleadperl
 
48
                        perl5.6.1
 
49
                        perl5.6.0
 
50
                        perl5.005_03
 
51
                        perl5.004_05
 
52
                        perl5.004_04
 
53
                        perl5.004
 
54
                       )
 
55
          if $ENV{PERL_TEST_ALL};
 
56
 
 
57
        my $out;
 
58
        foreach my $perl (@perls) {
 
59
            $out .= $self->SUPER::test_via_harness($perl, $tests);
 
60
        }
 
61
 
 
62
        return $out;
 
63
    }
 
64
}