Commit | Line | Data |
2635b594 |
1 | use inc::Module::Install 0.91; |
86eaf926 |
2 | use strict; |
3 | use warnings; |
b919b4cc |
4 | use 5.008006; |
48bc6cd6 |
5 | |
86eaf926 |
6 | BEGIN { |
7 | if ($Module::Install::AUTHOR) { |
8 | require Module::Install::AuthorRequires; |
9 | } |
10 | } |
11 | |
68e73c9f |
12 | license 'perl'; |
13 | |
b919b4cc |
14 | name 'Catalyst-Engine-Stomp'; |
15 | all_from 'lib/Catalyst/Engine/Stomp.pm'; |
48bc6cd6 |
16 | |
b919b4cc |
17 | requires 'Catalyst::Engine::Embeddable' => '0.0.1'; |
092efce5 |
18 | requires 'Catalyst::Runtime' => '5.80004'; |
b919b4cc |
19 | requires 'Moose' => undef; |
2b075013 |
20 | requires 'MooseX::Types' => undef; |
b919b4cc |
21 | requires 'MooseX::Workers' => '0.05'; |
48bc6cd6 |
22 | requires 'Net::Stomp' => '0.34'; |
b919b4cc |
23 | requires 'YAML::XS' => '0.32'; |
a5ae1e8c |
24 | requires 'Data::Serializer' => '0.49'; |
b919b4cc |
25 | requires 'namespace::autoclean' => '0.05'; |
26 | |
a431050d |
27 | test_requires 'Alien::ActiveMQ' => '0.00003'; |
bff45299 |
28 | test_requires 'Catalyst::Plugin::ConfigLoader' => undef; |
6ac87378 |
29 | |
86eaf926 |
30 | author_requires 'Test::NoTabs'; |
31 | author_requires 'Test::Pod'; |
32 | author_requires 'Test::Pod::Coverage'; |
33 | author_requires 'Pod::Coverage'; |
e946eafd |
34 | |
35 | if ($Module::Install::AUTHOR) { |
e946eafd |
36 | darwin_check_no_resource_forks(); |
37 | } |
38 | |
86eaf926 |
39 | resources |
40 | 'repository' => 'git://github.com/chrisa/catalyst-engine-stomp.git', |
41 | 'license' => 'http://dev.perl.org/licenses/'; |
42 | |
e946eafd |
43 | install_script glob('script/*.pl'); |
b919b4cc |
44 | auto_install; |
45 | WriteAll; |
46 | |
e946eafd |
47 | sub darwin_check_no_resource_forks { |
48 | if ($^O eq 'darwin') { |
49 | my $osx_ver = `/usr/bin/sw_vers -productVersion`; |
50 | chomp $osx_ver; |
51 | |
52 | # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE |
53 | # On 10.5 (Leopard) it wants COPYFILE_DISABLE |
21975e46 |
54 | my $attr = $osx_ver =~ /^10.5/ ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE'; |
e946eafd |
55 | |
56 | makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}. |
57 | qq{ echo "You must set the ENV variable $attr to true,"; }. |
58 | ' echo "to avoid getting resource forks in your dist."; exit 255; fi' }); |
59 | } |
60 | } |
61 | |