]> 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 277874532cf58c845dd5fefee341404eb91f445b..33ca035a3bf2132cd7f37b750f720e0ee09d4f0b 100644 (file)
@@ -3,6 +3,8 @@ use ExtUtils::MakeMaker;
 
 my $dist = 're-engine-Plugin';
 
+(my $name = $dist) =~ s{-}{::}g;
+
 my %PREREQ_PM = (
  'XSLoader' => 0,
 );
@@ -26,7 +28,7 @@ my %META = (
 );
 
 WriteMakefile(
-    NAME             => 're::engine::Plugin',
+    NAME             => $name,
     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
     LICENSE          => 'perl',
     ABSTRACT_FROM    => 'Plugin.pod',