# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.039 use strict; use warnings; if ("$]" < 5.038) { die "This distribution will not install where builtin::Backport exists.\n" if eval { +require builtin::Backport; 1 }; } use 5.020000; 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" => "Validate data against a schema using a JSON Schema", "AUTHOR" => "Karen Etheridge ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::ShareDir::Install" => "0.06", "Text::ParseWords" => 0 }, "DISTNAME" => "JSON-Schema-Modern", "EXE_FILES" => [ "script/json-schema-eval" ], "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.020000", "NAME" => "JSON::Schema::Modern", "PREREQ_PM" => { "Clone" => 0, "Digest::MD5" => 0, "Feature::Compat::Try" => 0, "File::ShareDir" => 0, "List::Util" => "1.55", "Math::BigInt" => "1.999701", "Mojolicious" => "7.87", "Moo" => 0, "MooX::TypeTiny" => "0.002002", "Types::Standard" => "1.016003", "YAML::PP" => 0, "autovivification" => 0, "builtin::compat" => "0.003003", "experimental" => "0.026", "if" => 0, "namespace::clean" => 0, "stable" => "0.031", "strictures" => 2 }, "TEST_REQUIRES" => { "CPAN::Meta::Check" => "0.011", "CPAN::Meta::Requirements" => 0, "Data::Dumper" => 0, "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, "Math::BigInt" => "1.999701", "Term::ANSIColor" => 0, "Test2::API" => 0, "Test2::V0" => 0, "Test2::Warnings" => "0.038", "Test::Deep" => 0, "Test::Deep::UnorderedPairs" => 0, "Test::File::ShareDir" => 0, "Test::JSON::Schema::Acceptance" => "1.039", "Test::Memory::Cycle" => 0, "Test::More" => 0, "Test::Needs" => 0, "Test::Without::Module" => "0.19", "lib" => 0, "utf8" => 0 }, "VERSION" => "0.650", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "CPAN::Meta::Check" => "0.011", "CPAN::Meta::Requirements" => 0, "Clone" => 0, "Data::Dumper" => 0, "Digest::MD5" => 0, "ExtUtils::MakeMaker" => 0, "Feature::Compat::Try" => 0, "File::ShareDir" => 0, "File::Spec" => 0, "List::Util" => "1.55", "Math::BigInt" => "1.999701", "Mojolicious" => "7.87", "Moo" => 0, "MooX::TypeTiny" => "0.002002", "Term::ANSIColor" => 0, "Test2::API" => 0, "Test2::V0" => 0, "Test2::Warnings" => "0.038", "Test::Deep" => 0, "Test::Deep::UnorderedPairs" => 0, "Test::File::ShareDir" => 0, "Test::JSON::Schema::Acceptance" => "1.039", "Test::Memory::Cycle" => 0, "Test::More" => 0, "Test::Needs" => 0, "Test::Without::Module" => "0.19", "Types::Standard" => "1.016003", "YAML::PP" => 0, "autovivification" => 0, "builtin::compat" => "0.003003", "experimental" => "0.026", "if" => 0, "lib" => 0, "namespace::clean" => 0, "stable" => "0.031", "strictures" => 2, "utf8" => 0 ); # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040 if (!want_pp() && can_xs()) { requires('Cpanel::JSON::XS', '4.38'); } else { requires('JSON::PP', '4.11'); } 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; } }