X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=9399f6922c00a924ccc21bb15814f3a13c074d38;hb=b85f6ded9d3d67458fd9e3f37e0367d446e85d6a;hp=76ac727f900ffd5cafadaa2546c7a330d342aaee;hpb=4eb87a8fd0eb06e0ee96c5da1ac84650388de60c;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index 76ac727..9399f69 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -31,7 +31,6 @@ if ($^O eq 'MSWin32' && $^V ge v5.8.7 && $^V lt v5.8.9) { } and do { if (defined &Win32::BuildNumber) { $is_as = 1; - push @DEFINES, '-DVMG_COMPAT_ARRAY_PUSH_NOLEN=1'; } } } @@ -60,6 +59,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 +89,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' },