summaryrefslogtreecommitdiffstats
path: root/inc/MakeMaker.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-20 13:50:21 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-20 13:50:21 -0400
commitde6aa8c1071b577032d1a36add399a5dbf906618 (patch)
tree8e16fc1c53b75a76f84e01c1c42d07293aad5be7 /inc/MakeMaker.pm
parentbe8cfb28cb18499cf6ddfff9eff256d08537dd18 (diff)
downloadparse-keyword-de6aa8c1071b577032d1a36add399a5dbf906618.tar.gz
parse-keyword-de6aa8c1071b577032d1a36add399a5dbf906618.zip
whoops, forgot this
Diffstat (limited to 'inc/MakeMaker.pm')
-rw-r--r--inc/MakeMaker.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/inc/MakeMaker.pm b/inc/MakeMaker.pm
new file mode 100644
index 0000000..1a1eed5
--- /dev/null
+++ b/inc/MakeMaker.pm
@@ -0,0 +1,20 @@
+package inc::MakeMaker;
+use Moose;
+
+extends 'Dist::Zilla::Plugin::MakeMaker::Awesome';
+
+around _build_MakeFile_PL_template => sub {
+ my $orig = shift;
+ my $self = shift;
+ my $tmpl = $self->$orig;
+ return $tmpl . <<'TMPL'
+use Devel::CallParser 'callparser1_h';
+open my $fh, '>', 'callparser1.h' or die "Couldn't write to callparser1.h";
+$fh->print(callparser1_h);
+TMPL
+};
+
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
+1;