X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=Makefile.PL;h=2c78e577b594c787d77c1d5ed55b0669f44bb668;hp=c64d99bffd975ad6555e2920d904ee5d3874226a;hb=4d18b20edca3b155b05964c21d0d990ce5a2b652;hpb=adb0550a261872e52c0c135273249c8b32445a11 diff --git a/Makefile.PL b/Makefile.PL index c64d99b..2c78e57 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,24 +1,161 @@ use strict; -use warnings; -use inc::Module::Install 0.87; +use warnings FATAL => 'all'; +use ExtUtils::MakeMaker; +(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; -use Module::Install::AuthorTests; -use Module::Install::AuthorRequires; +my %WriteMakefileArgs = ( + NAME => 'Catalyst::Manual', + VERSION_FROM => 'lib/Catalyst/Manual.pm', + AUTHOR => [ 'Catalyst Contributors, see Catalyst.pm', 'Kieren Diment ' ], -name 'Catalyst-Manual'; -all_from 'lib/Catalyst/Manual.pm'; -author 'Kieren Diment '; -license 'perl'; + META_MERGE => { + 'meta-spec' => { version => 2 }, + dynamic_config => 0, + resources => { + repository => { + # r/w: catagits@git.shadowcat.co.uk:Catalyst-Manual.git + url => 'git://git.shadowcat.co.uk/catagits/Catalyst-Manual.git', + web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-Manual.git', + type => 'git', + }, + bugtracker => { + mailto => 'bug-Catalyst-Manual@rt.cpan.org', + web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Manual', + }, + x_IRC => 'irc://irc.perl.org/#catalyst', + }, + x_contributors => [ # manually added, from git shortlog -e -s -n + 'Kennedy Clark ', + 'Tomas Doran ', + 'Kieren Diment ', + 'Karen Etheridge ', + 'Jonathan Rockway ', + 'Jesse Sheidlower ', + 'Brian Cassidy ', + 'Caleb Cushing ', + 'Dan Dascalescu ', + 'Rafael Kitover ', + 'Jason Felds ', + 'Frederik Schwarzer ', + 'Jonathan Yu ', + 'Breno G. de Oliveira ', + 'Matt S Trout ', + 'Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 ', + 'Jess Robinson ', + 'Florian Ragwitz ', + 'Eden Cardim ', + 'Andrew Rodland ', + 'Justin Hunter ', + 'Matthew Horsfall ', + 'Ricardo SIGNES ', + 'Robert \'phaylon\' Sedlacek ', + 'Shlomi Fish ', + 'Jay Kuri ', + 'u-foka ', + 'Dagfinn Ilmari Mannsåker ', + 'Alexander Hartmaier ', + 'Peter Karman ', + 'Andreas Marienborg ', + 'Gerda Shank ', + 'Ian Wells ', + 'Mark A. Stratman ', + 'sockmonk ', + 'Mateu X. Hunter ', + 'Ash Berlin ', + 'Marcus Ramberg ', + 'Andy Grundman ', + 'kostya ', + 'Matthias Dietrich ', + 'Paul Waring ', + 'kthakore ', + 'Ronald J Kimball ', + 'Tom Feist ', + 'Ton Voon ', + 'Zsolt Zemancsik ', + 'Iñigo Tejedor Arrondo ', + 'Eric A. Zarko ', + 'Jay Hannah ', + 'Eisenberger Tamás ', + 'Edwin de Graaf ', + 'Jonathan "Duke" Leto ', + 'Jonathan Otsuka ', + 'Alastair McGowan-Douglas ', + 'Dominic Humphries ', + 'antgel ', + 'KMX ', + 'David Steinbrunner ', + 'David Schmidt ', + ], + }, -test_requires 'Test::More'; + META_ADD => { + prereqs => { + configure => { + requires => { + 'ExtUtils::MakeMaker' => '0', + }, + }, + runtime => { + requires => { + perl => '5.006', + }, + }, + test => { + requires => { + 'Test::More' => '0.88', + }, + }, + develop => { + requires => { + 'Pod::Simple' => '3.11', # L support + 'Test::Pod' => '1.14', + 'Test::Pod::Coverage' => '1.04', + }, + }, + }, + }, -author_requires 'Pod::Simple' => '3.11'; # L support -author_requires 'Test::Pod' => '1.14'; -author_requires 'Test::Pod::Coverage' => '1.04'; -author_tests 't/author'; + realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] }, +); -auto_install; -resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Manual/5.80/trunk/'; +my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; -WriteAll; +for (qw(configure build test runtime)) { + my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES'; + next unless exists $WriteMakefileArgs{META_ADD}{prereqs}{$_} + or exists $WriteMakefileArgs{$key}; + my $r = $WriteMakefileArgs{$key} = { + %{$WriteMakefileArgs{META_ADD}{prereqs}{$_}{requires} || {}}, + %{delete $WriteMakefileArgs{$key} || {}}, + }; + defined $r->{$_} or delete $r->{$_} for keys %$r; +} + +# dynamic prereqs get added here. + +$WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0; + +$WriteMakefileArgs{BUILD_REQUIRES} = { + %{$WriteMakefileArgs{BUILD_REQUIRES} || {}}, + %{delete $WriteMakefileArgs{TEST_REQUIRES}} +} if $eumm_version < 6.63_03; + +$WriteMakefileArgs{PREREQ_PM} = { + %{$WriteMakefileArgs{PREREQ_PM}}, + %{delete $WriteMakefileArgs{BUILD_REQUIRES}} +} if $eumm_version < 6.55_01; + +delete $WriteMakefileArgs{CONFIGURE_REQUIRES} + if $eumm_version < 6.51_03; + +delete $WriteMakefileArgs{MIN_PERL_VERSION} + if $eumm_version < 6.48; + +delete @WriteMakefileArgs{qw(META_ADD META_MERGE)} + if $eumm_version < 6.46; + +delete $WriteMakefileArgs{LICENSE} + if $eumm_version < 6.31; + +WriteMakefile(%WriteMakefileArgs);