diff options
author | James E Keenan <jkeenan@cpan.org> | 2018-02-11 11:49:19 -0500 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2018-02-17 09:30:32 -0500 |
commit | 1e888967e7732658ae6e3e523176253770138968 (patch) | |
tree | 6e96115cb6a0ae6bc00b9f0c81c2f5b01ff41841 /dist/PathTools | |
parent | fb686fbfd600a6525f4f9a5371881e8b64be46e0 (diff) | |
download | perl-1e888967e7732658ae6e3e523176253770138968.tar.gz |
Add ABSTRACT, LICENSE, AUTHOR, etc. elements.
Add them conditionally so that CPAN PathTools can accommodate different
versions of ExtUtils::MakeMaker and CPAN metadata protocols.
Styled after Module-CoreList's Makefile.PL for better readability.
See: RT 132853
Diffstat (limited to 'dist/PathTools')
-rw-r--r-- | dist/PathTools/Makefile.PL | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/dist/PathTools/Makefile.PL b/dist/PathTools/Makefile.PL index 71b9a60d09..11e04af523 100644 --- a/dist/PathTools/Makefile.PL +++ b/dist/PathTools/Makefile.PL @@ -9,11 +9,26 @@ BEGIN { @INC = grep { $_ ne "blib/arch" and $_ ne "blib/lib" } @INC } require 5.005; use ExtUtils::MakeMaker; + +my @extra; +push @extra, 'LICENSE' => 'perl_5' + unless $ExtUtils::MakeMaker::VERSION < 6.31; +push @extra, 'META_MERGE' => { + resources => { + repository => 'git://perl5.git.perl.org/perl.git', + bugtracker => 'https://rt.perl.org/rt3/', + homepage => "http://dev.perl.org/", + license => [ 'http://dev.perl.org/licenses/' ], + }, + } unless $ExtUtils::MakeMaker::VERSION < 6.46; + WriteMakefile ( 'DISTNAME' => 'PathTools', 'NAME' => 'Cwd', 'VERSION_FROM' => 'Cwd.pm', + 'ABSTRACT' => 'Tools for working with directory and file names', + 'AUTHOR' => 'Perl 5 Porters', 'DEFINE' => join(" ", "-DDOUBLE_SLASHES_SPECIAL=@{[$^O eq q(qnx) || $^O eq q(nto) ? 1 : 0]}", ((grep { $_ eq 'PERL_CORE=1' } @ARGV) ? '-DNO_PPPORT_H' : ()), @@ -27,6 +42,7 @@ WriteMakefile }, ($] > 5.011) ? () : ( INSTALLDIRS => 'perl' ), # CPAN sourced versions should now install to site 'EXE_FILES' => [], - 'PL_FILES' => {} + 'PL_FILES' => {}, + @extra, ) ; |