X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=f6d5a8d09d1b1109a2fe00b72282ba208fb74f70;hb=5820061acfe58039dc4a9c4f28e3ffd90f5a8570;hp=979d78b85911cc14430a393d71ca29d6f820ec1a;hpb=aeb4782b4d78bdce2873eef541f5759dd9dcae42;p=perl%2Fmodules%2FLinux-SysInfo.git diff --git a/Makefile.PL b/Makefile.PL index 979d78b..f6d5a8d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,17 +1,47 @@ +use 5.006; + use strict; use warnings; use ExtUtils::MakeMaker; +die 'OS unsupported' unless $^O && $^O eq 'linux'; + +my $dist = 'Linux-SysInfo'; + +my %META = ( + configure_requires => { + 'ExtUtils::MakeMaker' => 0, + }, + build_requires => { + 'ExtUtils::MakeMaker' => 0, + 'Test::More' => 0, + }, + resources => { + bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", + homepage => "http://search.cpan.org/dist/$dist/", + license => 'http://dev.perl.org/licenses/', + repository => "http://git.profvince.com/perl/modules/$dist.git", + }, +); + WriteMakefile( - NAME => 'Linux::SysInfo', - AUTHOR => 'Vincent Pit ', - LICENSE => 'perl', - VERSION_FROM => 'lib/Linux/SysInfo.pm', - ABSTRACT_FROM => 'lib/Linux/SysInfo.pm', - PL_FILES => {}, - PREREQ_PM => { - 'Test::More' => 0, + NAME => 'Linux::SysInfo', + AUTHOR => 'Vincent Pit ', + LICENSE => 'perl', + VERSION_FROM => 'lib/Linux/SysInfo.pm', + ABSTRACT_FROM => 'lib/Linux/SysInfo.pm', + PL_FILES => {}, + PREREQ_PM => { + 'Exporter' => 0, + 'XSLoader' => 0, + }, + 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" }, - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'Linux-SysInfo-*' }, );