perl-Dist-Zilla-Plugin-DynamicPrereqs - Specify dynamic (user-side) prerequisites for your distribution
This is a Dist::Zilla plugin that inserts code into your Makefile.PL to indicate dynamic (installer-side) prerequisites.
Code is inserted immediately after the declarations for '%WriteMakefileArgs' and '%FallbackPrereqs', before they are conditionally modified (when an older ExtUtils::MakeMaker is installed). This gives you an opportunity to add to the 'WriteMakefile' arguments: 'PREREQ_PM', 'BUILD_REQUIRES', and 'TEST_REQUIRES', and therefore modify the prerequisites in the user's MYMETA.yml and MYMETA.json based on conditions found on the user's system.
The 'dynamic_config' field in metadata is already set for you.
You could potentially use this plugin for performing other modifications in Makefile.PL other than user-side prerequisite modifications, but I can't think of a situation where this makes sense. Contact me if you have any ideas!
Only Makefile.PL modification is supported at this time. This author considers the use of Module::Build to be questionable in all circumstances, and Module::Build::Tiny does not (yet?) support dynamic configuration.
- Sources inherited from project devel:languages:perl
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/perl-Dist-Zilla-Plugin-DynamicPrereqs && cd $_
- Create Badge
Comments 0