X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=5582c6a8a05fcc7bad6ac562f619fb0f3de93130;hb=rt51769;hp=98b9f2cf01f155a2df5da96785a35dced7247832;hpb=149182b33984f338616305abf6438822058085d2;p=catagits%2FCatalyst-Action-REST.git diff --git a/Makefile.PL b/Makefile.PL index 98b9f2c..5582c6a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,8 @@ +use strict; +use warnings; use inc::Module::Install; +use Module::Install::AuthorRequires; +use Module::Install::AuthorTests; perl_version '5.8.1'; @@ -20,35 +24,55 @@ requires('MRO::Compat' => '0.10'); requires 'namespace::autoclean'; test_requires 'Test::More' => '0.88'; +author_requires 'Test::Pod' => 1.14; +author_requires 'Module::Info'; +author_requires 'File::Find::Rule'; + +author_tests 'xt/'; + feature 'JSON (application/json) support', -default => 0, 'JSON' => '2.12'; 'JSON::XS' => '2.2222'; +author_requires 'JSON' => '2.12'; +author_requires 'JSON::XS' => '2.2222'; + feature 'Data::Taxi (text/x-data-taxi) support', -default => 0, 'Data::Taxi' => undef; +author_requires 'Data::Taxi'; + feature 'Config::General (text/x-config-general) support', -default => 0, 'Config::General' => undef; +author_requires 'Config::General'; feature 'PHP::Serialization (text/x-php-serialization) support', -default => 0, 'PHP::Serialization' => undef; +author_requires 'PHP::Serialization'; feature 'FreezeThaw (application/x-freezethaw) support', -default => 0, 'FreezeThaw' => undef; +author_requires 'FreezeThaw'; feature 'XML::Simple (text/xml) support', -default => 0, 'XML::Simple' => undef; +author_requires 'XML::Simple'; auto_include; auto_install; -repository 'http://github.com/bobtfish/catalyst-action-rest'; +if ($Module::Install::AUTHOR) { + system("pod2text lib/Catalyst/Action/REST.pm > README") + and die $!; +} + +repository 'git://git.shadowcat.co.uk/catagits/Catalyst-Action-REST.git'; WriteAll;