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

This commit is contained in:
依瑪貓 2021-02-08 00:05:56 +08:00
parent c4e5183b57
commit aa51ef5e2b
2 changed files with 30 additions and 0 deletions

View File

@ -17,6 +17,21 @@ my $build = Module::Build->new(
"perl" => "5.8.0", "perl" => "5.8.0",
}, },
add_to_cleanup => [ "t/test_native.po", "t/locale/en/LC_MESSAGES/test_native.mo" ], add_to_cleanup => [ "t/test_native.po", "t/locale/en/LC_MESSAGES/test_native.mo" ],
meta_merge => {
"meta-spec" => { version => 2 },
resources => {
homepage => "https://metacpan.org/release/Locale-Maketext-Gettext",
repository => {
type => "git",
url => "git://github.com/imacat/Locale-Maketext-Gettext.git",
web => "https://github.com/imacat/Locale-Maketext-Gettext",
},
bugtracker => {
"web" => "https://github.com/imacat/Locale-Maketext-Gettext/issues"
}
},
},
); );
$build->create_build_script; $build->create_build_script;

View File

@ -21,6 +21,21 @@ WriteMakefile(
clean => { clean => {
FILES => "t/test_native.po t/locale/en/LC_MESSAGES/test_native.mo", FILES => "t/test_native.po t/locale/en/LC_MESSAGES/test_native.mo",
}, },
META_MERGE => {
"meta-spec" => { version => 2 },
resources => {
homepage => "https://metacpan.org/release/Locale-Maketext-Gettext",
repository => {
type => "git",
url => "git://github.com/imacat/Locale-Maketext-Gettext.git",
web => "https://github.com/imacat/Locale-Maketext-Gettext",
},
bugtracker => {
"web" => "https://github.com/imacat/Locale-Maketext-Gettext/issues"
}
},
},
); );
__END__ __END__