Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (50 sloc) 1.508 kb
use strict;
use warnings;
use ExtUtils::MakeMaker;
my %conf = (
NAME => 'Geo::Coder::Mapquest',
AUTHOR => 'gray <gray@cpan.org>',
LICENSE => 'perl',
VERSION_FROM => 'lib/Geo/Coder/Mapquest.pm',
ABSTRACT_FROM => 'lib/Geo/Coder/Mapquest.pm',
PREREQ_PM => {
'Encode' => 0,
'JSON' => 2.0,
'LWP::UserAgent' => 6.02,
'URI' => 1.36,
'URI::Escape' => 0,
},
BUILD_REQUIRES => { 'Test::More' => 0.82, },
META_MERGE => {
resources => {
repository => 'http://github.com/gray/geo-coder-mapquest',
},
recommends => {
'JSON::XS' => 2.0,
'LWP::Protocol::https' => 6.02,
},
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Geo-Coder-Mapquest-*' },
);
my $eumm_version = do {
no warnings 'numeric';
eval $ExtUtils::MakeMaker::VERSION;
};
delete $conf{META_MERGE} if $eumm_version < 6.46;
$conf{PREREQ_PM} = {
%{ $conf{PREREQ_PM} || {} }, %{ delete $conf{BUILD_REQUIRES} },
} if ($conf{BUILD_REQUIRES} and $eumm_version < 6.5503);
WriteMakefile(%conf);
sub MY::postamble {
return <<" MAKE_FRAG";
authortest:
\t\$(MAKE) -e \$(TEST_TYPE) TEST_FILES="xt/*.t"
MAKE_FRAG
}
sub MY::dist_test {
my $self = shift;
return $self->MM::dist_test . <<" MAKE_FRAG";
\tcd \$(DISTVNAME) && \$(MAKE) authortest \$(PASTHRU)
MAKE_FRAG
}
Jump to Line
Something went wrong with that request. Please try again.