Skip to content

Commit b916bb5

Browse files
committed
add repo metadata
1 parent 0d5f410 commit b916bb5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Makefile.PL

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ use PDL::Core::Dev;
55
require ExtUtils::Depends;
66
require File::Spec::Functions;
77

8+
my $package_name = 'PDL::IO::HDF';
9+
(my $repo = $package_name) =~ s#::#-#g;
10+
$repo = "PDLPorters/$repo";
811
WriteMakefile(
9-
NAME => 'PDL::IO::HDF',
12+
NAME => $package_name,
1013
AUTHOR => 'PerlDL Developers <[email protected]>',
1114
VERSION_FROM => 'HDF.pm',
1215
CONFIGURE_REQUIRES => {
@@ -23,4 +26,17 @@ WriteMakefile(
2326
},
2427
PM => { 'HDF.pm' => '$(INST_LIBDIR)/HDF.pm' },
2528
dist => { COMPRESS => 'gzip', SUFFIX => 'gz' },
29+
META_MERGE => {
30+
"meta-spec" => { version => 2 },
31+
resources => {
32+
homepage => 'http://pdl.perl.org/',
33+
bugtracker => {web=>"https://github.com/$repo/issues"},
34+
repository => {
35+
url => "git://github.com/$repo.git",
36+
type => 'git',
37+
web => "https://github.com/$repo",
38+
},
39+
x_IRC => 'irc://irc.perl.org/#pdl',
40+
},
41+
},
2642
);

0 commit comments

Comments
 (0)