Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\CPANPLUS\Dist\MM.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>../lib/CPANPLUS/Dist/MM.pm</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> ../lib/CPANPLUS/Dist/MM.pm</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#accessors">ACCESSORS</a></li> <li><a href="#status_accessors">STATUS ACCESSORS</a></li> <li><a href="#methods">METHODS</a></li> <ul> <li><a href="#_bool____dist__format_available___">$bool = $dist-><code>format_available()</code>;</a></li> <li><a href="#_href____dist___find_prereqs__file______path_to_makefile____verbose____bool__">$href = $dist->_find_prereqs( file => '/path/to/Makefile', [verbose => BOOL])</a></li> <li><a href="#_bool____dist__create__perl______path_to_perl___make______path_to_make___makeflags_____extra_flags___prereq_target____target__skiptest____bool__force____bool__verbose____bool__">$bool = $dist->create([perl => '/path/to/perl', make => '/path/to/make', makeflags => 'EXTRA=FLAGS', prereq_target => TARGET, skiptest => BOOL, force => BOOL, verbose => BOOL])</a></li> <li><a href="#_bool____dist__install__make______path_to_make___makemakerflags_____extra_flags___force____bool__verbose____bool__">$bool = $dist->install([make => '/path/to/make', makemakerflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])</a></li> <li><a href="#_bool____dist__write_makefile_pl__force____bool__verbose____bool__">$bool = $dist->write_makefile_pl([force => BOOL, verbose => BOOL])</a></li> </ul> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <hr /> <h1><a name="name">NAME</a></h1> <p>CPANPLUS::Dist::MM</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> my $mm = CPANPLUS::Dist->new( format => 'makemaker', module => $modobj, ); $mm->create; # runs make && make test $mm->install; # runs make install</pre> <pre> =head1 DESCRIPTION</pre> <p><code>CPANPLUS::Dist::MM</code> is a distribution class for MakeMaker related modules. Using this package, you can create, install and uninstall perl modules. It inherits from <code>CPANPLUS::Dist</code>.</p> <p> </p> <hr /> <h1><a name="accessors">ACCESSORS</a></h1> <dl> <dt><strong><a name="parent" class="item"><code>parent()</code></a></strong> <dd> <p>Returns the <code>CPANPLUS::Module</code> object that parented this object.</p> </dd> </li> <dt><strong><a name="status" class="item"><code>status()</code></a></strong> <dd> <p>Returns the <code>Object::Accessor</code> object that keeps the status for this module.</p> </dd> </li> </dl> <p> </p> <hr /> <h1><a name="status_accessors">STATUS ACCESSORS</a></h1> <p>All accessors can be accessed as follows: $mm->status->ACCESSOR</p> <dl> <dt><strong><a name="makefile" class="item">makefile ()</a></strong> <dd> <p>Location of the Makefile (or Build file). Set to 0 explicitly if something went wrong.</p> </dd> </li> <dt><strong><a name="make" class="item">make ()</a></strong> <dd> <p>BOOL indicating if the <a href="#make"><code>make</code></a> (or <code>Build</code>) command was successful.</p> </dd> </li> <dt><strong><a name="test" class="item">test ()</a></strong> <dd> <p>BOOL indicating if the <code>make test</code> (or <code>Build test</code>) command was successful.</p> </dd> </li> <dt><strong><a name="prepared" class="item">prepared ()</a></strong> <dd> <p>BOOL indicating if the <code>prepare</code> call exited succesfully This gets set after <code>perl Makefile.PL</code></p> </dd> </li> <dt><strong><a name="distdir" class="item">distdir ()</a></strong> <dd> <p>Full path to the directory in which the <code>prepare</code> call took place, set after a call to <code>prepare</code>.</p> </dd> </li> <dt><strong><a name="created" class="item">created ()</a></strong> <dd> <p>BOOL indicating if the <code>create</code> call exited succesfully. This gets set after <a href="#make"><code>make</code></a> and <code>make test</code>.</p> </dd> </li> <dt><strong><a name="installed" class="item">installed ()</a></strong> <dd> <p>BOOL indicating if the module was installed. This gets set after <code>make install</code> (or <code>Build install</code>) exits successfully.</p> </dd> </li> <dt><strong><a name="uninstalled" class="item">uninstalled ()</a></strong> <dd> <p>BOOL indicating if the module was uninstalled properly.</p> </dd> </li> <dt><strong><a name="_create_args" class="item">_create_args ()</a></strong> <dd> <p>Storage of the arguments passed to <code>create</code> for this object. Used for recursive calls when satisfying prerequisites.</p> </dd> </li> <dt><strong><a name="_install_args" class="item">_install_args ()</a></strong> <dd> <p>Storage of the arguments passed to <code>install</code> for this object. Used for recursive calls when satisfying prerequisites.</p> </dd> </li> </dl> <p> </p> <hr /> <h1><a name="methods">METHODS</a></h1> <p> </p> <h2><a name="_bool____dist__format_available___">$bool = $dist-><code>format_available()</code>;</a></h2> <p>Returns a boolean indicating whether or not you can use this package to create and install modules in your environment.</p> <p>Sets up the <code>CPANPLUS::Dist::MM</code> object for use. Effectively creates all the needed status accessors.</p> <p>Called automatically whenever you create a new <code>CPANPLUS::Dist</code> object.</p> <p><code>prepare</code> preps a distribution for installation. This means it will run <code>perl Makefile.PL</code> and determine what prerequisites this distribution declared.</p> <p>If you set <code>force</code> to true, it will go over all the stages of the <code>prepare</code> process again, ignoring any previously cached results.</p> <p>When running <code>perl Makefile.PL</code>, the environment variable <code>PERL5_CPANPLUS_IS_EXECUTING</code> will be set to the full path of the <code>Makefile.PL</code> that is being executed. This enables any code inside the <code>Makefile.PL</code> to know that it is being installed via CPANPLUS.</p> <p>Returns true on success and false on failure.</p> <p>You may then call <code>$dist->create</code> on the object to create the installable files.</p> <p> </p> <h2><a name="_href____dist___find_prereqs__file______path_to_makefile____verbose____bool__">$href = $dist->_find_prereqs( file => '/path/to/Makefile', [verbose => BOOL])</a></h2> <p>Parses a <code>Makefile</code> for <code>PREREQ_PM</code> entries and distills from that any prerequisites mentioned in the <code>Makefile</code></p> <p>Returns a hash with module-version pairs on success and false on failure.</p> <p> </p> <h2><a name="_bool____dist__create__perl______path_to_perl___make______path_to_make___makeflags_____extra_flags___prereq_target____target__skiptest____bool__force____bool__verbose____bool__">$bool = $dist->create([perl => '/path/to/perl', make => '/path/to/make', makeflags => 'EXTRA=FLAGS', prereq_target => TARGET, skiptest => BOOL, force => BOOL, verbose => BOOL])</a></h2> <p><code>create</code> creates the files necessary for installation. This means it will run <a href="#make"><code>make</code></a> and <code>make test</code>. This will also scan for and attempt to satisfy any prerequisites the module may have.</p> <p>If you set <code>skiptest</code> to true, it will skip the <code>make test</code> stage. If you set <code>force</code> to true, it will go over all the stages of the <a href="#make"><code>make</code></a> process again, ignoring any previously cached results. It will also ignore a bad return value from <code>make test</code> and still allow the operation to return true.</p> <p>Returns true on success and false on failure.</p> <p>You may then call <code>$dist->install</code> on the object to actually install it.</p> <p> </p> <h2><a name="_bool____dist__install__make______path_to_make___makemakerflags_____extra_flags___force____bool__verbose____bool__">$bool = $dist->install([make => '/path/to/make', makemakerflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])</a></h2> <p><code>install</code> runs the following command: make install</p> <p>Returns true on success, false on failure.</p> <p> </p> <h2><a name="_bool____dist__write_makefile_pl__force____bool__verbose____bool__">$bool = $dist->write_makefile_pl([force => BOOL, verbose => BOOL])</a></h2> <p>This routine can write a <code>Makefile.PL</code> from the information in a module object. It is used to write a <code>Makefile.PL</code> when the original author forgot it (!!).</p> <p>Returns 1 on success and false on failure.</p> <p>The file gets written to the directory the module's been extracted to.</p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> ../lib/CPANPLUS/Dist/MM.pm</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de