File: Makefile.PL

package info (click to toggle)
libtest-json-schema-acceptance-perl 1.029-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,500 kB
  • sloc: perl: 831; makefile: 10
file content (212 lines) | stat: -rw-r--r-- 5,327 bytes parent folder | download
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.033.
use strict;
use warnings;

use 5.020;

use ExtUtils::MakeMaker;

use File::ShareDir::Install;
$File::ShareDir::Install::INCLUDE_DOTFILES = 1;
$File::ShareDir::Install::INCLUDE_DOTDIRS = 1;
install_share dist => "share";


my %WriteMakefileArgs = (
  "ABSTRACT" => "Acceptance testing for JSON-Schema based validators",
  "AUTHOR" => "Ben Hutton (\@relequestual) <relequest\@cpan.org>",
  "CONFIGURE_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0,
    "File::ShareDir::Install" => "0.06",
    "Text::ParseWords" => 0
  },
  "DISTNAME" => "Test-JSON-Schema-Acceptance",
  "LICENSE" => "mit",
  "MIN_PERL_VERSION" => "5.020",
  "NAME" => "Test::JSON::Schema::Acceptance",
  "PREREQ_PM" => {
    "Feature::Compat::Try" => 0,
    "File::ShareDir" => 0,
    "Git::Wrapper" => 0,
    "List::Util" => "1.33",
    "Mojo::JSON" => 0,
    "Mojolicious" => "7.87",
    "Moo" => 0,
    "MooX::TypeTiny" => "0.002002",
    "Path::Tiny" => "0.069",
    "Ref::Util" => 0,
    "Test2::API" => 0,
    "Test2::Todo" => 0,
    "Test2::Tools::Compare" => 0,
    "Types::Common::Numeric" => 0,
    "Types::Standard" => "1.016003",
    "constant" => 0,
    "experimental" => 0,
    "if" => 0,
    "namespace::clean" => 0,
    "stable" => "0.031",
    "strict" => 0,
    "strictures" => 2,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0,
    "File::Spec" => 0,
    "JSON::MaybeXS" => "1.002004",
    "JSON::PP" => 0,
    "Scalar::Util" => 0,
    "Test2::Suite" => "0.000131",
    "Test::Deep" => 0,
    "Test::Fatal" => 0,
    "Test::File::ShareDir" => 0,
    "Test::More" => "0.88",
    "Test::Simple" => "1.302176",
    "Test::Warnings" => 0,
    "Tie::Hash" => 0,
    "feature" => 0,
    "lib" => 0,
    "open" => 0,
    "utf8" => 0
  },
  "VERSION" => "1.029",
  "test" => {
    "TESTS" => "t/*.t"
  }
);


my %FallbackPrereqs = (
  "ExtUtils::MakeMaker" => 0,
  "Feature::Compat::Try" => 0,
  "File::ShareDir" => 0,
  "File::Spec" => 0,
  "Git::Wrapper" => 0,
  "JSON::MaybeXS" => "1.002004",
  "JSON::PP" => 0,
  "List::Util" => "1.33",
  "Mojo::JSON" => 0,
  "Mojolicious" => "7.87",
  "Moo" => 0,
  "MooX::TypeTiny" => "0.002002",
  "Path::Tiny" => "0.069",
  "Ref::Util" => 0,
  "Scalar::Util" => 0,
  "Test2::API" => 0,
  "Test2::Suite" => "0.000131",
  "Test2::Todo" => 0,
  "Test2::Tools::Compare" => 0,
  "Test::Deep" => 0,
  "Test::Fatal" => 0,
  "Test::File::ShareDir" => 0,
  "Test::More" => "0.88",
  "Test::Simple" => "1.302176",
  "Test::Warnings" => 0,
  "Tie::Hash" => 0,
  "Types::Common::Numeric" => 0,
  "Types::Standard" => "1.016003",
  "constant" => 0,
  "experimental" => 0,
  "feature" => 0,
  "if" => 0,
  "lib" => 0,
  "namespace::clean" => 0,
  "open" => 0,
  "stable" => "0.031",
  "strict" => 0,
  "strictures" => 2,
  "utf8" => 0,
  "warnings" => 0
);

# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
if (want_xs()) {
requires('Cpanel::JSON::XS', '3.0223')
}



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);

{
package
MY;
use File::ShareDir::Install qw(postamble);
}

# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
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;
}

use lib 'inc';
use ExtUtils::HasCompiler 0.014 'can_compile_loadable_object';
{
  my $can_xs;
  sub can_xs {
    return $can_xs if defined $can_xs;
    $can_xs = can_compile_loadable_object(quiet => 1) ? 1 : 0;
  }
}

{
  my $parsed_args;
  sub parse_args {
    return $parsed_args if defined $parsed_args;
    require ExtUtils::MakeMaker;
    require Text::ParseWords;
    ExtUtils::MakeMaker::parse_args(
      my $tmp = {},
      Text::ParseWords::shellwords($ENV{PERL_MM_OPT} || ''),
      @ARGV,
    );
    $parsed_args = $tmp->{ARGS} || {};
  }
}

sub requires { goto &runtime_requires }

sub runtime_requires {
  my ($module, $version_or_range) = @_;
  _add_prereq(PREREQ_PM => $module, $version_or_range);
}

{
  my $want_pp;
  sub want_pp {
    return $$want_pp if defined $want_pp;
    my $pp_only = parse_args()->{PUREPERL_ONLY};
    $pp_only = !!$pp_only if defined $pp_only;
    $want_pp = \$pp_only;
    $pp_only;
  }
}

{
  my $want_xs;
  sub want_xs {
    return $want_xs if defined $want_xs;
    my $want_pp = want_pp();
    $want_xs = defined $want_pp ? !$want_pp : can_xs();
    return $want_xs;
  }
}