|
NAMEDevel::Required - automatic update of required modules documentationVERSIONThis documentation describes version 0.16.SYNOPSISuse ExtUtils::MakeMaker; # check README and lib/Your/Module.pm eval "use Devel::Required"; WriteMakefile ( NAME => "Your::Module", VERSION_FROM => "lib/Your/Module.pm", PREREQ_PM => { 'Foo' => '1.0', 'Bar::Baz' => '0.05' } ); use ExtUtils::MakeMaker; # specify which files should be checked eval <<"CODE"; use Devel::Required text => 'INSTALL', pod => [ qw( lib/Your/Module.pod ) ], ; CODE WriteMakefile ( NAME => "Your::Module", VERSION_FROM => "lib/Your/Module.pm", PREREQ_PM => { 'Foo' => '1.0', 'Bar::Baz' => '0.05' } ); use ExtUtils::MakeMaker; # specify maint / blead installation information eval "use Devel::Required maint_blead => 5.014"; DESCRIPTIONThe Devel::Required module only serves a purpose in the development environment of an author of a CPAN module (or more precisely: a user of the ExtUtils::MakeMaker module). It makes sure that any changes to the required modules specified in the Makefile.PL are automatically reflected in the appropriate text file and in the appropriate source files (either explicitely or implicitely specified).It takes the information given with the PREREQ_PM parameter and by default writes this to the README file, as well as to the POD of the file specified with the VERSION_FROM parameter. Both these defaults can be overridden with the "text" and "pod" parameters in the "use Devel::Required" specification. Optionally, it will also update installation information, specifically for distributions that have a "maint" and "blead" version internally. This module should only be installed on the system of the developer. FILES CHANGEDBy default the following types of files will be changed:
SPECIFYING YOUR OWN FILESIt is possible to specify which text and which pod files should be searched for the text markers and possibly updated. The "import" routine of Devel::Required takes a list of parameters, each pair of which is considered to be a key-value pair. The following keys are recognized:
ADDING MAINT / blead INSTALLATION INFORMATIONuse Devel::Required maint_blead => $version; By specifying a version number with the <maint_blead> key, the text / pod files will be searched for an "Installation" marker. The value should be the Perl version below which the "maint" version of the code should be installed. The actual installation text is more or less fixed, but may be adapted in the future to provide more clarity for developers and packagers. REQUIRED MODULES(none) THEORY OF OPERATIONLoading this module steals the "WriteMakefile" subroutine of the calling package and inserts its own logic for updating the necessary text-files. The version information is read from the generated "Makefile".AUTHORElizabeth Mattijsen, <liz@dijkmat.nl>.maintained by LNATION, <email@lnation.org>. Please report bugs to <email@lnation.org>. ACKNOWLEDGEMENTSCastaway on Perl Monks for "complaining" about not mentioning prerequisite modules in the README or in the POD.Dan Browning for suggestion being able to specify which text and pod files should be changed. COPYRIGHTCopyright (c) 2003, 2004, 2006, 2007, 2009, 2012 Elizabeth Mattijsen <liz@dijkmat.nl>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.SEE ALSOExtUtils::MakeMaker.
Visit the GSP FreeBSD Man Page Interface. |