NAME

Dist::Zilla::Plugin::DynamicPrereqs::ModuleBuildTiny - Add dynamic prereqs to the metadata for Module::Build::Tiny

VERSION

version 0.006

SYNOPSIS

[ModuleBuildTiny]
[DynamicPrereqs::ModuleBuildTiny]
condition = is_os linux
condition = not has_perl 5.036
joiner = and
prereq = Foo::Bar 1.2

DESCRIPTION

This module adds dynamic prerequisites to the metafile of a Module::Build::Tiny using dist.

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.