diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-07-08 03:01:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-07-08 03:01:49 -0500 |
commit | 1a0c3c3a02da09abc11bbad291d09a41c1850d1d (patch) | |
tree | c19787eda8fa4dd155e028752cc38bc19dad0aca /inc | |
parent | 046119999e010e4a38b67f5f194baaf60e7c8707 (diff) | |
download | smartmatch-engine-core-1a0c3c3a02da09abc11bbad291d09a41c1850d1d.tar.gz smartmatch-engine-core-1a0c3c3a02da09abc11bbad291d09a41c1850d1d.zip |
split this out into its own dist, and implement the custom opcode
Diffstat (limited to 'inc')
-rw-r--r-- | inc/MakeMaker.pm | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/inc/MakeMaker.pm b/inc/MakeMaker.pm deleted file mode 100644 index a1b5ed6..0000000 --- a/inc/MakeMaker.pm +++ /dev/null @@ -1,25 +0,0 @@ -package inc::MakeMaker; -use Moose; - -extends 'Dist::Zilla::Plugin::MakeMaker::Awesome'; - -override _build_MakeFile_PL_template => sub { - my $self = shift; - - my $tmpl = super; - - my $depends = <<'END'; -%WriteMakefileArgs = ( - %WriteMakefileArgs, - ExtUtils::Depends->new('smartmatch', 'B::Hooks::OP::Check')->get_makefile_vars, -); -END - - $tmpl =~ s/(use ExtUtils.*)/$1\nuse ExtUtils::Depends;/; - $tmpl =~ s/(WriteMakefile\()/$depends\n$1/; - - return $tmpl; -}; - -__PACKAGE__->meta->make_immutable; -1; |