]> git.vpit.fr Git - perl/modules/Linux-SysInfo.git/blob - Makefile.PL
Put prerequisites in their own separate hash
[perl/modules/Linux-SysInfo.git] / Makefile.PL
1 use 5.006;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 die 'OS unsupported' unless $^O && $^O eq 'linux';
8
9 my $dist = 'Linux-SysInfo';
10
11 my %PREREQ_PM = (
12  'Exporter' => 0,
13  'XSLoader' => 0,
14  'base'     => 0,
15 );
16
17 my %META = (
18  configure_requires => {
19   'ExtUtils::MakeMaker' => 0,
20  },
21  build_requires => {
22   'ExtUtils::MakeMaker' => 0,
23   'Test::More'          => 0,
24   %PREREQ_PM,
25  },
26  dynamic_config => 1,
27  resources => {
28   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
29   homepage   => "http://search.cpan.org/dist/$dist/",
30   license    => 'http://dev.perl.org/licenses/',
31   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
32  },
33 );
34
35 WriteMakefile(
36     NAME             => 'Linux::SysInfo',
37     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
38     LICENSE          => 'perl',
39     VERSION_FROM     => 'lib/Linux/SysInfo.pm',
40     ABSTRACT_FROM    => 'lib/Linux/SysInfo.pm',
41     PL_FILES         => {},
42     PREREQ_PM        => \%PREREQ_PM,
43     MIN_PERL_VERSION => 5.006,
44     META_MERGE       => \%META,
45     dist             => {
46         PREOP    => 'pod2text lib/Linux/SysInfo.pm > $(DISTVNAME)/README',
47         COMPRESS => 'gzip -9f', SUFFIX => 'gz',
48     },
49     clean            => {
50         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
51     },
52 );