Add boilderplate POD
[catagits/Catalyst-Engine-STOMP.git] / Makefile.PL
CommitLineData
2635b594 1use inc::Module::Install 0.91;
86eaf926 2use strict;
3use warnings;
b919b4cc 4use 5.008006;
48bc6cd6 5
86eaf926 6BEGIN {
7 if ($Module::Install::AUTHOR) {
8 require Module::Install::AuthorRequires;
9 }
10}
11
68e73c9f 12license 'perl';
13
b919b4cc 14name 'Catalyst-Engine-Stomp';
15all_from 'lib/Catalyst/Engine/Stomp.pm';
48bc6cd6 16
b919b4cc 17requires 'Catalyst::Engine::Embeddable' => '0.0.1';
092efce5 18requires 'Catalyst::Runtime' => '5.80004';
b919b4cc 19requires 'Moose' => undef;
2b075013 20requires 'MooseX::Types' => undef;
b919b4cc 21requires 'MooseX::Workers' => '0.05';
48bc6cd6 22requires 'Net::Stomp' => '0.34';
b919b4cc 23requires 'YAML::XS' => '0.32';
a5ae1e8c 24requires 'Data::Serializer' => '0.49';
b919b4cc 25requires 'namespace::autoclean' => '0.05';
26
a431050d 27test_requires 'Alien::ActiveMQ' => '0.00003';
bff45299 28test_requires 'Catalyst::Plugin::ConfigLoader' => undef;
6ac87378 29
86eaf926 30author_requires 'Test::NoTabs';
31author_requires 'Test::Pod';
32author_requires 'Test::Pod::Coverage';
33author_requires 'Pod::Coverage';
e946eafd 34
35if ($Module::Install::AUTHOR) {
e946eafd 36 darwin_check_no_resource_forks();
37}
38
86eaf926 39resources
40 'repository' => 'git://github.com/chrisa/catalyst-engine-stomp.git',
41 'license' => 'http://dev.perl.org/licenses/';
42
e946eafd 43install_script glob('script/*.pl');
b919b4cc 44auto_install;
45WriteAll;
46
e946eafd 47sub 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