# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.038 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) ", "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, "JSON::PP" => "4.11", "List::Util" => "1.33", "Mojolicious" => "7.87", "Moo" => 0, "MooX::TypeTiny" => "0.002002", "Path::Tiny" => "0.069", "Test2::Todo" => 0, "Types::Common::Numeric" => 0, "Types::Standard" => "1.016003", "autovivification" => 0, "experimental" => 0, "if" => 0, "namespace::clean" => 0, "stable" => "0.031", "strictures" => 2 }, "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "JSON::PP" => "4.11", "Test2::Suite" => "0.000131", "Test2::Tools::Exception" => 0, "Test2::V0" => 0, "Test2::Warnings" => 0, "Test::Deep" => 0, "Test::File::ShareDir" => 0, "Test::Simple" => "1.302176", "builtin::compat" => 0 }, "VERSION" => "1.039", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "ExtUtils::MakeMaker" => 0, "Feature::Compat::Try" => 0, "File::ShareDir" => 0, "Git::Wrapper" => 0, "JSON::PP" => "4.11", "List::Util" => "1.33", "Mojolicious" => "7.87", "Moo" => 0, "MooX::TypeTiny" => "0.002002", "Path::Tiny" => "0.069", "Test2::Suite" => "0.000131", "Test2::Todo" => 0, "Test2::Tools::Exception" => 0, "Test2::V0" => 0, "Test2::Warnings" => 0, "Test::Deep" => 0, "Test::File::ShareDir" => 0, "Test::Simple" => "1.302176", "Types::Common::Numeric" => 0, "Types::Standard" => "1.016003", "autovivification" => 0, "builtin::compat" => 0, "experimental" => 0, "if" => 0, "namespace::clean" => 0, "stable" => "0.031", "strictures" => 2 ); # 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; } }