-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
136 lines (119 loc) · 3.5 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.017.
use strict;
use warnings;
use 5.006;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
"ABSTRACT" => "Find or Build libxpa",
"AUTHOR" => "Diab Jerius <djerius\@cpan.org>",
"BUILD_REQUIRES" => {
"Alien::Build" => "0.32",
"Alien::Build::MM" => "0.32",
"ExtUtils::MakeMaker" => "7.50"
},
"CONFIGURE_REQUIRES" => {
"Alien::Build" => "1.19",
"Alien::Build::MM" => "0.32",
"ExtUtils::MakeMaker" => "6.52"
},
"DISTNAME" => "Alien-XPA",
"LICENSE" => "gpl",
"MIN_PERL_VERSION" => "5.006",
"NAME" => "Alien::XPA",
"PREREQ_PM" => {
"Alien::Base" => 0,
"base" => 0,
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"Action::Retry" => 0,
"Capture::Tiny" => 0,
"Child" => 0,
"ExtUtils::MakeMaker" => "7.50",
"File::Slurper" => 0,
"File::Spec" => 0,
"File::Which" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"Test2::Bundle::Extended" => 0,
"Test2::V0" => 0,
"Test::Alien" => 0,
"Test::More" => 0,
"subs" => 0
},
"VERSION" => "0.11",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Action::Retry" => 0,
"Alien::Base" => 0,
"Alien::Build" => "0.32",
"Alien::Build::MM" => "0.32",
"Capture::Tiny" => 0,
"Child" => 0,
"ExtUtils::MakeMaker" => "7.50",
"File::Slurper" => 0,
"File::Spec" => 0,
"File::Which" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"Test2::Bundle::Extended" => 0,
"Test2::V0" => 0,
"Test::Alien" => 0,
"Test::More" => 0,
"base" => 0,
"strict" => 0,
"subs" => 0,
"warnings" => 0
);
# BEGIN code inserted by Dist::Zilla::Plugin::AlienBuild
use Alien::Build::MM;
my $abmm = Alien::Build::MM->new;
%WriteMakefileArgs = $abmm->mm_args(%WriteMakefileArgs);
# END code inserted by Dist::Zilla::Plugin::AlienBuild
# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.039
if ($^O eq 'MSWin32') {
test_requires( 'Win32::Process' )
}
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
# BEGIN code inserted by Dist::Zilla::Plugin::AlienBuild
{ package
MY;
sub postamble {
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.039
sub _add_prereq {
my ($mm_key, $module, $version_or_range) = @_;
$version_or_range ||= 0;
warn "$module already exists in $mm_key (at version $WriteMakefileArgs{$mm_key}{$module}) -- need to do a sane metamerge!"
if exists $WriteMakefileArgs{$mm_key}{$module}
and $WriteMakefileArgs{$mm_key}{$module} ne '0'
and $WriteMakefileArgs{$mm_key}{$module} ne $version_or_range;
warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$module}) -- need to do a sane metamerge!"
if exists $FallbackPrereqs{$module} and $FallbackPrereqs{$module} ne '0'
and $FallbackPrereqs{$module} ne $version_or_range;
$WriteMakefileArgs{$mm_key}{$module} = $FallbackPrereqs{$module} = $version_or_range;
return;
}
sub test_requires {
my ($module, $version_or_range) = @_;
_add_prereq(TEST_REQUIRES => $module, $version_or_range);
}