]> git.vpit.fr Git - perl/modules/IPC-MorseSignals.git/blobdiff - Makefile.PL
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/IPC-MorseSignals.git] / Makefile.PL
index 677bb22b9a5baf17791c4603430c34fd09f9d2a9..62e322c7836abe2e9c409498cebfcf8cb1bd2f95 100644 (file)
@@ -6,11 +6,11 @@ BEGIN {
  eval { require Config };
  die 'OS unsupported' if $@;
  Config->import(qw/%Config/);
-}   
-    
+}
+
 my %sigs;
 @sigs{split ' ', $Config{sig_name}} = ();
-    
+
 for (qw/USR1 USR2/) {
  print "Checking if you have SIG$_... ";
  unless (exists $sigs{$_}) {
@@ -22,6 +22,11 @@ for (qw/USR1 USR2/) {
 
 my $dist = 'IPC-MorseSignals';
 
+(my $name = $dist) =~ s{-}{::}g;
+
+(my $file = $dist) =~ s{-}{/}g;
+$file = "lib/$file.pm";
+
 my %PREREQ_PM = (
  'Bit::MorseSignals' => 0.05,
  'Carp'              => 0,
@@ -47,7 +52,7 @@ my %META = (
  },
  dynamic_config => 1,
  resources => {
-  bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
+  bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist",
   homepage   => "http://search.cpan.org/dist/$dist/",
   license    => 'http://dev.perl.org/licenses/',
   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
@@ -55,20 +60,20 @@ my %META = (
 );
 
 WriteMakefile(
   NAME             => 'IPC::MorseSignals',
   AUTHOR           => 'Vincent Pit <perl@profvince.com>',
   LICENSE          => 'perl',
   VERSION_FROM     => 'lib/IPC/MorseSignals.pm',
   ABSTRACT_FROM    => 'lib/IPC/MorseSignals.pm',
   PL_FILES         => {},
   PREREQ_PM        => \%PREREQ_PM,
   MIN_PERL_VERSION => 5.008,
   META_MERGE       => \%META,
   dist             => {
-        PREOP    => 'pod2text lib/IPC/MorseSignals.pm > $(DISTVNAME)/README',
-        COMPRESS => 'gzip -9f', SUFFIX => 'gz',
   },
   clean            => {
-        FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
   },
NAME             => $name,
+ AUTHOR           => 'Vincent Pit <perl@profvince.com>',
+ LICENSE          => 'perl',
VERSION_FROM     => $file,
ABSTRACT_FROM    => $file,
+ PL_FILES         => {},
+ PREREQ_PM        => \%PREREQ_PM,
MIN_PERL_VERSION => '5.008',
+ META_MERGE       => \%META,
+ dist             => {
+  PREOP    => "pod2text -u $file > \$(DISTVNAME)/README",
+  COMPRESS => 'gzip -9f', SUFFIX => 'gz',
+ },
+ clean            => {
+  FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
+ },
 );