| 1 | use ExtUtils::MakeMaker; |
| 2 | use strict; |
| 3 | use warnings; |
| 4 | |
| 5 | my $has_br = $ExtUtils::MakeMaker::VERSION >= 6.5503; |
| 6 | |
| 7 | WriteMakefile( |
| 8 | NAME => 'WWW::Offliberty', |
| 9 | VERSION_FROM => 'lib/WWW/Offliberty.pm', |
| 10 | ABSTRACT_FROM => 'lib/WWW/Offliberty.pm', |
| 11 | AUTHOR => 'Marius Gavrilescu <marius@ieval.ro>', |
| 12 | EXE_FILES => ['off'], |
| 13 | MIN_PERL_VERSION => '5.8.9', |
| 14 | LICENSE => 'perl', |
| 15 | (BUILD_REQUIRES => { |
| 16 | qw/Test::RequiresInternet 0/, |
| 17 | }) x $has_br, |
| 18 | SIGN => 1, |
| 19 | PREREQ_PM => { |
| 20 | qw/HTML::TreeBuilder 0 |
| 21 | HTTP::Tiny 0.014/, # post_form was introduced in 0.014 |
| 22 | ('Test::RequiresInternet' => 0) x !$has_br |
| 23 | }, |
| 24 | META_ADD => { |
| 25 | dynamic_config => 0, |
| 26 | resources => { |
| 27 | repository => 'https://git.ieval.ro/?p=www-offliberty.git', |
| 28 | }, |
| 29 | } |
| 30 | ); |