Module::New::File::ModuleInstall - Module::New::File::ModuleInstall documentation


Module-New documentation Contained in the Module-New distribution.

Index


Code Index:

NAME

Top

Module::New::File::ModuleInstall

DESCRIPTION

Top

a template for Makefile.PL (with Module::Install).

AUTHOR

Top

Kenichi Ishigaki, <ishigaki at cpan.org>

COPYRIGHT AND LICENSE

Top


Module-New documentation Contained in the Module-New distribution.

package Module::New::File::ModuleInstall;

use strict;
use warnings;
use Module::New::File;

file 'Makefile.PL' => content { return <<'EOT';
use strict;
use warnings;
use inc::Module::Install;

name     '<%= $c->distname %>';
all_from '<%= $c->mainfile %>';

test_requires 'Test::More' => '0.47';
test_requires 'Test::UseAllModules' => '0.10';

% if ($c->repository) {
resources(
    repository => '<%= $c->repository %>',
);
% }

WriteAll;
EOT
};

1;

__END__