]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/blobdiff - Makefile.PL
Build the $name from $dist
[perl/modules/re-engine-Plugin.git] / Makefile.PL
index 56073b154d77b66ac19cc1e681b1cef1c937c3c0..33ca035a3bf2132cd7f37b750f720e0ee09d4f0b 100644 (file)
@@ -1,8 +1,14 @@
-use 5.009005;
+use 5.010;
 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,7 +16,9 @@ my %META = (
  build_requires => {
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
+  %PREREQ_PM,
  },
+ dynamic_config => 0,
  resources => {
   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
   homepage   => "http://search.cpan.org/dist/$dist/",
@@ -20,16 +28,14 @@ my %META = (
 );
 
 WriteMakefile(
-    NAME             => 're::engine::Plugin',
+    NAME             => $name,
     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
     LICENSE          => 'perl',
     ABSTRACT_FROM    => 'Plugin.pod',
     VERSION_FROM     => 'Plugin.pm',
     PL_FILES         => {},
-    PREREQ_PM        => {
-        'XSLoader' => 0,
-    },
-    MIN_PERL_VERSION => 5.009005,
+    PREREQ_PM        => \%PREREQ_PM,
+    MIN_PERL_VERSION => 5.010,
     META_MERGE       => \%META,
     dist             => {
         PREOP    => 'pod2text Plugin.pod > $(DISTVNAME)/README',