-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMakefile_PL_settings.plx
58 lines (51 loc) · 1.42 KB
/
Makefile_PL_settings.plx
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
use strict;
use warnings;
{
my $broken;
if (eval { require Moose }) {
if (!eval { package A_Moose_User; Moose->import; 1 }) {
$broken = 'import';
}
} elsif ($@ !~ /^Can't locate Moose\.pm /) {
$broken = 'require';
}
if ($broken) {
print STDERR <<"EOT";
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! Error: You seem to have Moose but I can't "use" it ($broken dies). !!!
!!! This would cause confusing test errors, so I'm bailing out. Sorry. !!!
!!! Maybe try upgrading Moose? !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The exception was:
$@
EOT
exit 1;
}
}
return {
NAME => 'Function::Parameters',
AUTHOR => q{Lukas Mai <[email protected]>},
MIN_PERL_VERSION => '5.14.0',
CONFIGURE_REQUIRES => {},
BUILD_REQUIRES => {},
TEST_REQUIRES => {
'constant' => 0,
'strict' => 0,
'utf8' => 0,
'FindBin' => 0,
'Hash::Util' => 0.07,
'Test::More' => 0,
'Test::Fatal' => 0,
},
PREREQ_PM => {
'Carp' => 0,
'Scalar::Util' => 0,
'XSLoader' => 0,
'warnings' => 0,
},
depend => {
'$(OBJECT)' => join(' ', glob 'hax/*.c.inc'),
},
REPOSITORY => [ github => 'mauke' ],
HARNESS_OPTIONS => ['j4'],
};