]> git.vpit.fr Git - perl/modules/Linux-SysInfo.git/blob - Makefile.PL
Remove old tests that were wrongly imported
[perl/modules/Linux-SysInfo.git] / Makefile.PL
1 use strict;
2 use warnings;
3 use ExtUtils::MakeMaker;
4
5 die 'OS unsupported' unless $^O && $^O eq 'linux';
6
7 my $BUILD_REQUIRES = {
8  'ExtUtils::MakeMaker' => 0,
9  'Test::More'          => 0,
10 };  
11     
12 sub build_req {
13  my $tometa = ' >> $(DISTVNAME)/META.yml;';
14  my $build_req = 'echo "build_requires:" ' . $tometa;
15  foreach my $mod ( sort { lc $a cmp lc $b } keys %$BUILD_REQUIRES ) {
16   my $ver = $BUILD_REQUIRES->{$mod};
17   $build_req .= sprintf 'echo "    %-30s %s" %s', "$mod:", $ver, $tometa;
18  }  
19  return $build_req;
20 }
21
22 WriteMakefile(
23     NAME          => 'Linux::SysInfo',
24     AUTHOR        => 'Vincent Pit <perl@profvince.com>',
25     LICENSE       => 'perl',
26     VERSION_FROM  => 'lib/Linux/SysInfo.pm',
27     ABSTRACT_FROM => 'lib/Linux/SysInfo.pm',
28     PL_FILES      => {},
29     PREREQ_PM     => {
30         'Exporter' => 0,
31         'XSLoader' => 0,
32     },
33     dist          => {
34         PREOP      => 'pod2text lib/Linux/SysInfo.pm > $(DISTVNAME)/README; '
35                       . build_req,
36         COMPRESS   => 'gzip -9f', SUFFIX => 'gz',
37     },
38     clean         => { FILES => 'Linux-SysInfo-* *.gcov *.gcda *.gcno cover_db' },
39 );