From 11f0ad2ad52da0dc05f2394a422ec507c014c5f1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 9 Jul 2013 22:36:03 -0400 Subject: docs --- lib/Dist/Zilla/Plugin/PerlVersionPrereqs.pm | 72 +++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/lib/Dist/Zilla/Plugin/PerlVersionPrereqs.pm b/lib/Dist/Zilla/Plugin/PerlVersionPrereqs.pm index 0b260b3..e228868 100644 --- a/lib/Dist/Zilla/Plugin/PerlVersionPrereqs.pm +++ b/lib/Dist/Zilla/Plugin/PerlVersionPrereqs.pm @@ -1,8 +1,29 @@ package Dist::Zilla::Plugin::PerlVersionPrereqs; use Moose; +# ABSTRACT: set additional prereqs for older perls with 'Dist::Zilla::Role::InstallTool', 'Dist::Zilla::Role::MetaProvider'; +=head1 SYNOPSIS + + ; dist.ini + [PerlVersionPrereqs / 5.010] + Perl6::Say = 0 + +=head1 DESCRIPTION + +When perl gets new features, oftentimes they are reimplemented as CPAN modules +for earlier perls which don't have those features. It's a bit silly to +unconditionally depend on those backwards compatiblity modules if they are just +going to do nothing at all on the version of perl you're installing them on +though, so this module allows you to specify that certain dependencies aren't +required on perls newer than a certain version. + +NOTE: This plugin only works on dists that are using the default C<[MakeMaker]> +plugin. + +=cut + has prereq_perl_version => ( is => 'ro', isa => 'Str', @@ -95,4 +116,55 @@ around dump_config => sub { __PACKAGE__->meta->make_immutable; no Moose; +=head1 BUGS + +No known bugs. + +Please report any bugs through RT: email +C, or browse to +L. + +=head1 SEE ALSO + +L + +This plugin is based heavily on code from the C<[OSPrereqs]> plugin. + +=head1 SUPPORT + +You can find this documentation for this module with the perldoc command. + + perldoc Dist::Zilla::Plugin::PerlVersionPrereqs + +You can also look for information at: + +=over 4 + +=item * MetaCPAN + +L + +=item * RT: CPAN's request tracker + +L + +=item * Github + +L + +=item * CPAN Ratings + +L + +=back + +=begin Pod::Coverage + + metadata + setup_installer + +=end Pod::Coverage + +=cut + 1; -- cgit v1.2.3