Added the CPAN distribution metadata to Makefile.PL and Build.PL.

This commit is contained in:
依瑪貓 2021-02-07 23:54:54 +08:00
parent b67d72163c
commit 9e28256635
2 changed files with 30 additions and 0 deletions

View File

@ -16,6 +16,21 @@ my $build = Module::Build->new(
"Module::Signature" => 0, "Module::Signature" => 0,
"Test::Pod" => 0, "Test::Pod" => 0,
}, },
meta_merge => {
"meta-spec" => { version => 2 },
resources => {
homepage => "https://metacpan.org/release/Acme-GuessNumber",
repository => {
type => "git",
url => "git://github.com/imacat/Acme-GuessNumber.git",
web => "https://github.com/imacat/Acme-GuessNumber",
},
bugtracker => {
"web" => "https://github.com/imacat/Acme-GuessNumber/issues"
}
},
},
); );
$build->create_build_script; $build->create_build_script;

View File

@ -18,6 +18,21 @@ WriteMakefile(
COMPRESS => "gzip -9", COMPRESS => "gzip -9",
SUFFIX => ".gz", SUFFIX => ".gz",
}, },
META_MERGE => {
"meta-spec" => { version => 2 },
resources => {
homepage => "https://metacpan.org/release/Acme-GuessNumber",
repository => {
type => "git",
url => "git://github.com/imacat/Acme-GuessNumber.git",
web => "https://github.com/imacat/Acme-GuessNumber",
},
bugtracker => {
"web" => "https://github.com/imacat/Acme-GuessNumber/issues"
}
},
},
); );
__END__ __END__