Dist-Zilla-Plugin-MakeMaker-Awesome
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/MakeMaker/Awesome.pm view on Meta::CPAN
$config->{+__PACKAGE__} = $data if keys %$data;
$config->{'Dist::Zilla::Plugin::MakeMaker'}{make_path} ||= $self->make_path;
$config->{'Dist::Zilla::Plugin::MakeMaker'}{version} ||= Dist::Zilla::Plugin::MakeMaker->VERSION;
$config->{'Dist::Zilla::Role::TestRunner'}{version} ||= Dist::Zilla::Role::TestRunner->VERSION;
return $config;
};
has WriteMakefile_arg_strs => (
is => 'ro', isa => ArrayRef[Str],
traits => ['Array'],
lazy => 1,
default => sub { [] },
documentation => "Additional arguments passed to ExtUtils::MakeMaker's WriteMakefile()",
);
has WriteMakefile_args => (
isa => HashRef,
traits => ['Hash'],
handles => {
lib/Dist/Zilla/Plugin/MakeMaker/Awesome.pm view on Meta::CPAN
$preamble,
qq{\{\npackage\nMY;\nuse File::ShareDir::Install qw(postamble);\n\}\n},
);
}
return \@share_dir_block;
}
has header_strs => (
is => 'ro', isa => ArrayRef[Str],
traits => ['Array'],
lazy => 1,
default => sub { [] },
documentation => "Additional code lines to include at the beginning of Makefile.PL",
);
has header_file => (
is => 'ro', isa => Str,
documentation => 'Additional header content to include from a file',
);
lib/Dist/Zilla/Plugin/MakeMaker/Awesome.pm view on Meta::CPAN
? do {
my $abs_file = path($self->zilla->root, $self->header_file);
$self->log_fatal([ 'header_file %s does not exist!', $self->header_file ])
if not $abs_file->exists;
$abs_file->slurp_utf8
}
: () );
}
has footer_strs => (
is => 'ro', isa => ArrayRef[Str],
traits => ['Array'],
lazy => 1,
default => sub { [] },
documentation => "Additional code lines to include at the end of Makefile.PL",
);
has footer_file => (
is => 'ro', isa => Str,
documentation => 'Additional footer content to include from a file',
);
( run in 0.758 second using v1.01-cache-2.11-cpan-5f2e87ce722 )