Fix tests to skip if YAML::Syck is not installed
[catagits/Catalyst-Action-REST.git] / Makefile.PL
CommitLineData
63d41fcd 1use strict;
2use warnings;
398c5a1b 3use inc::Module::Install;
63d41fcd 4use Module::Install::AuthorRequires;
4a1b40cd 5use Module::Install::AuthorTests;
7328f0ab 6
7perl_version '5.8.1';
8
9name 'Catalyst-Action-REST';
c7cecf65 10all_from 'lib/Catalyst/Action/REST.pm';
7328f0ab 11
d54b6460 12requires 'Moose' => '1.03';
149182b3 13requires 'namespace::autoclean';
786c212f 14requires('Catalyst::Runtime' => '5.80030');
33e5de96 15requires('Params::Validate' => '0.76');
33e5de96 16requires('Module::Pluggable::Object' => undef);
17requires('LWP::UserAgent' => '2.033');
33e5de96 18requires('Class::Inspector' => '1.13');
8f00a41b 19requires('URI::Find' => undef);
def65dcc 20requires('MRO::Compat' => '0.10');
8f00a41b 21
930013e6 22requires 'namespace::autoclean';
149182b3 23test_requires 'Test::More' => '0.88';
801ec379 24test_requires 'Test::Requires';
5ebf67a4 25
4a1b40cd 26author_requires 'Test::Pod' => 1.14;
27author_requires 'Module::Info';
28author_requires 'File::Find::Rule';
29
30author_tests 'xt/';
31
ebba5325 32feature 'JSON (application/json) support',
33 -default => 0,
be35ac1b 34 'JSON' => '2.12',
2f7533ed 35 'JSON::XS' => '2.2222';
ebba5325 36
63d41fcd 37author_requires 'JSON' => '2.12';
38author_requires 'JSON::XS' => '2.2222';
39
47c3e6b3 40feature 'YAML:Syck (for YAML)',
41 -default => 0,
42 'YAML::Syck' => '0.67';
43author_requires 'YAML::Syck';
44
45feature 'HTML::Parser (for HTML input)',
46 -default => 0,
47 'HTML::Parser' => undef;
48author_requires 'HTML::Parser';
49
46ca391e 50feature 'Data::Taxi (text/x-data-taxi) support (deprecated)',
8f00a41b 51 -default => 0,
52 'Data::Taxi' => undef;
53
63d41fcd 54author_requires 'Data::Taxi';
55
8f00a41b 56feature 'Config::General (text/x-config-general) support',
57 -default => 0,
58 'Config::General' => undef;
63d41fcd 59author_requires 'Config::General';
8f00a41b 60
61feature 'PHP::Serialization (text/x-php-serialization) support',
62 -default => 0,
63 'PHP::Serialization' => undef;
63d41fcd 64author_requires 'PHP::Serialization';
8f00a41b 65
66feature 'FreezeThaw (application/x-freezethaw) support',
67 -default => 0,
68 'FreezeThaw' => undef;
63d41fcd 69author_requires 'FreezeThaw';
8f00a41b 70
71feature 'XML::Simple (text/xml) support',
72 -default => 0,
73 'XML::Simple' => undef;
63d41fcd 74author_requires 'XML::Simple';
33e5de96 75
33e5de96 76auto_install;
7328f0ab 77
63d41fcd 78if ($Module::Install::AUTHOR) {
79 system("pod2text lib/Catalyst/Action/REST.pm > README")
80 and die $!;
81}
82
c1f00522 83repository 'git://git.shadowcat.co.uk/catagits/Catalyst-Action-REST.git';
38c3a9b2 84
5ec67ed4 85add_metadata( x_authority => 'cpan:BOBTFISH' );
86
7328f0ab 87WriteAll;
88