]> 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 4b1af5f753ef9853e2dbf00197ff112446ba1fe3..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',
-    AUTHOR        => 'Vincent Pit <perl@profvince.com>',
-    LICENSE       => 'perl',
-    ABSTRACT_FROM => 'Plugin.pod',
-    VERSION_FROM  => 'Plugin.pm',
+    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.008,
+    PREREQ_PM        => \%PREREQ_PM,
+    MIN_PERL_VERSION => 5.010,
     META_MERGE       => \%META,
     dist             => {
         PREOP    => 'pod2text Plugin.pod > $(DISTVNAME)/README',
@@ -42,15 +48,3 @@ WriteMakefile(
         TESTS => 't/*.t t/*/*.t t/*/*/*.t',
     },
 );
-
-sub MY::postamble {
-    return <<END;
-ChangeLog: Makefile
-       git log --pretty=full . >ChangeLog
-
-META.yml: Makefile
-       touch META.yml
-
-END
-}
-