NAME

Dist::Build::DynamicPrereqs - Support dynamic prerequisites in Dist::Build

VERSION

version 0.016

SYNOPSIS

load_module("Dist::Build::DynamicPrereqs");
evaluate_dynamic_prereqs();

DESCRIPTION

This extension adds support for configure-time dynamic prerequisites to Dist::Build.

DELEGATES

This adds the following delegates to the planner:

evaluate_dynamic_prereqs()

This evaluates the dynamic prerequisites (as CPAN::Requirements::Dynamic) in the metadata, and adds them to the prerequisites.

add_prereq($module, $version = 0, %args)

This adds a specific prerequisite. It takes the following (optional) named arguments:

  • phase

    A CPAN::Meta requirement phase: runtime (default), build or test

  • relation

    A CPAN::Meta requirement relation: requires (default, recommends or suggests

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.