Makefile.PL

filter: Statementstmt n/a Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a SCAR 0
CC
0
Cov
0%
CRAP 0
« lib/CPANPLUS/Config/YACSmoke.pm ↑ Summary /dev/null »
1 # This Makefile.PL for CPANPLUS-YACSmoke was generated by
2 # Dist::Zilla::Plugin::MakeMaker::Awesome 0.47.
3 # Don't edit it but the dist.ini and plugins used to construct it.
4  
5 use strict;
6 use warnings;
7  
8 use ExtUtils::MakeMaker;
9  
10 my %WriteMakefileArgs = (
11 "ABSTRACT" => "Yet Another CPANPLUS Smoke Tester",
12 "AUTHOR" => "Chris Williams <chris\@bingosnet.co.uk>",
13 "CONFIGURE_REQUIRES" => {
14 "CPANPLUS" => "0.88",
15 "ExtUtils::MakeMaker" => 0
16 },
17 "DISTNAME" => "CPANPLUS-YACSmoke",
18 "EXE_FILES" => [
19 "bin/yactool"
20 ],
21 "LICENSE" => "perl",
22 "NAME" => "CPANPLUS::YACSmoke",
23 "PREREQ_PM" => {
24 "CPANPLUS" => "0.9123",
25 "CPANPLUS::Dist::Build" => "0.62",
26 "ExtUtils::CBuilder" => 0,
27 "ExtUtils::ParseXS" => 0,
28 "File::Spec" => 0,
29 "IPC::Cmd" => "0.72",
30 "Module::Build" => "0.33",
31 "Module::Load::Conditional" => 0,
32 "Params::Check" => 0,
33 "Parse::CPAN::Meta" => "1.4200",
34 "SDBM_File" => 0,
35 "Test::Reporter" => "1.34",
36 "version" => "0.73"
37 },
38 "TEST_REQUIRES" => {
39 "File::Spec" => 0,
40 "IO::Handle" => 0,
41 "IPC::Open3" => 0,
42 "Test::More" => "0.47"
43 },
44 "VERSION" => "1.06",
45 "test" => {
46 "TESTS" => "t/*.t"
47 }
48 );
49  
50 %WriteMakefileArgs = (
51 %WriteMakefileArgs,
52 clean => {FILES => 't/dummy-cpanplus'},
53 );
54  
55 my %FallbackPrereqs = (
56 "CPANPLUS" => "0.9123",
57 "CPANPLUS::Dist::Build" => "0.62",
58 "ExtUtils::CBuilder" => 0,
59 "ExtUtils::ParseXS" => 0,
60 "File::Spec" => 0,
61 "IO::Handle" => 0,
62 "IPC::Cmd" => "0.72",
63 "IPC::Open3" => 0,
64 "Module::Build" => "0.33",
65 "Module::Load::Conditional" => 0,
66 "Params::Check" => 0,
67 "Parse::CPAN::Meta" => "1.4200",
68 "SDBM_File" => 0,
69 "Test::More" => "0.47",
70 "Test::Reporter" => "1.34",
71 "version" => "0.73"
72 );
73  
74 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.034
75 {
76 require CPANPLUS::Backend;
77 require CPANPLUS::Selfupdate;
78 my $href = CPANPLUS::Selfupdate->new(CPANPLUS::Backend->new())->modules_for_feature('cpantest',1);
79 requires( $_ => $href->{$_} ) for keys %$href;
80 }
81  
82 unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) {
83 delete $WriteMakefileArgs{TEST_REQUIRES};
84 delete $WriteMakefileArgs{BUILD_REQUIRES};
85 $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
86 }
87  
88 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
89 unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
90  
91 WriteMakefile(%WriteMakefileArgs);
92  
93 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.034
94 sub _add_prereq {
95 my ($mm_key, $module, $version_or_range) = @_;
96 $version_or_range ||= 0;
97 warn "$module already exists in $mm_key (at version $WriteMakefileArgs{$mm_key}{$module}) -- need to do a sane metamerge!"
98 if exists $WriteMakefileArgs{$mm_key}{$module}
99 and $WriteMakefileArgs{$mm_key}{$module} ne '0'
100 and $WriteMakefileArgs{$mm_key}{$module} ne $version_or_range;
101 warn "$module already exists in FallbackPrereqs (at version $WriteMakefileArgs{$mm_key}{$module}) -- need to do a sane metamerge!"
102 if exists $FallbackPrereqs{$module} and $FallbackPrereqs{$module} ne '0'
103 and $FallbackPrereqs{$module} ne $version_or_range;
104 $WriteMakefileArgs{$mm_key}{$module} = $FallbackPrereqs{$module} = $version_or_range;
105 return;
106 }
107  
108 sub requires { goto &runtime_requires }
109  
110 sub runtime_requires {
111 my ($module, $version_or_range) = @_;
112 _add_prereq(PREREQ_PM => $module, $version_or_range);
113 }
« lib/CPANPLUS/Config/YACSmoke.pm ↑ Summary /dev/null »