]> git.vpit.fr Git - perl/modules/Linux-SysInfo.git/blob - Makefile.PL
Use recent ExtUtils::MakeMaker features to generate a better META.yml
[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 $dist = 'Linux-SysInfo';
8
9 my %META = (
10  configure_requires => {
11   'ExtUtils::MakeMaker' => 0,
12  },
13  build_requires => {
14   'ExtUtils::MakeMaker' => 0,
15   'Test::More'          => 0,
16  },
17  resources => {
18   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
19   homepage   => "http://search.cpan.org/dist/$dist/",
20   license    => 'http://dev.perl.org/licenses/',
21   repository => "http://git.profvince.com/perl/modules/$dist.git",
22  },
23 );
24
25 WriteMakefile(
26     NAME             => 'Linux::SysInfo',
27     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
28     LICENSE          => 'perl',
29     VERSION_FROM     => 'lib/Linux/SysInfo.pm',
30     ABSTRACT_FROM    => 'lib/Linux/SysInfo.pm',
31     PL_FILES         => {},
32     PREREQ_PM        => {
33         'Exporter' => 0,
34         'XSLoader' => 0,
35     },
36     MIN_PERL_VERSION => 5.005,
37     META_MERGE       => \%META,
38     dist             => {
39         PREOP    => 'pod2text lib/Linux/SysInfo.pm > $(DISTVNAME)/README',
40         COMPRESS => 'gzip -9f', SUFFIX => 'gz',
41     },
42     clean            => {
43         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db"
44     },
45 );