PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/XML-TreePP/Makefile.PL

http://xml-treepp.googlecode.com/
Perl | 26 lines | 17 code | 5 blank | 4 comment | 3 complexity | f5e2a9d4c3861699cb52d4d3178cb31e MD5 | raw file
 1use ExtUtils::MakeMaker;
 2
 3my $opt = {
 4    NAME                =>  'XML::TreePP',
 5    VERSION_FROM        =>  'lib/XML/TreePP.pm',
 6    PREREQ_PM           =>  {
 7        'Test::More'        =>  '0',
 8#       'LWP::UserAgent'    =>  '0',
 9#       'HTTP::Lite'        =>  '0',
10#       'Jcode'             =>  '0', # on Perl 5.005/5.6.x
11    },
12};
13
14my $mm = $ExtUtils::MakeMaker::VERSION;
15$mm =~ s/[^\d\.]+//g;
16$opt->{LICENSE} = 'perl' if ( $mm >= 6.3001 );
17
18my $PERL581 = 1 if ( $] >= 5.008001 );
19$opt->{PREREQ_PM}->{Jcode} = '0' unless $PERL581;
20
21eval { require 'LWP/UserAgent.pm'; };
22# LWP.pm 5.802 required for decoded_content method
23$opt->{PREREQ_PM}->{'LWP'} = '5.802' if $LWP::UserAgent::VERSION;
24$opt->{PREREQ_PM}->{'HTTP::Lite'} = '0' unless $LWP::UserAgent::VERSION;
25
26WriteMakefile( %$opt );