Checking in changes prior to tagging of version 0.26. Changelog diff is:
[catagits/Catalyst-Plugin-Session.git] / Makefile.PL
1 use inc::Module::Install 0.87;
2
3 if ( -e 'MANIFEST.SKIP' ) {
4     system( 'pod2text lib/Catalyst/Plugin/Session.pm > README' )
5         and die("Could not run pod2text on lib/Catalyst/Plugin/Session.pm");
6 }
7
8 is_upgrading_needed();
9
10 perl_version '5.008';
11
12 name 'Catalyst-Plugin-Session';
13 all_from 'lib/Catalyst/Plugin/Session.pm';
14
15 requires 'Catalyst::Runtime' => '5.71001';
16 requires 'namespace::clean' => '0.10';
17 requires 'Digest';
18 requires 'File::Spec';
19 requires 'File::Temp';
20 requires 'Object::Signature';
21 requires 'MRO::Compat';
22 requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00801';
23 requires 'Moose' => '0.76';
24
25 # an indirect dep. needs a certain version.
26 requires 'Tie::RefHash' => '1.34';
27
28 # for Test::Store
29 requires 'Test::More';
30
31 test_requires 'Test::Deep';
32 test_requires 'Test::Exception';
33
34 resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Plugin-Session/0.00/trunk/';
35
36 WriteAll;
37
38 sub is_upgrading_needed {
39     my %state = (
40         Cookie => 0.03,
41         URI    => 0.02,
42     );
43
44     foreach my $module (keys %state) {
45         if ( eval "require Catalyst::Plugin::Session::State::$module" and
46         ${"Catalyst::Plugin::Session::State::${module}::VERSION"} < $state{$module} ) {
47             warn <<WARN;
48
49 ********** NOTE **********
50
51 Catalyst::Plugin::Session::State::$module must also be updated!
52
53 The currently installed version is *not* compatible with this version of
54 Catalyst::Plugin::Session!
55
56 The updated versions have been added to the prerequisites.
57
58 **************************
59 WARN
60         }
61     }
62 }