Module::Build::Prereqs::FromCPANfile(3pm) | User Contributed Perl Documentation | Module::Build::Prereqs::FromCPANfile(3pm) |
NAME¶
Module::Build::Prereqs::FromCPANfile - construct prereq parameters of Module::Build from cpanfile
SYNOPSIS¶
use Module::Build; use Module::Build::Prereqs::FromCPANfile; Module::Build->new( ..., mb_prereqs_from_cpanfile() )->create_build_script();
DESCRIPTION¶
This simple module reads cpanfile and converts its content into valid prereq parameters for new() method of Module::Build.
Currently it does not support "optional features" specification (See "feature" in cpanfile).
EXPORTED FUNCTION¶
The following function is exported by default.
%prereq_params = mb_prereqs_from_cpanfile(%args)¶
Reads cpanfile, parses its content and returns corresponding %prereq_params for Module::Build.
Fields in %args are:
- "version" => VERSION_STR (optional, default: $Module::Build::VERSION)
- Version number of the target Module::Build.
If omitted, Module::Build is loaded and $Module::Build::VERSION is used.
- "cpanfile" => FILEPATH (optional, default: "cpanfile")
- File path to the cpanfile to be loaded.
If omitted, it loads "cpanfile" in the current directory.
SEE ALSO¶
- Module::Build
- Module::Build::Pluggable::CPANfile
- Maybe this module does the same job better, but it has heavier dependency.
REPOSITORY¶
<https://github.com/debug-ito/Module-Build-Prereqs-FromCPANfile>
BUGS AND FEATURE REQUESTS¶
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.
AUTHOR¶
Toshio Ito, "<toshioito at cpan.org>"
LICENSE AND COPYRIGHT¶
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.
2020-11-04 | perl v5.40.0 |