Skip to content

Commit

Permalink
add "provides" metadata for XSLoader (RT#138836)
Browse files Browse the repository at this point in the history
This avoids confusing tools like cpanm and carton which use 'provides'
metadata, and are not able to infer the correct data here because
XSLoader_pm.PL is used to generate XSLoader.pm, but then XSLoader.pm is
deleted before cpanm can see it.
  • Loading branch information
karenetheridge authored and Father Chrysostomos committed Aug 5, 2016
1 parent d4e5761 commit 0d9b031
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions dist/XSLoader/Makefile.PL
Expand Up @@ -45,13 +45,26 @@ WriteMakefile(
'Test::More' => '0.47',
},
META_MERGE => {
resources => {
repository => 'git://perl5.git.perl.org/perl.git',
license => 'http://dev.perl.org/licenses/',
'meta-spec' => { version => 2 },
dynamic_config => 0,
resources => {
repository => {
type => 'git',
url => 'git://perl5.git.perl.org/perl.git',
},
homepage => 'https://metacpan.org/module/XSLoader',
irc => 'irc://irc.perl.org/#p5p',
mailinglist => 'http://lists.perl.org/list/perl5-porters.html',
bugtracker => "https://rt.perl.org/rt3/Search/Results.html?Query=Queue='perl5' AND Content LIKE 'module=XSLoader' AND (Status='open' OR Status='new' OR Status='stalled')",
x_IRC => 'irc://irc.perl.org/#p5p',
x_MailingList => 'http://lists.perl.org/list/perl5-porters.html',
bugtracker => {
mailto => 'perlbug@perl.org',
web => "https://rt.perl.org/rt3/Search/Results.html?Query=Queue='perl5' AND Content LIKE 'module=XSLoader' AND (Status='open' OR Status='new' OR Status='stalled')",
},
},
provides => {
'XSLoader' => {
file => 'XSLoader_pm.PL',
version => ${$PACKAGE.'::VERSION'},
},
},
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
Expand Down

0 comments on commit 0d9b031

Please sign in to comment.