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