NAME
Dist::Zilla::Plugin::DynamicPrereqs::Meta - Add dynamic prereqs to the metadata
VERSION
version 0.006
SYNOPSIS
[DynamicPrereqs::Meta]
condition = is_os linux
condition = not has_perl 5.036
joiner = and
prereq = Foo::Bar 1.2
DESCRIPTION
This plugin is adds dynamic prereqs to the metadata. Note that for most uses it's recommended to use the various plugins for your install tool, that will enable support for dynamic prereqs metadata for that tool. So far the following have been implemented.
Dist::Zilla::Plugin::ModuleBuildTiny::DynamicPrereqs
This will add all the necessary prereqs to enable dynamic prerequisites in Module::Build::Tiny.
Dist::Zilla::Plugin::DistBuild::DynamicPrereqs
This will add everything needed to enable dynamic prerequisites in Dist::Build.
More plugins are planned for the future.
ATTRIBUTES
conditions
One or more conditions, as defined by CPAN::Requirements::Dynamic.
joiner
The operator that is used when more than one condition is given. This must be either and
or or
.
prereqs
One or more prerequisites that will be added to the requirements if the condition passes.
phase
The phase of the prerequisites, this defaults to 'runtime'
.
relation
The relationship of the prerequisites, this defaults to 'requires'
.
error
Instead of prerequisites being added, an error will be outputted if the condition matches.
AUTHOR
Leon Timmermans <fawaka@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.