]> git.vpit.fr Git - perl/modules/Linux-SysInfo.git/blobdiff - Makefile.PL
This is 0.15
[perl/modules/Linux-SysInfo.git] / Makefile.PL
index 5febb76d4798c63ce7c64703559f6b88ad9c56f3..dddf5ad0093cc6939e5616c5721fc8d885a649d8 100644 (file)
@@ -8,6 +8,11 @@ die 'OS unsupported' unless $^O && $^O eq 'linux';
 
 my $dist = 'Linux-SysInfo';
 
+(my $name = $dist) =~ s{-}{::}g;
+
+(my $file = $dist) =~ s{-}{/}g;
+$file = "lib/$file.pm";
+
 my %PREREQ_PM = (
  'Exporter' => 0,
  'XSLoader' => 0,
@@ -25,7 +30,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",
@@ -33,20 +38,20 @@ my %META = (
 );
 
 WriteMakefile(
   NAME             => 'Linux::SysInfo',
   AUTHOR           => 'Vincent Pit <perl@profvince.com>',
   LICENSE          => 'perl',
   VERSION_FROM     => 'lib/Linux/SysInfo.pm',
   ABSTRACT_FROM    => 'lib/Linux/SysInfo.pm',
   PL_FILES         => {},
   PREREQ_PM        => \%PREREQ_PM,
   MIN_PERL_VERSION => 5.006,
   META_MERGE       => \%META,
   dist             => {
-        PREOP    => 'pod2text lib/Linux/SysInfo.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.006',
+ 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"
+ },
 );