File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,12 @@ my %args = (
33
33
},
34
34
);
35
35
36
- # Merge BUILD_REQUIRES into PREREQ_PM if EU::MM is too old to understand.
37
- $args {PREREQ_PM } = { %{ $args {PREREQ_PM } }, %{ delete $args {BUILD_REQUIRES } } }
38
- unless eval { ExtUtils::MakeMaker-> VERSION(' 6.55_03' ) };
39
-
40
- # Merge TEST_REQUIRES into PREREQ_PM if EU::MM is too old to understand.
41
- $args {PREREQ_PM } = { %{ $args {PREREQ_PM } }, %{ delete $args {TEST_REQUIRES } } }
42
- unless eval { ExtUtils::MakeMaker-> VERSION(' 6.64' ) };
36
+ # Merge *_REQUIRES into PREREQ_PM if EU::MM is too old to understand.
37
+ for ( [ BUILD_REQUIRES => ' 6.55_03' ], [ TEST_REQUIRES => ' 6.64' ] ) {
38
+ my ( $key , $ver ) = @$_ ;
39
+ $args {PREREQ_PM } = { %{ $args {PREREQ_PM } }, %{ delete $args {$key } } }
40
+ unless eval { ExtUtils::MakeMaker-> VERSION($ver ) };
41
+ }
43
42
44
43
WriteMakefile(%args );
45
44
You can’t perform that action at this time.
0 commit comments