-
-
06 Jun 2018 07:29:58 UTC
- Distribution: CPANPLUS-Dist-Build
- Module version: 0.90
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (2)
- Testers (1401 / 21 / 0)
- Kwalitee
Bus factor: 2- 64.44% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (33.94KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- ACCESSORS
- STATUS ACCESSORS
- METHODS
- $bool = CPANPLUS::Dist::Build->format_available();
- $bool = $dist->init();
- $bool = $dist->prepare([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])
- $dist->create([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', prereq_target => TARGET, force => BOOL, verbose => BOOL, skiptest => BOOL])
- $dist->install([verbose => BOOL, perl => /path/to/perl])
- PROMINENCE
- AUTHOR
- COPYRIGHT AND LICENSE
NAME
CPANPLUS::Dist::Build - CPANPLUS plugin to install packages that use Build.PL
VERSION
version 0.90
SYNOPSIS
my $build = CPANPLUS::Dist->new( format => 'CPANPLUS::Dist::Build', module => $modobj, ); $build->prepare; # runs Build.PL $build->create; # runs build && build test $build->install; # runs build install
DESCRIPTION
CPANPLUS::Dist::Build
is a distribution class forModule::Build
related modules. Using this package, you can create, install and uninstall perl modules. It inherits fromCPANPLUS::Dist
.Normal users won't have to worry about the interface to this module, as it functions transparently as a plug-in to
CPANPLUS
and will justDo The Right Thing
when it's loaded.ACCESSORS
parent()
-
Returns the
CPANPLUS::Module
object that parented this object. status()
-
Returns the
Object::Accessor
object that keeps the status for this module.
STATUS ACCESSORS
All accessors can be accessed as follows: $build->status->ACCESSOR
build_pl ()
-
Location of the Build file. Set to 0 explicitly if something went wrong.
build ()
-
BOOL indicating if the
Build
command was successful. test ()
-
BOOL indicating if the
Build test
command was successful. prepared ()
-
BOOL indicating if the
prepare
call exited successfully This gets set afterperl Build.PL
distdir ()
-
Full path to the directory in which the
prepare
call took place, set after a call toprepare
. created ()
-
BOOL indicating if the
create
call exited successfully. This gets set afterBuild
andBuild test
. installed ()
-
BOOL indicating if the module was installed. This gets set after
Build install
exits successfully. - uninstalled ()
-
BOOL indicating if the module was uninstalled properly.
_create_args ()
-
Storage of the arguments passed to
create
for this object. Used for recursive calls when satisfying prerequisites. _install_args ()
-
Storage of the arguments passed to
install
for this object. Used for recursive calls when satisfying prerequisites.
METHODS
$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.
$bool = $dist->init();
Sets up the
CPANPLUS::Dist::Build
object for use. Effectively creates all the needed status accessors.Called automatically whenever you create a new
CPANPLUS::Dist
object.$bool = $dist->prepare([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])
prepare
prepares a distribution, runningBuild.PL
and establishing any prerequisites this distribution has.The variable
PERL5_CPANPLUS_IS_EXECUTING
will be set to the full path of theBuild.PL
that is being executed. This enables any code inside theBuild.PL
to know that it is being installed via CPANPLUS.After a successful
prepare
you may callcreate
to create the distribution, followed byinstall
to actually install it.Returns true on success and false on failure.
$dist->create([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', prereq_target => TARGET, force => BOOL, verbose => BOOL, skiptest => BOOL])
create
preps a distribution for installation. This means it will runBuild
andBuild test
. This will also satisfy any prerequisites the module may have.If you set
skiptest
to true, it will skip theBuild test
stage. If you setforce
to true, it will go over all the stages of theBuild
process again, ignoring any previously cached results. It will also ignore a bad return value fromBuild test
and still allow the operation to return true.Returns true on success and false on failure.
You may then call
$dist->install
on the object to actually install it.$dist->install([verbose => BOOL, perl => /path/to/perl])
Actually installs the created dist.
Returns true on success and false on failure.
PROMINENCE
Originally by Jos Boumans <kane@cpan.org>. Brought to working condition by Ken Williams <kwilliams@cpan.org>.
Other hackery and currently maintained by Chris
BinGOs
Williams ( no relation ). <bingos@cpan.org>.AUTHOR
Jos Boumans <kane[at]cpan.org>, Ken Williams <kwilliams@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 by Jos Boumans, Ken Williams, Chris Williams and David Golden.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install CPANPLUS::Dist::Build, copy and paste the appropriate command in to your terminal.
cpanm CPANPLUS::Dist::Build
perl -MCPAN -e shell install CPANPLUS::Dist::Build
For more information on module installation, please visit the detailed CPAN module installation guide.