X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;fp=Makefile.PL;h=062303cf374b69ac4a9b0c3d01176ab181ac1aec;hb=c3297ae88619fcf222946f746f98eee8bce8435d;hp=ff280dc953041689681934e101c4abda963be8d0;hpb=cf76467b860a4960ae23ca2c7a83bd313af6db68;p=catagits%2FCatalyst-Plugin-Email.git diff --git a/Makefile.PL b/Makefile.PL index ff280dc..062303c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -3,13 +3,12 @@ use warnings; use ExtUtils::MakeMaker; -my $developer = -f '.gitignore'; -ExtUtils::MakeMaker->VERSION('7.00') if $developer; +ExtUtils::MakeMaker->VERSION('7.00') unless -f 'META.yml'; +(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; my %WriteMakefileArgs = ( NAME => 'Catalyst::Plugin::Email', VERSION_FROM => 'lib/Catalyst/Plugin/Email.pm', - ABSTRACT => 'Send emails with Catalyst', AUTHOR => 'Sebastian Riedel ', LICENSE => 'perl_5', MIN_PERL_VERSION => 5.008, # catalyst minimum @@ -46,7 +45,7 @@ my %WriteMakefileArgs = ( ); die 'need to do a merge with CPAN::Meta::Requirements!!' - if $developer && exists $WriteMakefileArgs{BUILD_REQUIRES}; + if !-f 'META.yml' && exists $WriteMakefileArgs{BUILD_REQUIRES}; if (!eval { ExtUtils::MakeMaker->VERSION('6.6303') }) { $WriteMakefileArgs{BUILD_REQUIRES} = $WriteMakefileArgs{TEST_REQUIRES}; @@ -68,7 +67,7 @@ my %mm_req = ( ); for (keys %mm_req) { unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) { - warn "$_ $@" if $developer; + warn "$_ $@" if not -f 'Makefile.PL'; delete $WriteMakefileArgs{$_}; } }