From aa51ef5e2b9dda39ff7807ae202af8e3d17ea09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 8 Feb 2021 00:05:56 +0800 Subject: [PATCH] Added the CPAN distribution metadata to Makefile.PL and Build.PL. --- Build.PL | 15 +++++++++++++++ Makefile.PL | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/Build.PL b/Build.PL index 1de11b3..a998e02 100755 --- a/Build.PL +++ b/Build.PL @@ -17,6 +17,21 @@ my $build = Module::Build->new( "perl" => "5.8.0", }, 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; diff --git a/Makefile.PL b/Makefile.PL index 88346a7..39a5455 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -21,6 +21,21 @@ WriteMakefile( clean => { 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__