3 use ExtUtils::MakeMaker;
6 my ($href, $target, $source) = @_;
7 %{$href->{$target}} = (%{$href->{$target}}, %{delete $href->{$source}});
11 NAME => 'Function::Parameters',
12 AUTHOR => q{Lukas Mai <l.mai@web.de>},
13 VERSION_FROM => 'lib/Function/Parameters.pm',
14 ABSTRACT_FROM => 'lib/Function/Parameters.pm',
19 MIN_PERL_VERSION => '5.14.0',
20 CONFIGURE_REQUIRES => {
23 'ExtUtils::MakeMaker' => '6.48',
40 depend => { Makefile => '$(VERSION_FROM)' },
41 test => { TESTS => 't/*.t t/foreign/*.t t/foreign/*/*.t' },
42 dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
43 clean => { FILES => 'Function-Parameters-*' },
46 'meta-spec' => { version => 2 },
49 url => 'git://github.com/mauke/Function-Parameters',
50 web => 'https://github.com/mauke//Function-Parameters',
57 (my $mm_version = ExtUtils::MakeMaker->VERSION) =~ tr/_//d;
59 if ($mm_version < 6.67_04) {
60 # Why? For the glory of satan, of course!
61 no warnings qw(redefine);
62 *ExtUtils::MM_Any::_add_requirements_to_meta_v1_4 = \&ExtUtils::MM_Any::_add_requirements_to_meta_v2;
65 if ($mm_version < 6.63_03) {
66 merge_key_into \%opt, 'BUILD_REQUIRES', 'TEST_REQUIRES';
69 if ($mm_version < 6.55_01) {
70 merge_key_into \%opt, 'CONFIGURE_REQUIRES', 'BUILD_REQUIRES';
73 if ($mm_version < 6.51_03) {
74 merge_key_into \%opt, 'PREREQ_PM', 'CONFIGURE_REQUIRES';