Commit | Line | Data |
91880340 |
1 | # This Build.PL for DOM-Tiny was generated by |
2 | # Dist::Zilla::Plugin::ModuleBuildTiny::Fallback 0.020 |
3 | use strict; |
4 | use warnings; |
5 | |
6 | my %configure_requires = ( |
7 | 'Module::Build::Tiny' => '0.034', |
8 | ); |
9 | |
10 | my @missing = grep { |
11 | ! eval "require $_; $_->VERSION($configure_requires{$_}); 1" |
12 | } keys %configure_requires; |
13 | |
14 | if (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 | |
20 | use 5.010001; |
21 | # use Module::Build::Tiny 0.034; |
22 | Module::Build::Tiny::Build_PL(); |
23 | } |
24 | else |
25 | { |
26 | if (not $ENV{PERL_MB_FALLBACK_SILENCE_WARNING}) |
27 | { |
28 | warn <<'EOW'; |
29 | *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *** |
30 | |
31 | If you're seeing this warning, your toolchain is really, really old* and you'll |
32 | almost certainly have problems installing CPAN modules from this century. But |
33 | never fear, dear user, for we have the technology to fix this! |
34 | |
35 | If you're using CPAN.pm to install things, then you can upgrade it using: |
36 | |
37 | cpan CPAN |
38 | |
39 | If you're using CPANPLUS to install things, then you can upgrade it using: |
40 | |
41 | cpanp CPANPLUS |
42 | |
43 | If you're using cpanminus, you shouldn't be seeing this message in the first |
44 | place, so please file an issue on github. |
45 | |
46 | This public service announcement was brought to you by the Perl Toolchain |
47 | Gang, 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 |
52 | to learn to first fulfill all configure requires prerequisites listed in |
53 | META.yml or META.json -- or use a cpan client to install this distribution. |
54 | |
55 | You can also silence this warning for future installations by setting the |
56 | PERL_MB_FALLBACK_SILENCE_WARNING environment variable, but please don't do |
57 | that until you fix your toolchain as described above. |
58 | |
59 | EOW |
60 | sleep 10 if -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT)); |
61 | } |
62 | |
63 | |
64 | # This section was automatically generated by Dist::Zilla::Plugin::ModuleBuild v5.041. |
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, |
91880340 |
86 | "Exporter" => 0, |
87 | "List::Util" => 0, |
88 | "Scalar::Util" => 0, |
89 | "perl" => "5.010001" |
90 | }, |
91 | "test_requires" => { |
92 | "Encode" => 0, |
6e357a60 |
93 | "JSON::PP" => 0, |
91880340 |
94 | "Test::More" => "0.88" |
95 | } |
96 | ); |
97 | |
98 | |
99 | my %fallback_build_requires = ( |
100 | "Encode" => 0, |
6e357a60 |
101 | "JSON::PP" => 0, |
91880340 |
102 | "Test::More" => "0.88" |
103 | ); |
104 | |
105 | |
106 | unless ( eval { Module::Build->VERSION(0.4004) } ) { |
107 | delete $module_build_args{test_requires}; |
108 | $module_build_args{build_requires} = \%fallback_build_requires; |
109 | } |
110 | |
111 | my $build = Module::Build->new(%module_build_args); |
112 | |
113 | |
114 | $build->create_build_script; |
115 | } |