| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Dist::Zilla::PluginBundle::ApacheTest; |
|
2
|
|
|
|
|
|
|
$Dist::Zilla::PluginBundle::ApacheTest::VERSION = '0.04'; |
|
3
|
|
|
|
|
|
|
# ABSTRACT: Dist::Zilla Plugin Bundle That Configures Makefile.PL for Apache::Test |
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1373
|
use Moose; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
6
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::PluginBundle::Easy'; |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub configure { |
|
10
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
11
|
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
my $args = $self->payload; |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$self->add_plugins( |
|
15
|
|
|
|
|
|
|
[ |
|
16
|
|
|
|
|
|
|
'MakeMaker::ApacheTest' => { |
|
17
|
0
|
|
0
|
|
|
|
min_version => ($$args{min_version} || 0) |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
], |
|
20
|
|
|
|
|
|
|
[ |
|
21
|
|
|
|
|
|
|
'DynamicPrereqs' => { |
|
22
|
|
|
|
|
|
|
-raw => join('', |
|
23
|
|
|
|
|
|
|
q[if ($mp_version == 2) { ], |
|
24
|
|
|
|
|
|
|
q[ requires('mod_perl2', '1.999022'); ], |
|
25
|
|
|
|
|
|
|
q[} ], |
|
26
|
|
|
|
|
|
|
q[elsif ($mp_version == 1) { ], |
|
27
|
|
|
|
|
|
|
q[ requires('mod_perl', '1.27'); ], |
|
28
|
|
|
|
|
|
|
q[}] |
|
29
|
|
|
|
|
|
|
) |
|
30
|
|
|
|
|
|
|
} |
|
31
|
|
|
|
|
|
|
] |
|
32
|
|
|
|
|
|
|
); |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
37
|
1
|
|
|
1
|
|
5873
|
no Moose; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
4
|
|
|
38
|
|
|
|
|
|
|
1; |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=pod |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 NAME |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Dist::Zilla::PluginBundle::ApacheTest - Dist::Zilla Plugin Bundle That Configures Makefile.PL for Apache::Test |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 VERSION |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
version 0.04 |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
in dist.ini |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
; remove MakeMaker |
|
57
|
|
|
|
|
|
|
;[MakeMaker] |
|
58
|
|
|
|
|
|
|
[@ApacheTest] |
|
59
|
|
|
|
|
|
|
min_version = 1.39 |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
or, if you are using a bundle like L<@Classic|Dist::Zilla::PluginBundle::Classic>: |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
[@Filter] |
|
64
|
|
|
|
|
|
|
bundle = @Classic |
|
65
|
|
|
|
|
|
|
remove = MakeMaker |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
[@ApacheTest] |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This is equivalent to the following: |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
[MakeMaker::ApacheTest] |
|
72
|
|
|
|
|
|
|
[DynamicPrereqs] |
|
73
|
|
|
|
|
|
|
-raw = (code to require mod_perl if installed, otherwise mod_perl2) |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This plugin makes use of |
|
78
|
|
|
|
|
|
|
L<MakeMaker::Awesome|Dist::Zilla::Plugin::MakeMaker::Awesome> to produce a |
|
79
|
|
|
|
|
|
|
Makefile.PL with L<Apache::Test> hooks enabled. If this plugin is loaded, you |
|
80
|
|
|
|
|
|
|
should also load the L<Manifest|Dist::Zilla::Plugin::Manifest> plugin should |
|
81
|
|
|
|
|
|
|
also be loaded, and the L<MakeMaker|Dist::Zilla::Plugin::MakeMaker> plugin. |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 CONFIGURATION OPTIONS |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
The following options are available in C<dist.ini> for this plugin: |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=over 4 |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=item * |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
min_version |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
The minimum version of Apache::Test that will be required in C<Makefile.PL>. |
|
94
|
|
|
|
|
|
|
The default is C<0>. You are B<strongly> encouraged to explicitly specify the |
|
95
|
|
|
|
|
|
|
version of L<Apache::Test> that is required by your module instead of relying |
|
96
|
|
|
|
|
|
|
on the default. |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=back |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=over 4 |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=item * |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
L<MakeMaker::Awesome|Dist::Zilla::Plugin::MakeMaker::Awesome> |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=item * |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
L<MakeMaker::ApacheTest|Dist::Zilla::Plugin::MakeMaker::ApacheTest> |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=back |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 SOURCE |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
The development version is on github at L<https://github.com/mschout/dist-zilla-plugin-apachetest> |
|
117
|
|
|
|
|
|
|
and may be cloned from L<git://github.com/mschout/dist-zilla-plugin-apachetest.git> |
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head1 BUGS |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Please report any bugs or feature requests to bug-dist-zilla-plugin-apachetest@rt.cpan.org or through the web interface at: |
|
122
|
|
|
|
|
|
|
http://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-ApacheTest |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head1 AUTHOR |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Michael Schout <mschout@cpan.org> |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Michael Schout. |
|
131
|
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
133
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
134
|
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=cut |