]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - Makefile.PL
Build the $name from $dist
[perl/modules/rgit.git] / Makefile.PL
index 1ba7a612c4902e6fe3504c302ef0f640791e0177..54b937d024153a9869967fcd851e6ddaec8435cc 100644 (file)
@@ -6,6 +6,8 @@ use ExtUtils::MakeMaker;
 
 my $dist = 'rgit';
 
+(my $name = $dist) =~ s{-}{::}g;
+
 my %PREREQ_PM = (
  'Carp'                  => 0,
  'Cwd'                   => 0,
@@ -42,7 +44,7 @@ my %META = (
 );
 
 WriteMakefile(
-    NAME             => 'rgit',
+    NAME             => $name,
     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
     LICENSE          => 'perl',
     VERSION_FROM     => 'lib/App/Rgit.pm',