use strict; use warnings; use 5.006; use ExtUtils::MakeMaker; my %opts = ( 'NAME' => 'HTML-Query', 'VERSION_FROM' => 'lib/HTML/Query.pm', 'PMLIBDIRS' => [ 'lib' ], 'PREREQ_PM' => { 'HTML::Tree' => 3.23, 'Badger' => 0.03, }, 'test' => { 'TESTS' => join(' ', map { glob } qw( t/*.t )), }, ); sub MY::postamble { return <<'MAKE_FRAG'; all :: README README: lib/HTML/Query.pm pod2text $> > README MAKE_FRAG } # Handle dev versions in our check my $mmv = $ExtUtils::MakeMaker::VERSION; $mmv =~ s/\_.+//; if ($mmv >= 5.43) { # $opts{ AUTHOR } = 'Andy Wardley '; $opts{ AUTHOR } = 'Kevin Kamel '; $opts{ ABSTRACT } = 'perform jQuery-like queries on HTML::Element trees', } if ($ExtUtils::MakeMaker::VERSION ge '6.30_00') { $opts{'LICENSE' } = 'perl'; } WriteMakefile( %opts );