Permalink
Switch branches/tags
stable gitpan_version/1.65 gitpan_version/1.64 gitpan_version/1.63 gitpan_version/1.62 gitpan_version/1.61 gitpan_version/1.60 gitpan_version/1.59 gitpan_version/1.58 gitpan_version/1.57 gitpan_version/1.56 gitpan_version/1.55 gitpan_version/1.54 gitpan_version/1.53 gitpan_version/1.52 gitpan_version/1.51 gitpan_version/1.50 gitpan_version/1.40 gitpan_version/1.39 gitpan_version/1.38 gitpan_version/1.37 gitpan_version/1.36 gitpan_version/1.35 gitpan_version/1.34 gitpan_version/1.33 gitpan_version/1.32 gitpan_version/1.31 gitpan_version/1.30 gitpan_version/1.29 gitpan_version/1.28 gitpan_version/1.27 gitpan_version/1.26 gitpan_version/1.25 gitpan_version/1.24 gitpan_version/1.23 gitpan_version/1.22 gitpan_version/1.21 gitpan_version/1.20 gitpan_version/1.19 gitpan_version/1.18 gitpan_version/1.17 gitpan_version/1.16 gitpan_version/1.15 gitpan_version/1.14 gitpan_version/1.12 gitpan_version/1.11 gitpan_version/1.10 gitpan_version/1.09 gitpan_version/1.08 gitpan_version/1.07 gitpan_version/1.06 gitpan_version/1.05 gitpan_version/1.04 gitpan_version/1.03 gitpan_version/1.02 gitpan_version/1.01 gitpan_version/1.00 gitpan_version/0.90_02 gitpan_version/0.90_01 gitpan_version/0.09_02 gitpan_version/0.09_01 gitpan_version/0.09 gitpan_version/0.08 gitpan_version/0.07 gitpan_version/0.06 gitpan_version/0.05 gitpan_version/0.04 gitpan_version/0.03 gitpan_version/0.01 cpan_version/1.65 cpan_version/1.64 cpan_version/1.63 cpan_version/1.62 cpan_version/1.61 cpan_version/1.60 cpan_version/1.59 cpan_version/1.58 cpan_version/1.57 cpan_version/1.56 cpan_version/1.55 cpan_version/1.54 cpan_version/1.53 cpan_version/1.52 cpan_version/1.51 cpan_version/1.50 cpan_version/1.40 cpan_version/1.39 cpan_version/1.38 cpan_version/1.37 cpan_version/1.36 cpan_version/1.35 cpan_version/1.34 cpan_version/1.33 cpan_version/1.32 cpan_version/1.31 cpan_version/1.30 cpan_version/1.29 cpan_version/1.28 cpan_version/1.27 cpan_version/1.26
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (88 sloc) 3.04 KB
use strict;
use warnings FATAL => 'all';
require 5.008001;
use ExtUtils::MakeMaker;
my $developer = -f '.gitignore';
ExtUtils::MakeMaker->VERSION(6.98) if $developer;
my %WriteMakefileArgs = (
NAME => 'URI',
VERSION_FROM => 'URI.pm',
ABSTRACT_FROM => 'URI.pm',
AUTHOR => 'Gisle Aas <gisle@activestate.com>',
LICENSE => 'perl_5',
META_MERGE => {
'meta-spec' => { version => 2 },
dynamic_config => 0,
resources => {
repository => {
url => 'https://github.com/libwww-perl/uri.git',
web => 'https://github.com/libwww-perl/uri',
type => 'git',
},
bugtracker => {
mailto => 'bug-URI@rt.cpan.org',
web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=URI',
},
x_MailingList => 'mailto:libwww@perl.org',
},
},
META_ADD => {
prereqs => {
configure => {
requires => {
'ExtUtils::MakeMaker' => '0',
},
},
runtime => {
requires => {
'MIME::Base64' => '2',
'parent' => '0',
'Exporter' => '5.57',
'utf8' => '0',
'Scalar::Util' => '0',
'perl' => '5.008001',
},
recommends => {
'Business::ISBN' => '0',
},
},
test => {
requires => {
'Test' => '0',
'Test::More' => '0.96',
'File::Temp' => '0',
},
},
},
},
);
my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
for (qw(configure build test runtime)) {
my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';
next unless exists $WriteMakefileArgs{META_ADD}{prereqs}{$_}
or exists $WriteMakefileArgs{$key};
my $r = $WriteMakefileArgs{$key} = {
%{$WriteMakefileArgs{META_ADD}{prereqs}{$_}{requires} || {}},
%{delete $WriteMakefileArgs{$key} || {}},
};
defined $r->{$_} or delete $r->{$_} for keys %$r;
}
# dynamic prereqs get added here.
$WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0;
$WriteMakefileArgs{BUILD_REQUIRES} = {
%{$WriteMakefileArgs{BUILD_REQUIRES} || {}},
%{delete $WriteMakefileArgs{TEST_REQUIRES}}
} if $eumm_version < 6.63_03;
$WriteMakefileArgs{PREREQ_PM} = {
%{$WriteMakefileArgs{PREREQ_PM}},
%{delete $WriteMakefileArgs{BUILD_REQUIRES}}
} if $eumm_version < 6.55_01;
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
if $eumm_version < 6.51_03;
delete $WriteMakefileArgs{MIN_PERL_VERSION}
if $eumm_version < 6.48;
delete @WriteMakefileArgs{qw(META_ADD META_MERGE)}
if $eumm_version < 6.46;
delete $WriteMakefileArgs{LICENSE}
if $eumm_version < 6.31;
WriteMakefile(%WriteMakefileArgs);