Debian Codegraph @

Makefile.PL

raw
1 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.038
2 use strict;
3 use warnings;
4
5 use 5.020;
6
7 use ExtUtils::MakeMaker;
8
9 use File::ShareDir::Install;
10 $File::ShareDir::Install::INCLUDE_DOTFILES = 1;
11 $File::ShareDir::Install::INCLUDE_DOTDIRS = 1;
12 install_share dist => "share";
13
14
15 my %WriteMakefileArgs = (
16 "ABSTRACT" => "Acceptance testing for JSON-Schema based validators",
17 "AUTHOR" => "Ben Hutton (\@relequestual) <relequest\@cpan.org>",
18 "CONFIGURE_REQUIRES" => {
19 "ExtUtils::MakeMaker" => 0,
20 "File::ShareDir::Install" => "0.06",
21 "Text::ParseWords" => 0
22 },
23 "DISTNAME" => "Test-JSON-Schema-Acceptance",
24 "LICENSE" => "mit",
25 "MIN_PERL_VERSION" => "5.020",
26 "NAME" => "Test::JSON::Schema::Acceptance",
27 "PREREQ_PM" => {
28 "Feature::Compat::Try" => 0,
29 "File::ShareDir" => 0,
30 "Git::Wrapper" => 0,
31 "JSON::PP" => "4.11",
32 "List::Util" => "1.33",
33 "Mojolicious" => "7.87",
34 "Moo" => 0,
35 "MooX::TypeTiny" => "0.002002",
36 "Path::Tiny" => "0.069",
37 "Test2::Todo" => 0,
38 "Types::Common::Numeric" => 0,
39 "Types::Standard" => "1.016003",
40 "autovivification" => 0,
41 "experimental" => 0,
42 "if" => 0,
43 "namespace::clean" => 0,
44 "stable" => "0.031",
45 "strictures" => 2
46 },
47 "TEST_REQUIRES" => {
48 "ExtUtils::MakeMaker" => 0,
49 "JSON::PP" => "4.11",
50 "Test2::Suite" => "0.000131",
51 "Test2::Tools::Exception" => 0,
52 "Test2::V0" => 0,
53 "Test2::Warnings" => 0,
54 "Test::Deep" => 0,
55 "Test::File::ShareDir" => 0,
56 "Test::Simple" => "1.302176",
57 "builtin::compat" => 0
58 },
59 "VERSION" => "1.039",
60 "test" => {
61 "TESTS" => "t/*.t"
62 }
63 );
64
65
66 my %FallbackPrereqs = (
67 "ExtUtils::MakeMaker" => 0,
68 "Feature::Compat::Try" => 0,
69 "File::ShareDir" => 0,
70 "Git::Wrapper" => 0,
71 "JSON::PP" => "4.11",
72 "List::Util" => "1.33",
73 "Mojolicious" => "7.87",
74 "Moo" => 0,
75 "MooX::TypeTiny" => "0.002002",
76 "Path::Tiny" => "0.069",
77 "Test2::Suite" => "0.000131",
78 "Test2::Todo" => 0,
79 "Test2::Tools::Exception" => 0,
80 "Test2::V0" => 0,
81 "Test2::Warnings" => 0,
82 "Test::Deep" => 0,
83 "Test::File::ShareDir" => 0,
84 "Test::Simple" => "1.302176",
85 "Types::Common::Numeric" => 0,
86 "Types::Standard" => "1.016003",
87 "autovivification" => 0,
88 "builtin::compat" => 0,
89 "experimental" => 0,
90 "if" => 0,
91 "namespace::clean" => 0,
92 "stable" => "0.031",
93 "strictures" => 2
94 );
95
96 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
97 if (want_xs()) {
98 requires('Cpanel::JSON::XS', '3.0223')
99 }
100
101
102
103 unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
104 delete $WriteMakefileArgs{TEST_REQUIRES};
105 delete $WriteMakefileArgs{BUILD_REQUIRES};
106 $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
107 }
108
109 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
110 unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
111
112 WriteMakefile(%WriteMakefileArgs);
113
114 {
115 package
116 MY;
117 use File::ShareDir::Install qw(postamble);
118 }
119
120 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
121 sub _add_prereq {
122 my ($mm_key, $module, $version_or_range) = @_;
123 $version_or_range ||= 0;
124 warn "$module already exists in $mm_key (at version $WriteMakefileArgs{$mm_key}{$module}) -- need to do a sane metamerge!"
125 if exists $WriteMakefileArgs{$mm_key}{$module}
126 and $WriteMakefileArgs{$mm_key}{$module} ne '0'
127 and $WriteMakefileArgs{$mm_key}{$module} ne $version_or_range;
128 warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$module}) -- need to do a sane metamerge!"
129 if exists $FallbackPrereqs{$module} and $FallbackPrereqs{$module} ne '0'
130 and $FallbackPrereqs{$module} ne $version_or_range;
131 $WriteMakefileArgs{$mm_key}{$module} = $FallbackPrereqs{$module} = $version_or_range;
132 return;
133 }
134
135 use lib 'inc';
136 use ExtUtils::HasCompiler 0.014 'can_compile_loadable_object';
137 {
138 my $can_xs;
139 sub can_xs {
140 return $can_xs if defined $can_xs;
141 $can_xs = can_compile_loadable_object(quiet => 1) ? 1 : 0;
142 }
143 }
144
145 {
146 my $parsed_args;
147 sub parse_args {
148 return $parsed_args if defined $parsed_args;
149 require ExtUtils::MakeMaker;
150 require Text::ParseWords;
151 ExtUtils::MakeMaker::parse_args(
152 my $tmp = {},
153 Text::ParseWords::shellwords($ENV{PERL_MM_OPT} || ''),
154 @ARGV,
155 );
156 $parsed_args = $tmp->{ARGS} || {};
157 }
158 }
159
160 sub requires { goto &runtime_requires }
161
162 sub runtime_requires {
163 my ($module, $version_or_range) = @_;
164 _add_prereq(PREREQ_PM => $module, $version_or_range);
165 }
166
167 {
168 my $want_pp;
169 sub want_pp {
170 return $$want_pp if defined $want_pp;
171 my $pp_only = parse_args()->{PUREPERL_ONLY};
172 $pp_only = !!$pp_only if defined $pp_only;
173 $want_pp = \$pp_only;
174 $pp_only;
175 }
176 }
177
178 {
179 my $want_xs;
180 sub want_xs {
181 return $want_xs if defined $want_xs;
182 my $want_pp = want_pp();
183 $want_xs = defined $want_pp ? !$want_pp : can_xs();
184 return $want_xs;
185 }
186 }
187