Subject: | [PATCH] Add resource info to the META.yml |
Attached is a patch to add resource information (repository, mailing
list, etc...) to NYTProf's META.yml. This will be picked up by
search.cpan.org and used to link to the correct locations rather than
the default ones.
Subject: | 0001-Add-resource-information-to-the-META.yml.patch |
From f3605a40aafc19f5cf4fed44c7b2e425e9001a38 Mon Sep 17 00:00:00 2001
From: Michael G. Schwern <schwern@pobox.com>
Date: Tue, 16 Jun 2009 10:27:25 -0700
Subject: [PATCH] Add resource information to the META.yml
---
Makefile.PL | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index 729803e..d62d684 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -86,6 +86,18 @@ $mm_opts{LICENSE} = 'perl' if $ExtUtils::MakeMaker::VERSION >= 6.3002;
$mm_opts{OPTIMIZE} = '-g' if $opt_g;
$mm_opts{CCFLAGS} = "-pg" if $opt_pg;
+if( $ExtUtils::MakeMaker::VERSION >= 6.45 ) {
+ $mm_opts{META_MERGE} = {
+ resources => {
+ license => 'http://dev.perl.org/licenses/',
+ homepage => 'http://perl-devel-nytprof.googlecode.com',
+ bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-NYTProf',
+ repository => 'http://perl-devel-nytprof.googlecode.com/svn',
+ MailingList => 'http://groups.google.com/group/develnytprof-dev',
+ }
+ }
+}
+
if (my $gccversion = $Config{gccversion}) { # ask gcc to be more pedantic
print "Your perl was compiled with gcc (version $Config{gccversion}), okay.\n";
$gccversion =~ s/[^\d\.]//g; # just a number please
--
1.6.2.4