From ed247fdbbdfac530d833b8d576b6ac4254759759 Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Mon, 8 Nov 2021 20:32:55 -0600 Subject: [PATCH] add repo to Makefile.PL --- Makefile.PL | 80 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 45 insertions(+), 35 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 503d11f..2d05c60 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,49 +4,59 @@ use warnings; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( - NAME => 'Search::ESsearcher', - AUTHOR => q{Zane C. Bowers-Hadley }, - VERSION_FROM => 'lib/Search/ESsearcher.pm', - ABSTRACT_FROM => 'lib/Search/ESsearcher.pm', - LICENSE => 'artistic_2', - MIN_PERL_VERSION => '5.006', - INST_SCRIPT => 'bin', - CONFIGURE_REQUIRES => { - 'ExtUtils::MakeMaker' => '0', - }, - TEST_REQUIRES => { - 'Test::More' => '0', - }, - PREREQ_PM => { - 'JSON' => '4.02', - 'Error::Helper' => '1.0.0', - 'Search::Elasticsearch' => '6.00', - 'Template' => '2.29', - 'Template::Plugin::JSON' => '0.08', - 'Time::ParseDate' => '2015.103', - 'Term::ANSIColor' => '4.06', - 'Data::Dumper' => '2.173', - }, - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'Search-ESsearcher-*' }, - ); + NAME => 'Search::ESsearcher', + AUTHOR => q{Zane C. Bowers-Hadley }, + VERSION_FROM => 'lib/Search/ESsearcher.pm', + ABSTRACT_FROM => 'lib/Search/ESsearcher.pm', + LICENSE => 'artistic_2', + MIN_PERL_VERSION => '5.006', + INST_SCRIPT => 'bin', + CONFIGURE_REQUIRES => { + 'ExtUtils::MakeMaker' => '0', + }, + TEST_REQUIRES => { + 'Test::More' => '0', + }, + PREREQ_PM => { + 'JSON' => '4.02', + 'Error::Helper' => '1.0.0', + 'Search::Elasticsearch' => '6.00', + 'Template' => '2.29', + 'Template::Plugin::JSON' => '0.08', + 'Time::ParseDate' => '2015.103', + 'Term::ANSIColor' => '4.06', + 'Data::Dumper' => '2.173', + }, + dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, + clean => { FILES => 'Search-ESsearcher-*' }, + META_MERGE => { + "meta-spec" => { version => 2 }, + resources => { + repository => { + type => 'git', + url => 'git@github.com:VVelox/Search-ESsearcher.git', + web => 'https://github.com/VVelox/Search-ESsearcher', + }, + }, + }, +); # Compatibility with old versions of ExtUtils::MakeMaker -unless (eval { ExtUtils::MakeMaker->VERSION('6.64'); 1 }) { - my $test_requires = delete $WriteMakefileArgs{TEST_REQUIRES} || {}; - @{$WriteMakefileArgs{PREREQ_PM}}{keys %$test_requires} = values %$test_requires; +unless ( eval { ExtUtils::MakeMaker->VERSION('6.64'); 1 } ) { + my $test_requires = delete $WriteMakefileArgs{TEST_REQUIRES} || {}; + @{ $WriteMakefileArgs{PREREQ_PM} }{ keys %$test_requires } = values %$test_requires; } -unless (eval { ExtUtils::MakeMaker->VERSION('6.55_03'); 1 }) { - my $build_requires = delete $WriteMakefileArgs{BUILD_REQUIRES} || {}; - @{$WriteMakefileArgs{PREREQ_PM}}{keys %$build_requires} = values %$build_requires; +unless ( eval { ExtUtils::MakeMaker->VERSION('6.55_03'); 1 } ) { + my $build_requires = delete $WriteMakefileArgs{BUILD_REQUIRES} || {}; + @{ $WriteMakefileArgs{PREREQ_PM} }{ keys %$build_requires } = values %$build_requires; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} -unless eval { ExtUtils::MakeMaker->VERSION('6.52'); 1 }; + unless eval { ExtUtils::MakeMaker->VERSION('6.52'); 1 }; delete $WriteMakefileArgs{MIN_PERL_VERSION} -unless eval { ExtUtils::MakeMaker->VERSION('6.48'); 1 }; + unless eval { ExtUtils::MakeMaker->VERSION('6.48'); 1 }; delete $WriteMakefileArgs{LICENSE} -unless eval { ExtUtils::MakeMaker->VERSION('6.31'); 1 }; + unless eval { ExtUtils::MakeMaker->VERSION('6.31'); 1 }; WriteMakefile(%WriteMakefileArgs);