X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=7ade66373ec9caa8ac5f0d4eea81e744d112dbc4;hb=8ec5a155826d482d9b8ac32b558add5f9bd02b2f;hp=82880dbb17c0fe065a9f547a63ada42288c52024;hpb=59d263d84acd08a71bb3402d997c459a19894079;p=perl%2Fmodules%2Fre-engine-Plugin.git diff --git a/Makefile.PL b/Makefile.PL index 82880db..7ade663 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,8 +1,17 @@ use 5.010; + +use strict; +use warnings; use ExtUtils::MakeMaker; my $dist = 're-engine-Plugin'; +(my $name = $dist) =~ s{-}{::}g; + +my %PREREQ_PM = ( + 'XSLoader' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -10,6 +19,7 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, dynamic_config => 0, resources => { @@ -21,15 +31,13 @@ my %META = ( ); WriteMakefile( - NAME => 're::engine::Plugin', + NAME => $name, AUTHOR => 'Vincent Pit ', LICENSE => 'perl', ABSTRACT_FROM => 'Plugin.pod', VERSION_FROM => 'Plugin.pm', PL_FILES => {}, - PREREQ_PM => { - 'XSLoader' => 0, - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.010, META_MERGE => \%META, dist => {