X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=9399f6922c00a924ccc21bb15814f3a13c074d38;hb=b85f6ded9d3d67458fd9e3f37e0367d446e85d6a;hp=cc205cb78a6f7369ed9e82eb3af02b66937d0fe8;hpb=3d0d76b6305e2053de8a95afa896b2d72d5844be;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index cc205cb..9399f69 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -23,15 +23,14 @@ if (defined $pl && length $pl) { } my $is_as = 0; -print "Checking if this is Windows ActiveState 5.8.x... "; -if ($^O eq 'MSWin32' && $^V ge v5.8.7 && $^V lt v5.9.0) { +print "Checking if this is Windows ActiveState 5.8.[78]... "; +if ($^O eq 'MSWin32' && $^V ge v5.8.7 && $^V lt v5.8.9) { eval { require Win32; 1; } 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' },