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