X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=Makefile.PL;h=6dbd1dc891defb4a8c22f9704d15827587ed1582;hb=a0765f3d8bfd38d11622a3e166dcd74fb377c7c7;hp=874f8b586229abd58f625b069a23a4ef57b73c00;hpb=1b79c06ab38daedf93c46dcd1731e4394fdbcfdd;p=www-offliberty.git diff --git a/Makefile.PL b/Makefile.PL index 874f8b5..6dbd1dc 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,21 +1,30 @@ use ExtUtils::MakeMaker; +use strict; +use warnings; + +my $has_br = $ExtUtils::MakeMaker::VERSION >= 6.5503; WriteMakefile( - NAME => 'WWW::Offliberty', - VERSION_FROM => 'lib/WWW/Offliberty.pm', - ABSTRACT_FROM => 'lib/WWW/Offliberty.pm', - AUTHOR => 'Marius Gavrilescu ', - MIN_PERL_VERSION => '5.14.0', - LICENSE => 'perl', - SIGN => 1, - PREREQ_PM => { - HTML::TreeBuilder => 0, - LWP::UserAgent => 0, - }, - META_ADD => { - dynamic_config => 0, - resources => { - repository => 'http://git.ieval.ro/?p=www-offliberty.git', + NAME => 'WWW::Offliberty', + VERSION_FROM => 'lib/WWW/Offliberty.pm', + ABSTRACT_FROM => 'lib/WWW/Offliberty.pm', + AUTHOR => 'Marius Gavrilescu ', + EXE_FILES => ['off'], + MIN_PERL_VERSION => '5.8.9', + LICENSE => 'perl', + (BUILD_REQUIRES => { + qw/Test::RequiresInternet 0/, + }) x $has_br, + SIGN => 1, + PREREQ_PM => { + qw/HTML::TreeBuilder 0 + HTTP::Tiny 0/, + ('Test::RequiresInternet' => 0) x !$has_br }, - } + META_ADD => { + dynamic_config => 0, + resources => { + repository => 'https://git.ieval.ro/?p=www-offliberty.git', + }, + } );