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
5 # - Fill in your dependencies in PREREQ_PM
6 # Alternatively, you can say the hell with this and use h2xs.
8 use ExtUtils::MakeMaker;
9 eval 'use ExtUtils::MakeMaker::Coverage';
11 $PACKAGE = 'XSLoader';
12 ($PACKAGE_FILE = $PACKAGE) =~ s|::|/|g;
15 eval "require $PACKAGE";
17 unless ($@) { # Make sure we did find the module.
18 print <<"CHANGE_WARN" if ${$PACKAGE.'::VERSION'} < $LAST_API_CHANGE;
20 NOTE: There have been API changes between this version and any older
21 than version $LAST_API_CHANGE! Please read the Changes file if you
22 are upgrading from a version older than $LAST_API_CHANGE.
27 # In case the empty lib/ directory was not created.
28 mkdir 'lib', 0755 unless $ENV{PERL_CORE};
30 # starting with Perl 5.11, "site" and "vendor" directories finally are
31 # before "perl" (core) in @INC, thus allowing dual-life modules to be
32 # updated without the need to overwrite the old version
33 my $installdirs = $] < 5.011 ? "perl" : "site";
38 AUTHOR => 'Sebastien Aperghis-Tramoni <sebastien@aperghis.net>',
39 VERSION_FROM => 'XSLoader_pm.PL',
40 ABSTRACT_FROM => 'XSLoader_pm.PL',
41 INSTALLDIRS => $installdirs,
42 PL_FILES => { 'XSLoader_pm.PL' => 'XSLoader.pm' },
43 PM => { 'XSLoader.pm' => '$(INST_ARCHLIB)/XSLoader.pm' },
45 'Test::More' => '0.47',
49 repository => 'git://perl5.git.perl.org/perl.git',
50 license => 'http://dev.perl.org/licenses/',
51 homepage => 'https://metacpan.org/module/Math::BigInt',
52 irc => 'irc://irc.perl.org/#p5p',
53 mailinglist => 'http://lists.perl.org/list/perl5-porters.html',
54 bugtracker => "https://rt.perl.org/rt3/Search/Results.html?Query=Queue='perl5' AND Content LIKE 'module=XSLoader' AND (Status='open' OR Status='new' OR Status='stalled')",
57 dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
58 clean => { FILES => 'XSLoader-* XSLoader.pm' },
61 # Unlink the .pm file included with the distribution
62 1 while unlink "XSLoader.pm";
67 sub test_via_harness {
68 my($self, $orig_perl, $tests) = @_;
70 my @perls = ($orig_perl);
71 push @perls, qw(bleadperl
78 if $ENV{PERL_TEST_ALL};
81 foreach my $perl (@perls) {
82 $out .= $self->SUPER::test_via_harness($perl, $tests);