Debian Codegraph @

Makefile.PL

raw
1 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.037
2 use strict;
3 use warnings;
4
5 use 5.014;
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" => "Lightweight yet powerful web application framework",
17 "AUTHOR" => "Dancer Core Developers",
18 "CONFIGURE_REQUIRES" => {
19 "CPAN::Meta::Requirements" => "2.120620",
20 "ExtUtils::MakeMaker" => 0,
21 "File::ShareDir::Install" => "0.06",
22 "Module::Metadata" => 0
23 },
24 "DISTNAME" => "Dancer2",
25 "EXE_FILES" => [
26 "script/dancer2"
27 ],
28 "LICENSE" => "perl",
29 "MIN_PERL_VERSION" => "5.014",
30 "NAME" => "Dancer2",
31 "PREREQ_PM" => {
32 "Attribute::Handlers" => 0,
33 "CLI::Osprey" => "0.09",
34 "Carp" => 0,
35 "Clone" => 0,
36 "Config::Any" => 0,
37 "Crypt::URandom" => "0.36",
38 "Data::Censor" => "0.04",
39 "Digest::SHA" => 0,
40 "Encode" => 0,
41 "Exporter" => "5.57",
42 "Exporter::Tiny" => 0,
43 "File::Copy" => 0,
44 "File::Path" => 0,
45 "File::Share" => 0,
46 "File::Temp" => 0,
47 "File::Which" => 0,
48 "HTTP::Date" => 0,
49 "HTTP::Headers::Fast" => "0.21",
50 "HTTP::Tiny" => 0,
51 "Hash::Merge::Simple" => 0,
52 "Hash::MultiValue" => 0,
53 "Import::Into" => 0,
54 "JSON::MaybeXS" => 0,
55 "List::Util" => "1.29",
56 "MIME::Base64" => "3.13",
57 "Module::Pluggable" => 0,
58 "Module::Runtime" => 0,
59 "Moo" => "2.000000",
60 "Moo::Role" => 0,
61 "POSIX" => 0,
62 "Path::Tiny" => 0,
63 "Plack" => "1.0040",
64 "Plack::Middleware::FixMissingBodyInRedirect" => 0,
65 "Plack::Middleware::RemoveRedundantBody" => 0,
66 "Ref::Util" => 0,
67 "Role::Tiny" => "2.000000",
68 "Safe::Isa" => 0,
69 "Sub::Quote" => 0,
70 "Sub::Util" => 0,
71 "Template" => 0,
72 "Template::Tiny" => "1.16",
73 "Test::Builder" => 0,
74 "Test::More" => "0.92",
75 "Type::Tiny" => "1.000006",
76 "Types::Standard" => 0,
77 "URI::Escape" => 0,
78 "YAML" => "1.30",
79 "parent" => 0
80 },
81 "TEST_REQUIRES" => {
82 "Capture::Tiny" => "0.12",
83 "ExtUtils::MakeMaker" => 0,
84 "File::Spec" => 0,
85 "HTTP::Cookies" => 0,
86 "HTTP::Headers" => 0,
87 "IO::Handle" => 0,
88 "IPC::Open3" => 0,
89 "Pod::Simple::SimpleTree" => 0,
90 "Template" => 0,
91 "Test::Builder" => 0,
92 "Test::EOL" => 0,
93 "Test::Exception" => 0,
94 "Test::Fatal" => 0,
95 "Test::More" => "0.92"
96 },
97 "VERSION" => "2.2.2",
98 "test" => {
99 "TESTS" => "t/*.t t/classes/Dancer2-Core-Factory/*.t t/classes/Dancer2-Core-Hook/*.t t/classes/Dancer2-Core-Request/*.t t/classes/Dancer2-Core-Response-Delayed/*.t t/classes/Dancer2-Core-Response/*.t t/classes/Dancer2-Core-Role-Engine/*.t t/classes/Dancer2-Core-Role-Handler/*.t t/classes/Dancer2-Core-Role-HasConfig/*.t t/classes/Dancer2-Core-Role-HasEnvironment/*.t t/classes/Dancer2-Core-Role-HasLocation/*.t t/classes/Dancer2-Core-Role-Serializer/*.t t/classes/Dancer2-Core-Role-StandardResponses/*.t t/classes/Dancer2-Core-Route/*.t t/classes/Dancer2-Core-Runner/*.t t/classes/Dancer2-Core/*.t t/classes/Dancer2/*.t t/dsl/*.t t/e2e/cli/*.t t/examples/*.t t/integration/dispatch/*.t t/integration/error/*.t t/integration/handler/*.t t/integration/hooks/*.t t/integration/serializer/*.t t/integration/session/*.t t/integration/template/*.t t/issues/*.t t/issues/gh-1013/*.t t/issues/gh-1046/*.t t/issues/gh-1216/*.t t/issues/gh-1226/*.t t/issues/gh-1230/*.t t/issues/gh-1449/*.t t/issues/gh-1621/*.t t/issues/gh-1664/*.t t/issues/gh-1712/*.t t/issues/gh-639/fails/*.t t/issues/gh-639/succeeds/*.t t/issues/gh-650/*.t t/issues/gh-975/*.t t/issues/memleak/*.t t/plugin2/*.t t/plugin2/app_dsl_cb/*.t t/roles/*.t t/route-pod-coverage/*.t t/scope_problems/*.t t/unit/configreader/*.t t/unit/core/*.t t/unit/logger/*.t"
100 }
101 );
102
103
104 my %FallbackPrereqs = (
105 "Attribute::Handlers" => 0,
106 "CLI::Osprey" => "0.09",
107 "Capture::Tiny" => "0.12",
108 "Carp" => 0,
109 "Clone" => 0,
110 "Config::Any" => 0,
111 "Crypt::URandom" => "0.36",
112 "Data::Censor" => "0.04",
113 "Digest::SHA" => 0,
114 "Encode" => 0,
115 "Exporter" => "5.57",
116 "Exporter::Tiny" => 0,
117 "ExtUtils::MakeMaker" => 0,
118 "File::Copy" => 0,
119 "File::Path" => 0,
120 "File::Share" => 0,
121 "File::Spec" => 0,
122 "File::Temp" => 0,
123 "File::Which" => 0,
124 "HTTP::Cookies" => 0,
125 "HTTP::Date" => 0,
126 "HTTP::Headers" => 0,
127 "HTTP::Headers::Fast" => "0.21",
128 "HTTP::Tiny" => 0,
129 "Hash::Merge::Simple" => 0,
130 "Hash::MultiValue" => 0,
131 "IO::Handle" => 0,
132 "IPC::Open3" => 0,
133 "Import::Into" => 0,
134 "JSON::MaybeXS" => 0,
135 "List::Util" => "1.29",
136 "MIME::Base64" => "3.13",
137 "Module::Pluggable" => 0,
138 "Module::Runtime" => 0,
139 "Moo" => "2.000000",
140 "Moo::Role" => 0,
141 "POSIX" => 0,
142 "Path::Tiny" => 0,
143 "Plack" => "1.0040",
144 "Plack::Middleware::FixMissingBodyInRedirect" => 0,
145 "Plack::Middleware::RemoveRedundantBody" => 0,
146 "Pod::Simple::SimpleTree" => 0,
147 "Ref::Util" => 0,
148 "Role::Tiny" => "2.000000",
149 "Safe::Isa" => 0,
150 "Sub::Quote" => 0,
151 "Sub::Util" => 0,
152 "Template" => 0,
153 "Template::Tiny" => "1.16",
154 "Test::Builder" => 0,
155 "Test::EOL" => 0,
156 "Test::Exception" => 0,
157 "Test::Fatal" => 0,
158 "Test::More" => "0.92",
159 "Type::Tiny" => "1.000006",
160 "Types::Standard" => 0,
161 "URI::Escape" => 0,
162 "YAML" => "1.30",
163 "parent" => 0
164 );
165
166 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
167 if (has_module('HTTP::XSCookies')) {
168 requires('HTTP::XSCookies', '0.000007')
169 }
170
171
172
173 unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
174 delete $WriteMakefileArgs{TEST_REQUIRES};
175 delete $WriteMakefileArgs{BUILD_REQUIRES};
176 $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
177 }
178
179 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
180 unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
181
182 WriteMakefile(%WriteMakefileArgs);
183
184 {
185 package
186 MY;
187 use File::ShareDir::Install qw(postamble);
188 }
189
190 # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.040
191 sub _add_prereq {
192 my ($mm_key, $module, $version_or_range) = @_;
193 $version_or_range ||= 0;
194 warn "$module already exists in $mm_key (at version $WriteMakefileArgs{$mm_key}{$module}) -- need to do a sane metamerge!"
195 if exists $WriteMakefileArgs{$mm_key}{$module}
196 and $WriteMakefileArgs{$mm_key}{$module} ne '0'
197 and $WriteMakefileArgs{$mm_key}{$module} ne $version_or_range;
198 warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$module}) -- need to do a sane metamerge!"
199 if exists $FallbackPrereqs{$module} and $FallbackPrereqs{$module} ne '0'
200 and $FallbackPrereqs{$module} ne $version_or_range;
201 $WriteMakefileArgs{$mm_key}{$module} = $FallbackPrereqs{$module} = $version_or_range;
202 return;
203 }
204
205 sub has_module {
206 my ($module, $version_or_range) = @_;
207 require Module::Metadata;
208 my $mmd = Module::Metadata->new_from_module($module);
209 return undef if not $mmd;
210 return $mmd->version($module) if not defined $version_or_range;
211
212 require CPAN::Meta::Requirements;
213 my $req = CPAN::Meta::Requirements->new;
214 $req->add_string_requirement($module => $version_or_range);
215 return 1 if $req->accepts_module($module => $mmd->version($module));
216 return 0;
217 }
218
219 sub requires { goto &runtime_requires }
220
221 sub runtime_requires {
222 my ($module, $version_or_range) = @_;
223 _add_prereq(PREREQ_PM => $module, $version_or_range);
224 }