5 use ExtUtils::MakeMaker;
6 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
17 homepage => 'http://search.cpan.org/dist/Sub-Exporter-Progressive/',
18 repository => 'git://git.shadowcat.co.uk/p5sagit/Sub-Exporter-Progressive.git',
19 bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Sub-Exporter-Progressive',
21 requires => \%RUN_DEPS,
25 my $mymeta_works = eval { ExtUtils::MakeMaker->VERSION('6.5707'); 1 };
26 my $mymeta = $mymeta_works || eval { ExtUtils::MakeMaker->VERSION('6.5702'); 1 };
28 my %WriteMakefileArgs = (
29 NAME => 'Sub::Exporter::Progressive',
30 VERSION_FROM => 'lib/Sub/Exporter/Progressive.pm',
31 ABSTRACT_FROM => 'lib/Sub/Exporter/Progressive.pm',
35 $mymeta_works ? () : (%BUILD_DEPS),
39 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
40 'BUILD_REQUIRES' => \%BUILD_DEPS,
43 requires => \%RUN_DEPS,
46 : ( # META_ADD both to get META right - only Makefile written
49 requires => \%RUN_DEPS,
50 build_requires => \%BUILD_DEPS,
55 ($mymeta and !$mymeta_works) ? ( 'NO_MYMETA' => 1 ) : (),
58 unless ( eval { ExtUtils::MakeMaker->VERSION('6.56') } ) {
59 my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
60 my $pp = $WriteMakefileArgs{PREREQ_PM};
61 for my $mod ( keys %$br ) {
62 if ( exists $pp->{$mod} ) {
63 $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
66 $pp->{$mod} = $br->{$mod};
71 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
72 unless eval { ExtUtils::MakeMaker->VERSION('6.52') };
74 WriteMakefile(%WriteMakefileArgs);