From: Vincent Pit <vince@profvince.com>
Date: Sun, 4 Oct 2009 07:54:18 +0000 (+0200)
Subject: Put prerequisites in their own separate hash
X-Git-Tag: v0.20~14
X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=c879f152be1f415e2333350acd2aac0ca34996b4;p=perl%2Fmodules%2Findirect.git

Put prerequisites in their own separate hash
---

diff --git a/Makefile.PL b/Makefile.PL
index 527cc35..464fe39 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -20,6 +20,10 @@ if ($^O eq 'MSWin32' && $^V lt v5.10.1) {
 
 my $dist = 'indirect';
 
+my %PREREQ_PM = (
+ 'XSLoader' => 0,
+);
+
 my %META = (
  configure_requires => {
   'ExtUtils::MakeMaker' => 0,
@@ -27,6 +31,7 @@ my %META = (
  build_requires => {
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
+  %PREREQ_PM,
  },
  dynamic_config => 1,
  resources => {
@@ -45,9 +50,7 @@ WriteMakefile(
     ABSTRACT_FROM    => 'lib/indirect.pm',
     PL_FILES         => {},
     @DEFINES,
-    PREREQ_PM        => {
-        'XSLoader' => 0,
-    },
+    PREREQ_PM        => \%PREREQ_PM,
     MIN_PERL_VERSION => 5.008,
     META_MERGE       => \%META,
     dist             => {