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

This commit is contained in:
依瑪貓 2022-03-19 21:48:03 +08:00
parent ce9a1fde0e
commit fd0c953014
2 changed files with 6 additions and 6 deletions

View File

@ -60,11 +60,11 @@ my $build = Module::Build->new(
"perl" => "5.8.0", "perl" => "5.8.0",
}, },
recommends => { recommends => {
"File::MMagic" => 0, "File::MMagic" => 0,
"IO::Compress::Gzip" => 0, "IO::Compress::Gzip" => 0,
"IO::Compress::Bzip2" => 0, "IO::Compress::Bzip2" => 0,
"IO::Compress::Xz" => 0, "IO::Compress::Xz" => 0,
"Term::ReadKey" => 0, "Term::ReadKey" => 0,
}, },
build_requires => { build_requires => {
"Module::Signature" => 0, "Module::Signature" => 0,

View File

@ -51,11 +51,11 @@ EOT
# Optional prerequisite modules # Optional prerequisite modules
our (%OPT_PREREQ); our (%OPT_PREREQ);
%OPT_PREREQ = ( %OPT_PREREQ = (
"File::MMagic" => 0, "File::MMagic" => 0,
"IO::Compress::Gzip" => 0, "IO::Compress::Gzip" => 0,
"IO::Compress::Bzip2" => 0, "IO::Compress::Bzip2" => 0,
"IO::Compress::Xz" => 0, "IO::Compress::Xz" => 0,
"Term::ReadKey" => 0, "Term::ReadKey" => 0,
); );
delete $OPT_PREREQ{$_} delete $OPT_PREREQ{$_}
foreach grep eval "use $_ $OPT_PREREQ{$_} qw(); 1;", sort keys %OPT_PREREQ; foreach grep eval "use $_ $OPT_PREREQ{$_} qw(); 1;", sort keys %OPT_PREREQ;