From 387f873b39f7cad95802f1f6a16b721e57278cfd Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Mon, 1 Dec 2014 12:52:51 +0200 Subject: [PATCH] Add licenes and links to GitHub to Makefile.PL which will add them to the META files and MetaCPAN.org will display them. --- Makefile.PL | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 253f1df..4380799 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,7 +1,38 @@ use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. -WriteMakefile( +my %conf = ( 'NAME' => 'Algorithm::Diff', 'VERSION_FROM' => 'lib/Algorithm/Diff.pm', # finds $VERSION ); + +if (eval { ExtUtils::MakeMaker->VERSION(6.3002) }) { + $conf{LICENSE} = 'perl'; +} + + +if (eval { ExtUtils::MakeMaker->VERSION(6.46) }) { + $conf{META_MERGE} = { + 'meta-spec' => { version => 2 }, + resources => { + repository => { + type => 'git', + url => 'https://github.com/TyeMcQueen/perl-algorithm-diff.git', + web => 'https://github.com/TyeMcQueen/perl-algorithm-diff', + license => 'http://dev.perl.org/licenses/', + }, + #bugtracker => { + # web => 'http://github.com/szabgab/Module-Name/issues', + #}, + #homepage => 'http://perlmaven.com/', + }, + #x_contributors => [ + # 'Peti Bar ', + #], + #x_IRC => 'irc://irc.perl.org/#perl', + #x_MailingList => 'http://lists.perl.org/list/perl-qa.html', + }; +} + +WriteMakefile(%conf); +