Dist::...Prereqs(3pm)

πŸ“¦
version 0.020 Β· 3 versions
, in debian trixie, ubuntu questing

πŸ’– NAME πŸ’–

Dist::Build::DynamicPrereqs β€” bestie, this is the plugin that lets Dist::Build handle dynamic prerequisites. Support dynamic prerequisites in Dist::Build, periodt.


✨ VERSION ✨

version 0.020 πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

🌸 DESCRIPTION 🌸

Okay so here's the tea β˜•: this extension adds support for configure-time dynamic prerequisites to Dist::Build. That's the whole vibe. Iconic.


πŸ‘‘ DELEGATES πŸ‘‘

It adds the following delegates to the planner, and honestly? They're both serving:

πŸ’… evaluate_dynamic_prereqs()

This one evaluates the dynamic prerequisites (as CPAN::Requirements::Dynamic) that are chillin' in the metadata, and then adds them to the prerequisites. Slay.

πŸ“ add_prereq($module, $version = 0, %args)

This adds one specific prerequisite. Note the $version = 0 β€” that's the default, no cap. It also takes these optional named arguments:

  • phase β€” a CPAN::Meta requirement phase. Your options are runtime (the default, lowkey the main character), build, or test.
  • relation β€” a CPAN::Meta requirement relation. Options are requires (the default), recommends, or suggests.

🫢 AUTHOR 🫢

Leon Timmermans <fawaka@gmail.com>


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. πŸ’œ


And that's the whole page, bestie β€” brought to you by the User Contributed Perl Documentation crew, perl v5.40.1, dated 2025-05-11. Go forth and prereq dynamically πŸ’…βœ¨

πŸ“¦ where this page comes from