From b24155312802188c59cd242a8c1e0d374d5870a7 Mon Sep 17 00:00:00 2001 From: Ed J Date: Mon, 9 Dec 2024 01:10:31 +0000 Subject: [PATCH] add repo metadata --- Makefile.PL | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 0a6351c..e2354d7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -105,4 +105,21 @@ $hash{AUTHOR} = 'PerlDL Developers '; sub MY::postamble { pdlpp_postamble( $package ); } -WriteMakefile(%hash); +(my $repo = $package_name) =~ s#::#-#g; +$repo = "PDLPorters/$repo"; +WriteMakefile( + META_MERGE => { + "meta-spec" => { version => 2 }, + resources => { + homepage => 'http://pdl.perl.org/', + bugtracker => {web=>"https://github.com/$repo/issues"}, + repository => { + url => "git://github.com/$repo.git", + type => 'git', + web => "https://github.com/$repo", + }, + x_IRC => 'irc://irc.perl.org/#pdl', + }, + }, + %hash, +);