Module::Build::Prereqs::FromCPANfile - construct prereq parameters of Module::Build from cpanfile
use Module::Build; use Module::Build::Prereqs::FromCPANfile; Module::Build->new( ..., mb_prereqs_from_cpanfile() )->create_build_script();
This simple module reads cpanfile and converts its content into valid prereq parameters for new() method of Module::Build.
new()
Currently it does not support "optional features" specification (See "feature" in cpanfile).
The following function is exported by default.
Reads cpanfile, parses its content and returns corresponding %prereq_params for Module::Build.
%prereq_params
Fields in %args are:
%args
version
Version number of the target Module::Build.
If omitted, Module::Build is loaded and $Module::Build::VERSION is used.
$Module::Build::VERSION
cpanfile
File path to the cpanfile to be loaded.
If omitted, it loads "cpanfile" in the current directory.
Maybe this module does the same job better, but it has heavier dependency.
https://github.com/debug-ito/Module-Build-Prereqs-FromCPANfile
Please report bugs and feature requests to my Github issues https://github.com/debug-ito/Module-Build-Prereqs-FromCPANfile/issues.
Although I prefer Github, non-Github users can use CPAN RT https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Build-Prereqs-FromCPANfile. Please send email to bug-Module-Build-Prereqs-FromCPANfile at rt.cpan.org to report bugs if you do not have CPAN RT account.
bug-Module-Build-Prereqs-FromCPANfile at rt.cpan.org
Toshio Ito, <toshioito at cpan.org>
<toshioito at cpan.org>
Copyright 2014 Toshio Ito.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Module::Build::Prereqs::FromCPANfile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Build::Prereqs::FromCPANfile
CPAN shell
perl -MCPAN -e shell install Module::Build::Prereqs::FromCPANfile
For more information on module installation, please visit the detailed CPAN module installation guide.