Dist::Zilla::Plugin::DualLife - Distribute dual-life modules with Dist::Zilla
version 0.07
In your dist.ini:
[DualLife]
Dual-life modules, which are modules distributed both as part of the perl core and on CPAN, sometimes need a little special treatment. This module tries provide that for modules built with Dist::Zilla.
Dist::Zilla
Currently the only thing this module does is providing an INSTALLDIRS option to ExtUtils::MakeMaker's WriteMakefile function, so dual-life modules will be installed in the right section of @INC depending on different versions of perl.
INSTALLDIRS
ExtUtils::MakeMaker
WriteMakefile
@INC
As more things that need special handling for dual-life modules show up, this module will try to address them as well.
The options added to your Makefile.PL by this module are roughly equivalent to:
Makefile.PL
'INSTALLDIRS' => ("$]" >= 5.009005 && "$]" <= 5.011000 ? 'perl' : 'site'),
(assuming a module that entered core in 5.009005).
[DualLife] entered_core=5.006001
Indicates when the distribution joined core. This option is not normally needed, as Module::CoreList is used to determine this.
Boolean for distributions bundled with ExtUtils::MakeMaker. Prior to v5.12, bundled modules might get installed into the core library directory, so even if they didn't come into core until later, they need to be forced into core prior to v5.12 so they take precedence.
Bugs may be submitted through the RT bug tracker (or bug-Dist-Zilla-Plugin-DualLife@rt.cpan.org).
There is also a mailing list available for users of this distribution, at http://dzil.org/#mailing-list.
There is also an irc channel available for users of this distribution, at #distzilla on irc.perl.org.
#distzilla
irc.perl.org
Florian Ragwitz <rafl@debian.org>
Karen Etheridge <ether@cpan.org>
David Golden <dagolden@cpan.org>
This software is copyright (c) 2010 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::Plugin::DualLife, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::DualLife
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::DualLife
For more information on module installation, please visit the detailed CPAN module installation guide.