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.
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:perl/perl-Dist-Zilla-Plugin-DynamicPrereqs && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
Dist-Zilla-Plugin-DynamicPrereqs-0.035.tar.gz | 0000048593 47.5 KB | |
perl-Dist-Zilla-Plugin-DynamicPrereqs.changes | 0000000186 186 Bytes | |
perl-Dist-Zilla-Plugin-DynamicPrereqs.spec | 0000004888 4.77 KB |
Revision 1 (latest revision is 4)
initial package
Comments 0