Debian Codegraph @

Makefile.PL

raw
1 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.039
2 use strict;
3 use warnings;
4
5 if ("$]" < 5.038) {
6 die "This distribution will not install where builtin::Backport exists.\n"
7 if eval { +require builtin::Backport; 1 };
8 }
9 use 5.020000;
10
11 use ExtUtils::MakeMaker;
12
13 use File::ShareDir::Install;
14 $File::ShareDir::Install::INCLUDE_DOTFILES = 1;
15 $File::ShareDir::Install::INCLUDE_DOTDIRS = 1;
16 install_share dist => "share";
17
18
19 my %WriteMakefileArgs = (
20 "ABSTRACT" => "Validate data against a schema using a JSON Schema",
21 "AUTHOR" => "Karen Etheridge <ether\@cpan.org>",
22 "CONFIGURE_REQUIRES" => {
23 "ExtUtils::MakeMaker" => 0,
24 "File::ShareDir::Install" => "0.06",
25 "Text::ParseWords" => 0
26 },
27 "DISTNAME" => "JSON-Schema-Modern",
28 "EXE_FILES" => [
29 "script/json-schema-eval"
30 ],
31 "LICENSE" => "perl",
32 "MIN_PERL_VERSION" => "5.020000",
33 "NAME" => "JSON::Schema::Modern",
34 "PREREQ_PM" => {
35 "Clone" => 0,
36 "Digest::MD5" => 0,
37 "Feature::Compat::Try" => 0,
38 "File::ShareDir" => 0,
39 "List::Util" => "1.55",
40 "Math::BigInt" => "1.999701",
41 "Mojolicious" => "7.87",
42 "Moo" => 0,
43 "MooX::TypeTiny" => "0.002002",
44 "Types::Standard" => "1.016003",
45 "YAML::PP" => 0,
46 "autovivification" => 0,
47 "builtin::compat" => "0.003003",
48 "experimental" => "0.026",
49 "if" => 0,
50 "namespace::clean" => 0,
51 "stable" => "0.031",
52 "strictures" => 2
53 },
54 "TEST_REQUIRES" => {
55 "CPAN::Meta::Check" => "0.011",
56 "CPAN::Meta::Requirements" => 0,
57 "Data::Dumper" => 0,
58 "ExtUtils::MakeMaker" => 0,
59 "File::Spec" => 0,
60 "Math::BigInt" => "1.999701",
61 "Term::ANSIColor" => 0,
62 "Test2::API" => 0,
63 "Test2::V0" => 0,
64 "Test2::Warnings" => "0.038",
65 "Test::Deep" => 0,
66 "Test::Deep::UnorderedPairs" => 0,
67 "Test::File::ShareDir" => 0,
68 "Test::JSON::Schema::Acceptance" => "1.039",
69 "Test::Memory::Cycle" => 0,
70 "Test::More" => 0,
71 "Test::Needs" => 0,
72 "Test::Without::Module" => "0.19",
73 "lib" => 0,
74 "utf8" => 0
75 },
76 "VERSION" => "0.650",
77 "test" => {
78 "TESTS" => "t/*.t"
79 }
80 );
81
82
83 my %FallbackPrereqs = (
84 "CPAN::Meta::Check" => "0.011",
85 "CPAN::Meta::Requirements" => 0,
86 "Clone" => 0,
87 "Data::Dumper" => 0,
88 "Digest::MD5" => 0,
89 "ExtUtils::MakeMaker" => 0,
90 "Feature::Compat::Try" => 0,
91 "File::ShareDir" => 0,
92 "File::Spec" => 0,
93 "List::Util" => "1.55",
94 "Math::BigInt" => "1.999701",
95 "Mojolicious" => "7.87",
96 "Moo" => 0,
97 "MooX::TypeTiny" => "0.002002",
98 "Term::ANSIColor" => 0,
99 "Test2::API" => 0,
100 "Test2::V0" => 0,
101 "Test2::Warnings" => "0.038",
102 "Test::Deep" => 0,
103 "Test::Deep::UnorderedPairs" => 0,
104 "Test::File::ShareDir" => 0,
105 "Test::JSON::Schema::Acceptance" => "1.039",
106 "Test::Memory::Cycle" => 0,
107 "Test::More" => 0,
108 "Test::Needs" => 0,
109 "Test::Without::Module" => "0.19",
110 "Types::Standard" => "1.016003",
111 "YAML::PP" => 0,
112 "autovivification" => 0,
113 "builtin::compat" => "0.003003",
114 "experimental" => "0.026",
115 "if" => 0,
116 "lib" => 0,
117 "namespace::clean" => 0,
118 "stable" => "0.031",
119 "strictures" => 2,
120 "utf8" => 0
121 );
122
123 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
124 if (!want_pp() && can_xs()) {
125 requires('Cpanel::JSON::XS', '4.38');
126 }
127 else {
128 requires('JSON::PP', '4.11');
129 }
130
131
132 unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
133 delete $WriteMakefileArgs{TEST_REQUIRES};
134 delete $WriteMakefileArgs{BUILD_REQUIRES};
135 $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
136 }
137
138 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
139 unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
140
141 WriteMakefile(%WriteMakefileArgs);
142
143 {
144 package
145 MY;
146 use File::ShareDir::Install qw(postamble);
147 }
148
149 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
150 sub _add_prereq {
151 my ($mm_key, $module, $version_or_range) = @_;
152 $version_or_range ||= 0;
153 warn "$module already exists in $mm_key (at version $WriteMakefileArgs{$mm_key}{$module}) -- need to do a sane metamerge!"
154 if exists $WriteMakefileArgs{$mm_key}{$module}
155 and $WriteMakefileArgs{$mm_key}{$module} ne '0'
156 and $WriteMakefileArgs{$mm_key}{$module} ne $version_or_range;
157 warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$module}) -- need to do a sane metamerge!"
158 if exists $FallbackPrereqs{$module} and $FallbackPrereqs{$module} ne '0'
159 and $FallbackPrereqs{$module} ne $version_or_range;
160 $WriteMakefileArgs{$mm_key}{$module} = $FallbackPrereqs{$module} = $version_or_range;
161 return;
162 }
163
164 use lib 'inc';
165 use ExtUtils::HasCompiler 0.014 'can_compile_loadable_object';
166 {
167 my $can_xs;
168 sub can_xs {
169 return $can_xs if defined $can_xs;
170 $can_xs = can_compile_loadable_object(quiet => 1) ? 1 : 0;
171 }
172 }
173
174 {
175 my $parsed_args;
176 sub parse_args {
177 return $parsed_args if defined $parsed_args;
178 require ExtUtils::MakeMaker;
179 require Text::ParseWords;
180 ExtUtils::MakeMaker::parse_args(
181 my $tmp = {},
182 Text::ParseWords::shellwords($ENV{PERL_MM_OPT} || ''),
183 @ARGV,
184 );
185 $parsed_args = $tmp->{ARGS} || {};
186 }
187 }
188
189 sub requires { goto &runtime_requires }
190
191 sub runtime_requires {
192 my ($module, $version_or_range) = @_;
193 _add_prereq(PREREQ_PM => $module, $version_or_range);
194 }
195
196 {
197 my $want_pp;
198 sub want_pp {
199 return $$want_pp if defined $want_pp;
200 my $pp_only = parse_args()->{PUREPERL_ONLY};
201 $pp_only = !!$pp_only if defined $pp_only;
202 $want_pp = \$pp_only;
203 $pp_only;
204 }
205 }