X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile.PL;h=09b23bea4759e5f6e426054edba100a9c56b25fa;hb=c514d57dc8088e1f4d3f51857b1155c20085c296;hp=968a70a12cc643a7069f8e0860e836678b67ad55;hpb=70f31313f9e17d608246a6c3df1cc2f4cf0c1a0c;p=perltidy.git diff --git a/Makefile.PL b/Makefile.PL index 968a70a..09b23be 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,24 +1,50 @@ -# -# The indentation of this file is poor because this file may be used to -# test perltidy after installation. For example, try -# -# perltidy -lp Makefile.PL -# -# which will create a reformatted version as Makefile.PL.tdy. -# use ExtUtils::MakeMaker; + +my $mm_ver = $ExtUtils::MakeMaker::VERSION; +if ( $mm_ver =~ /_/ ) { # developer release/version + $mm_ver = eval $mm_ver; + die $@ if $@; +} + +# Minimum version found by perlver: +# +# ------------------------------------------ +# | file | explicit | syntax | external | +# | ------------------------------------------ | +# | perltidy.pl | v5.8.0 | v5.8.0 | n/a | +# | ------------------------------------------ | +# | Minimum explicit version : v5.8.0 | +# | Minimum syntax version : v5.8.0 | +# | Minimum version of perl : v5.8.0 | +# ------------------------------------------ + WriteMakefile( -NAME => "Perl::Tidy", -VERSION_FROM => "lib/Perl/Tidy.pm", -( - $] >= 5.005 -? ( - ABSTRACT => 'indent and reformat perl scripts', - LICENSE => 'GPL-2.0+', -AUTHOR => 'Steve Hancock ' - ) -: () -), -EXE_FILES => ['bin/perltidy'], -dist => { COMPRESS => 'gzip', SUFFIX => 'gz' }, + NAME => "Perl::Tidy", + VERSION_FROM => "lib/Perl/Tidy.pm", + ( + $] >= 5.005 + ? ( + ABSTRACT => 'indent and reformat perl scripts', + LICENSE => 'gpl_2', + AUTHOR => 'Steve Hancock ' + ) + : () + ), + ( + $mm_ver >= 6.48 ? ( MIN_PERL_VERSION => 5.008 ) + : () + ), + + EXE_FILES => ['bin/perltidy'], + dist => { COMPRESS => 'gzip', SUFFIX => 'gz' }, + META_MERGE => { + 'meta-spec' => { version => 2 }, + resources => { + repository => { + type => 'git', + url => 'https://github.com/perltidy/perltidy.git', + web => 'https://github.com/perltidy/perltidy', + }, + }, + }, );