Revised the prerequisite module declarations in Makefile.PL and Build.PL.

This commit is contained in:
2022-03-19 18:29:50 +08:00
parent 4e43dcff31
commit 140f42d6ad
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -61,11 +61,11 @@ my $build = Module::Build->new(
"Date::Parse" => 0,
},
recommends => {
"File::MMagic" => 0,
"File::MMagic" => 0,
"IO::Compress::Gzip" => 0,
"IO::Compress::Bzip2" => 2,
"IO::Compress::Xz" => 0,
"Term::ReadKey" => 0,
"IO::Compress::Bzip2" => 0,
"IO::Compress::Xz" => 0,
"Term::ReadKey" => 0,
},
build_requires => {
"Module::Signature" => 0,
+4 -4
View File
@@ -51,11 +51,11 @@ EOT
# Optional prerequisite modules
our (%OPT_PREREQ);
%OPT_PREREQ = (
"File::MMagic" => 0,
"File::MMagic" => 0,
"IO::Compress::Gzip" => 0,
"IO::Compress::Bzip2" => 2,
"IO::Compress::Xz" => 0,
"Term::ReadKey" => 0,
"IO::Compress::Bzip2" => 0,
"IO::Compress::Xz" => 0,
"Term::ReadKey" => 0,
);
delete $OPT_PREREQ{$_}
foreach grep eval "use $_ $OPT_PREREQ{$_} qw(); 1;", sort keys %OPT_PREREQ;