From: Graham Knop Date: Mon, 18 Aug 2014 21:00:39 +0000 (-0400) Subject: update Makefile.PL boilerplate X-Git-Tag: v1.002005~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d3cffdfebe4028840ead66c6c52bbdf7a9b8c436;p=p5sagit%2FImport-Into.git update Makefile.PL boilerplate --- diff --git a/Makefile.PL b/Makefile.PL index 7761e09..228b31f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -45,7 +45,7 @@ my %MM_ARGS = ( realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] }, ); -############################################################################## +## BOILERPLATE ############################################################### require ExtUtils::MakeMaker; (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; @@ -56,8 +56,10 @@ my $mymeta_broken = $mymeta && $eumm_version < 6.57_07; ($MM_ARGS{NAME} = $META{name}) =~ s/-/::/g; ($MM_ARGS{VERSION_FROM} = "lib/$MM_ARGS{NAME}.pm") =~ s{::}{/}g; -$MM_ARGS{LICENSE} = $META{license} - if $eumm_version >= 6.30; +$META{license} = [ $META{license} ] + if $META{license} && !ref $META{license}; +$MM_ARGS{LICENSE} = $META{license}[0] + if $META{license} && $eumm_version >= 6.30; $MM_ARGS{NO_MYMETA} = 1 if $mymeta_broken; $MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META } @@ -84,3 +86,4 @@ delete $MM_ARGS{CONFIGURE_REQUIRES} if $eumm_version < 6.51_03; ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS); +## END BOILERPLATE ###########################################################