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