fix collection docs
[catagits/DOM-Tiny.git] / Build.PL
CommitLineData
d6512b50 1# This Build.PL for DOM-Tiny was generated by
2# Dist::Zilla::Plugin::ModuleBuildTiny::Fallback 0.020
3use strict;
4use warnings;
5
6my %configure_requires = (
7 'Module::Build::Tiny' => '0.034',
8);
9
10my @missing = grep {
11 ! eval "require $_; $_->VERSION($configure_requires{$_}); 1"
12} keys %configure_requires;
13
14if (not @missing)
15{
16 # This section for DOM-Tiny was generated by Dist::Zilla::Plugin::ModuleBuildTiny 0.014.
17 use strict;
18 use warnings;
19
927f1351 20 use 5.008001;
d6512b50 21 # use Module::Build::Tiny 0.034;
22 Module::Build::Tiny::Build_PL();
23}
24else
25{
26 if (not $ENV{PERL_MB_FALLBACK_SILENCE_WARNING})
27 {
28 warn <<'EOW';
29*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***
30
31If you're seeing this warning, your toolchain is really, really old* and you'll
32almost certainly have problems installing CPAN modules from this century. But
33never fear, dear user, for we have the technology to fix this!
34
35If you're using CPAN.pm to install things, then you can upgrade it using:
36
37 cpan CPAN
38
39If you're using CPANPLUS to install things, then you can upgrade it using:
40
41 cpanp CPANPLUS
42
43If you're using cpanminus, you shouldn't be seeing this message in the first
44place, so please file an issue on github.
45
46This public service announcement was brought to you by the Perl Toolchain
47Gang, the irc.perl.org #toolchain IRC channel, and the number 42.
48
49----
50
51* Alternatively, you are running this file manually, in which case you need
52to learn to first fulfill all configure requires prerequisites listed in
53META.yml or META.json -- or use a cpan client to install this distribution.
54
55You can also silence this warning for future installations by setting the
56PERL_MB_FALLBACK_SILENCE_WARNING environment variable, but please don't do
57that until you fix your toolchain as described above.
58
59EOW
60 sleep 10 if -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));
61 }
62
63
927f1351 64 # This section was automatically generated by Dist::Zilla::Plugin::ModuleBuild v5.041.
d6512b50 65 use strict;
66 use warnings;
67
68 require Module::Build; Module::Build->VERSION(0.28);
69
70
71 my %module_build_args = (
72 "configure_requires" => {
73 "Module::Build::Tiny" => "0.034"
74 },
75 "dist_abstract" => "Minimalistic HTML/XML DOM parser with CSS selectors",
76 "dist_author" => [
77 "Dan Book <dbook\@cpan.org>"
78 ],
79 "dist_name" => "DOM-Tiny",
80 "dist_version" => "0.001",
81 "license" => "artistic_2",
82 "module_name" => "DOM::Tiny",
83 "recursive_test_files" => 1,
84 "requires" => {
85 "Carp" => 0,
86 "Class::Tiny::Chained" => 0,
87 "Exporter" => 0,
88 "List::Util" => 0,
89 "Scalar::Util" => 0,
927f1351 90 "perl" => "5.008001"
d6512b50 91 },
92 "test_requires" => {
927f1351 93 "Encode" => 0,
d6512b50 94 "JSON::Tiny" => "0.41",
95 "Test::More" => "0.88"
96 }
97 );
98
99
100 my %fallback_build_requires = (
927f1351 101 "Encode" => 0,
d6512b50 102 "JSON::Tiny" => "0.41",
103 "Test::More" => "0.88"
104 );
105
106
107 unless ( eval { Module::Build->VERSION(0.4004) } ) {
108 delete $module_build_args{test_requires};
109 $module_build_args{build_requires} = \%fallback_build_requires;
110 }
111
112 my $build = Module::Build->new(%module_build_args);
113
114
115 $build->create_build_script;
116}