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