Skip to content

Commit

Permalink
Makefile.PL: remove toolchain uri, update LMU
Browse files Browse the repository at this point in the history
Since maintainers engagement in PTG is dead, there will likely no help from
PTG regarding to File::ConfigDir because lack of knowledge. Anyway - it'll
impolite to force PTG providing support for external modules.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
  • Loading branch information
rehsack committed May 22, 2017
1 parent 7e33e1c commit 51bb656
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions Makefile.PL
Expand Up @@ -24,7 +24,7 @@ my %TEST_DEPS = (
WriteMakefile1(
MIN_PERL_VERSION => '5.008001',
META_ADD => {
'meta-spec' => { version => 2 },
'meta-spec' => {version => 2},
resources => {
homepage => 'https://metacpan.org/release/File-ConfigDir',
repository => {
Expand All @@ -36,9 +36,7 @@ WriteMakefile1(
web => 'http://rt.cpan.org/Public/Dist/Display.html?Name=File-ConfigDir',
mailto => 'bug-File-ConfigDir@rt.cpan.org',
},
license => 'http://dev.perl.org/licenses/',
x_IRC => "irc://irc.perl.org/#toolchain",
x_MailingList => "mailto:cpan-workers\@perl.org'",
license => 'http://dev.perl.org/licenses/',
},
prereqs => {
develop => {
Expand All @@ -56,12 +54,13 @@ WriteMakefile1(
configure => {
requires => {%CONFIGURE_DEPS},
},
build => { requires => {%BUILD_DEPS} },
test => { requires => {%TEST_DEPS} },
build => {requires => {%BUILD_DEPS}},
test => {requires => {%TEST_DEPS}},
runtime => {
recommends => {
'File::HomeDir' => '0.50',
'List::MoreUtils' => '0.22',
'File::HomeDir' => '0.50',
'List::MoreUtils' => '0.0.419',
'List::MoreUtils::XS' => '0.0.418',
},
requires => {
%RUN_DEPS,
Expand All @@ -79,45 +78,45 @@ WriteMakefile1(
PREREQ_PM => \%RUN_DEPS,
BUILD_REQUIRES => \%BUILD_DEPS,
TEST_REQUIRES => \%TEST_DEPS,
test => { TESTS => 't/*.t xt/*.t' },
test => {TESTS => 't/*.t xt/*.t'},
);

sub WriteMakefile1
{ # originally written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
my %params = @_;
my $eumm_version = $ExtUtils::MakeMaker::VERSION;
$eumm_version = eval $eumm_version;
die "EXTRA_META is deprecated" if ( exists( $params{EXTRA_META} ) );
die "License not specified" if ( !exists( $params{LICENSE} ) );
die "EXTRA_META is deprecated" if (exists($params{EXTRA_META}));
die "License not specified" if (!exists($params{LICENSE}));
$params{TEST_REQUIRES}
and $eumm_version < 6.6303
and $params{BUILD_REQUIRES} = { %{ $params{BUILD_REQUIRES} || {} }, %{ delete $params{TEST_REQUIRES} } };
and $params{BUILD_REQUIRES} = {%{$params{BUILD_REQUIRES} || {}}, %{delete $params{TEST_REQUIRES}}};
#EUMM 6.5502 has problems with BUILD_REQUIRES
$params{BUILD_REQUIRES}
and $eumm_version < 6.5503
and $params{PREREQ_PM} = { %{ $params{PREREQ_PM} || {} }, %{ delete $params{BUILD_REQUIRES} } };
and $params{PREREQ_PM} = {%{$params{PREREQ_PM} || {}}, %{delete $params{BUILD_REQUIRES}}};
ref $params{AUTHOR}
and "ARRAY" eq ref $params{AUTHOR}
and $eumm_version < 6.5702
and $params{AUTHOR} = join( ", ", @{ $params{AUTHOR} } );
delete $params{CONFIGURE_REQUIRES} if ( $eumm_version < 6.52 );
delete $params{MIN_PERL_VERSION} if ( $eumm_version < 6.48 );
delete $params{META_MERGE} if ( $eumm_version < 6.46 );
delete $params{META_ADD}{prereqs} if ( $eumm_version < 6.58 );
delete $params{META_ADD}{'meta-spec'} if ( $eumm_version < 6.58 );
delete $params{META_ADD} if ( $eumm_version < 6.46 );
delete $params{LICENSE} if ( $eumm_version < 6.31 );
delete $params{AUTHOR} if ( $] < 5.005 );
delete $params{ABSTRACT_FROM} if ( $] < 5.005 );
delete $params{BINARY_LOCATION} if ( $] < 5.005 );
and $params{AUTHOR} = join(", ", @{$params{AUTHOR}});
delete $params{CONFIGURE_REQUIRES} if ($eumm_version < 6.52);
delete $params{MIN_PERL_VERSION} if ($eumm_version < 6.48);
delete $params{META_MERGE} if ($eumm_version < 6.46);
delete $params{META_ADD}{prereqs} if ($eumm_version < 6.58);
delete $params{META_ADD}{'meta-spec'} if ($eumm_version < 6.58);
delete $params{META_ADD} if ($eumm_version < 6.46);
delete $params{LICENSE} if ($eumm_version < 6.31);
delete $params{AUTHOR} if ($] < 5.005);
delete $params{ABSTRACT_FROM} if ($] < 5.005);
delete $params{BINARY_LOCATION} if ($] < 5.005);

# more or less taken from Moose' Makefile.PL
if ( $params{CONFLICTS} )
if ($params{CONFLICTS})
{
my $ok = CheckConflicts(%params);
exit(0) if ( $params{PREREQ_FATAL} and not $ok );
exit(0) if ($params{PREREQ_FATAL} and not $ok);
my $cpan_smoker = grep { $_ =~ m/(?:CR_SMOKER|CPAN_REPORTER|AUTOMATED_TESTING)/ } keys %ENV;
unless ( $cpan_smoker || $ENV{PERL_MM_USE_DEFAULT} )
unless ($cpan_smoker || $ENV{PERL_MM_USE_DEFAULT})
{
sleep 4 unless ($ok);
}
Expand Down

0 comments on commit 51bb656

Please sign in to comment.