.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "CPANPLUS::Dist::Build 3pm" .TH CPANPLUS::Dist::Build 3pm "2016-07-25" "perl v5.22.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" CPANPLUS::Dist::Build \- CPANPLUS plugin to install packages that use Build.PL .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 4 \& my $build = CPANPLUS::Dist\->new( \& format => \*(AqCPANPLUS::Dist::Build\*(Aq, \& module => $modobj, \& ); \& \& $build\->prepare; # runs Build.PL \& $build\->create; # runs build && build test \& $build\->install; # runs build install .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\f(CW\*(C`CPANPLUS::Dist::Build\*(C'\fR is a distribution class for \f(CW\*(C`Module::Build\*(C'\fR related modules. Using this package, you can create, install and uninstall perl modules. It inherits from \f(CW\*(C`CPANPLUS::Dist\*(C'\fR. .PP Normal users won't have to worry about the interface to this module, as it functions transparently as a plug-in to \f(CW\*(C`CPANPLUS\*(C'\fR and will just \f(CW\*(C`Do The Right Thing\*(C'\fR when it's loaded. .SH "ACCESSORS" .IX Header "ACCESSORS" .ie n .IP """parent()""" 4 .el .IP "\f(CWparent()\fR" 4 .IX Item "parent()" Returns the \f(CW\*(C`CPANPLUS::Module\*(C'\fR object that parented this object. .ie n .IP """status()""" 4 .el .IP "\f(CWstatus()\fR" 4 .IX Item "status()" Returns the \f(CW\*(C`Object::Accessor\*(C'\fR object that keeps the status for this module. .SH "STATUS ACCESSORS" .IX Header "STATUS ACCESSORS" All accessors can be accessed as follows: \f(CW$build\fR\->status\->\s-1ACCESSOR\s0 .ie n .IP """build_pl ()""" 4 .el .IP "\f(CWbuild_pl ()\fR" 4 .IX Item "build_pl ()" Location of the Build file. Set to 0 explicitly if something went wrong. .ie n .IP """build ()""" 4 .el .IP "\f(CWbuild ()\fR" 4 .IX Item "build ()" \&\s-1BOOL\s0 indicating if the \f(CW\*(C`Build\*(C'\fR command was successful. .ie n .IP """test ()""" 4 .el .IP "\f(CWtest ()\fR" 4 .IX Item "test ()" \&\s-1BOOL\s0 indicating if the \f(CW\*(C`Build test\*(C'\fR command was successful. .ie n .IP """prepared ()""" 4 .el .IP "\f(CWprepared ()\fR" 4 .IX Item "prepared ()" \&\s-1BOOL\s0 indicating if the \f(CW\*(C`prepare\*(C'\fR call exited successfully This gets set after \f(CW\*(C`perl Build.PL\*(C'\fR .ie n .IP """distdir ()""" 4 .el .IP "\f(CWdistdir ()\fR" 4 .IX Item "distdir ()" Full path to the directory in which the \f(CW\*(C`prepare\*(C'\fR call took place, set after a call to \f(CW\*(C`prepare\*(C'\fR. .ie n .IP """created ()""" 4 .el .IP "\f(CWcreated ()\fR" 4 .IX Item "created ()" \&\s-1BOOL\s0 indicating if the \f(CW\*(C`create\*(C'\fR call exited successfully. This gets set after \f(CW\*(C`Build\*(C'\fR and \f(CW\*(C`Build test\*(C'\fR. .ie n .IP """installed ()""" 4 .el .IP "\f(CWinstalled ()\fR" 4 .IX Item "installed ()" \&\s-1BOOL\s0 indicating if the module was installed. This gets set after \&\f(CW\*(C`Build install\*(C'\fR exits successfully. .IP "uninstalled ()" 4 .IX Item "uninstalled ()" \&\s-1BOOL\s0 indicating if the module was uninstalled properly. .ie n .IP """_create_args ()""" 4 .el .IP "\f(CW_create_args ()\fR" 4 .IX Item "_create_args ()" Storage of the arguments passed to \f(CW\*(C`create\*(C'\fR for this object. Used for recursive calls when satisfying prerequisites. .ie n .IP """_install_args ()""" 4 .el .IP "\f(CW_install_args ()\fR" 4 .IX Item "_install_args ()" Storage of the arguments passed to \f(CW\*(C`install\*(C'\fR for this object. Used for recursive calls when satisfying prerequisites. .SH "METHODS" .IX Header "METHODS" .ie n .SS "$bool = CPANPLUS::Dist::Build\->\fIformat_available()\fP;" .el .SS "\f(CW$bool\fP = CPANPLUS::Dist::Build\->\fIformat_available()\fP;" .IX Subsection "$bool = CPANPLUS::Dist::Build->format_available();" Returns a boolean indicating whether or not you can use this package to create and install modules in your environment. .ie n .SS "$bool = $dist\->\fIinit()\fP;" .el .SS "\f(CW$bool\fP = \f(CW$dist\fP\->\fIinit()\fP;" .IX Subsection "$bool = $dist->init();" Sets up the \f(CW\*(C`CPANPLUS::Dist::Build\*(C'\fR object for use. Effectively creates all the needed status accessors. .PP Called automatically whenever you create a new \f(CW\*(C`CPANPLUS::Dist\*(C'\fR object. .ie n .SS "$bool = $dist\->prepare([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', force => \s-1BOOL,\s0 verbose => \s-1BOOL\s0])" .el .SS "\f(CW$bool\fP = \f(CW$dist\fP\->prepare([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', force => \s-1BOOL,\s0 verbose => \s-1BOOL\s0])" .IX Subsection "$bool = $dist->prepare([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])" \&\f(CW\*(C`prepare\*(C'\fR prepares a distribution, running \f(CW\*(C`Build.PL\*(C'\fR and establishing any prerequisites this distribution has. .PP The variable \f(CW\*(C`PERL5_CPANPLUS_IS_EXECUTING\*(C'\fR will be set to the full path of the \f(CW\*(C`Build.PL\*(C'\fR that is being executed. This enables any code inside the \f(CW\*(C`Build.PL\*(C'\fR to know that it is being installed via \s-1CPANPLUS.\s0 .PP After a successful \f(CW\*(C`prepare\*(C'\fR you may call \f(CW\*(C`create\*(C'\fR to create the distribution, followed by \f(CW\*(C`install\*(C'\fR to actually install it. .PP Returns true on success and false on failure. .ie n .SS "$dist\->create([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', prereq_target => \s-1TARGET,\s0 force => \s-1BOOL,\s0 verbose => \s-1BOOL,\s0 skiptest => \s-1BOOL\s0])" .el .SS "\f(CW$dist\fP\->create([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', prereq_target => \s-1TARGET,\s0 force => \s-1BOOL,\s0 verbose => \s-1BOOL,\s0 skiptest => \s-1BOOL\s0])" .IX Subsection "$dist->create([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', prereq_target => TARGET, force => BOOL, verbose => BOOL, skiptest => BOOL])" \&\f(CW\*(C`create\*(C'\fR preps a distribution for installation. This means it will run \f(CW\*(C`Build\*(C'\fR and \f(CW\*(C`Build test\*(C'\fR. This will also satisfy any prerequisites the module may have. .PP If you set \f(CW\*(C`skiptest\*(C'\fR to true, it will skip the \f(CW\*(C`Build test\*(C'\fR stage. If you set \f(CW\*(C`force\*(C'\fR to true, it will go over all the stages of the \&\f(CW\*(C`Build\*(C'\fR process again, ignoring any previously cached results. It will also ignore a bad return value from \f(CW\*(C`Build test\*(C'\fR and still allow the operation to return true. .PP Returns true on success and false on failure. .PP You may then call \f(CW\*(C`$dist\->install\*(C'\fR on the object to actually install it. .ie n .SS "$dist\->install([verbose => \s-1BOOL,\s0 perl => /path/to/perl])" .el .SS "\f(CW$dist\fP\->install([verbose => \s-1BOOL,\s0 perl => /path/to/perl])" .IX Subsection "$dist->install([verbose => BOOL, perl => /path/to/perl])" Actually installs the created dist. .PP Returns true on success and false on failure. .SH "AUTHOR" .IX Header "AUTHOR" Originally by Jos Boumans . Brought to working condition by Ken Williams . .PP Other hackery and currently maintained by Chris \f(CW\*(C`BinGOs\*(C'\fR Williams ( no relation ). . .SH "LICENSE" .IX Header "LICENSE" The \s-1CPAN++\s0 interface (of which this module is a part of) is copyright (c) 2001, 2002, 2003, 2004, 2005 Jos Boumans . All rights reserved. .PP This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.