From: Florian Ragwitz Date: Sun, 18 Jan 2009 22:28:49 +0000 (+0100) Subject: Add repository and bugtracker url to META.yml. X-Git-Tag: v0.27~6 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=commitdiff_plain;h=4879d61b3532ed12087eb15fa3570f8e440c03d8 Add repository and bugtracker url to META.yml. --- diff --git a/Makefile.PL b/Makefile.PL index 76ac727..136c3c7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -60,6 +60,21 @@ sub build_req { return $build_req; } +my $RESOURCES = { + 'repository' => 'http://git.profvince.com/perl/modules/Variable-Magic.git', + 'bugtracker' => 'http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Variable-Magic', +}; + +sub resources { + my $tometa = ' >> $(DISTVNAME)/META.yml;'; + my $build_req = 'echo "resources:" ' . $tometa; + foreach my $res ( sort { lc $a cmp lc $b } keys %$RESOURCES ) { + my $val = $RESOURCES->{$res}; + $build_req .= sprintf 'echo " %-15s %s" %s', "$res:", $val, $tometa; + } + return $build_req; +} + WriteMakefile( NAME => 'Variable::Magic', AUTHOR => 'Vincent Pit ', @@ -75,7 +90,7 @@ WriteMakefile( }, dist => { PREOP => 'pod2text lib/Variable/Magic.pm > $(DISTVNAME)/README; ' - . build_req, + . build_req . resources, COMPRESS => 'gzip -9f', SUFFIX => 'gz' }, clean => { FILES => 'Variable-Magic-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt' },