EUMM before 6.57_02 do not like arrayrefs for AUTHOR
[p5sagit/Devel-Declare.git] / Makefile.PL
index 56c0ed0..ca8bd2d 100644 (file)
@@ -17,14 +17,13 @@ my %TEST_DEPS = (
 # have to do this since old EUMM dev releases miss the eval $VERSION line
 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
 
-*MY::postamble = sub {
-    my ($self, %extra) = @_;
-    join('', %extra) if keys %extra;
-} if not &MY::postamble;
+sub MY::postamble {
+    '$(OBJECT) : stolen_chunk_of_toke.c'
+}
 
 WriteMakefile(
     NAME => 'Devel::Declare',
-    AUTHOR => ['Matt S Trout - <mst@shadowcat.co.uk> - original author'],
+    AUTHOR => 'Matt S Trout - <mst@shadowcat.co.uk> - original author',
     VERSION_FROM => 'lib/Devel/Declare.pm',
     MIN_PERL_VERSION => '5.008001',
 
@@ -47,6 +46,7 @@ WriteMakefile(
     $mymeta_works ? (BUILD_REQUIRES => \%TEST_DEPS) : (),
 
     META_MERGE => {
+        'meta-spec' => { version => 2 },
         dynamic_config => 0,
 
         resources => {
@@ -56,9 +56,7 @@ WriteMakefile(
         },
     },
 
-    C => [ 'stolen_chunk_of_toke.c' ],
     XS => { 'Declare.xs' => 'Declare.c' },
-    postamble => { '' => '$(OBJECT) : stolen_chunk_of_toke.c' },
 
     $pkg->get_makefile_vars,
 );