From: Karen Etheridge Date: Thu, 18 Jul 2013 18:35:50 +0000 (-0700) Subject: clean up use of postamble (thanks haarg!) X-Git-Tag: v0.006014~2^2~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-Declare.git;a=commitdiff_plain;h=9a4577b44d5de893acc206e858bc5a00c0a7ee40 clean up use of postamble (thanks haarg!) --- diff --git a/Makefile.PL b/Makefile.PL index 56c0ed0..2b2400c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -17,10 +17,9 @@ 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', @@ -58,7 +57,6 @@ WriteMakefile( C => [ 'stolen_chunk_of_toke.c' ], XS => { 'Declare.xs' => 'Declare.c' }, - postamble => { '' => '$(OBJECT) : stolen_chunk_of_toke.c' }, $pkg->get_makefile_vars, ); diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include index bc6b67f..193decd 100644 --- a/maint/Makefile.PL.include +++ b/maint/Makefile.PL.include @@ -1,6 +1,6 @@ BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") } use lib 'Distar/lib'; -use Distar; +use Distar 0.001000; # so postamble is not stomped on author 'Matt S Trout - - original author';