Debian Codegraph @

README

raw
1 NAME
2
3 CPANPLUS::Dist::Build - CPANPLUS plugin to install packages that use
4 Build.PL
5
6 VERSION
7
8 version 0.90
9
10 SYNOPSIS
11
12 my $build = CPANPLUS::Dist->new(
13 format => 'CPANPLUS::Dist::Build',
14 module => $modobj,
15 );
16
17 $build->prepare; # runs Build.PL
18 $build->create; # runs build && build test
19 $build->install; # runs build install
20
21 DESCRIPTION
22
23 CPANPLUS::Dist::Build is a distribution class for Module::Build related
24 modules. Using this package, you can create, install and uninstall perl
25 modules. It inherits from CPANPLUS::Dist.
26
27 Normal users won't have to worry about the interface to this module, as
28 it functions transparently as a plug-in to CPANPLUS and will just Do
29 The Right Thing when it's loaded.
30
31 ACCESSORS
32
33 parent()
34
35 Returns the CPANPLUS::Module object that parented this object.
36
37 status()
38
39 Returns the Object::Accessor object that keeps the status for this
40 module.
41
42 STATUS ACCESSORS
43
44 All accessors can be accessed as follows: $build->status->ACCESSOR
45
46 build_pl ()
47
48 Location of the Build file. Set to 0 explicitly if something went
49 wrong.
50
51 build ()
52
53 BOOL indicating if the Build command was successful.
54
55 test ()
56
57 BOOL indicating if the Build test command was successful.
58
59 prepared ()
60
61 BOOL indicating if the prepare call exited successfully This gets set
62 after perl Build.PL
63
64 distdir ()
65
66 Full path to the directory in which the prepare call took place, set
67 after a call to prepare.
68
69 created ()
70
71 BOOL indicating if the create call exited successfully. This gets set
72 after Build and Build test.
73
74 installed ()
75
76 BOOL indicating if the module was installed. This gets set after
77 Build install exits successfully.
78
79 uninstalled ()
80
81 BOOL indicating if the module was uninstalled properly.
82
83 _create_args ()
84
85 Storage of the arguments passed to create for this object. Used for
86 recursive calls when satisfying prerequisites.
87
88 _install_args ()
89
90 Storage of the arguments passed to install for this object. Used for
91 recursive calls when satisfying prerequisites.
92
93 METHODS
94
95 $bool = CPANPLUS::Dist::Build->format_available();
96
97 Returns a boolean indicating whether or not you can use this package to
98 create and install modules in your environment.
99
100 $bool = $dist->init();
101
102 Sets up the CPANPLUS::Dist::Build object for use. Effectively creates
103 all the needed status accessors.
104
105 Called automatically whenever you create a new CPANPLUS::Dist object.
106
107 $bool = $dist->prepare([perl => '/path/to/perl', buildflags =>
108 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])
109
110 prepare prepares a distribution, running Build.PL and establishing any
111 prerequisites this distribution has.
112
113 The variable PERL5_CPANPLUS_IS_EXECUTING will be set to the full path
114 of the Build.PL that is being executed. This enables any code inside
115 the Build.PL to know that it is being installed via CPANPLUS.
116
117 After a successful prepare you may call create to create the
118 distribution, followed by install to actually install it.
119
120 Returns true on success and false on failure.
121
122 $dist->create([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS',
123 prereq_target => TARGET, force => BOOL, verbose => BOOL, skiptest =>
124 BOOL])
125
126 create preps a distribution for installation. This means it will run
127 Build and Build test. This will also satisfy any prerequisites the
128 module may have.
129
130 If you set skiptest to true, it will skip the Build test stage. If you
131 set force to true, it will go over all the stages of the Build process
132 again, ignoring any previously cached results. It will also ignore a
133 bad return value from Build test and still allow the operation to
134 return true.
135
136 Returns true on success and false on failure.
137
138 You may then call $dist->install on the object to actually install it.
139
140 $dist->install([verbose => BOOL, perl => /path/to/perl])
141
142 Actually installs the created dist.
143
144 Returns true on success and false on failure.
145
146 PROMINENCE
147
148 Originally by Jos Boumans <[email protected]>. Brought to working condition
149 by Ken Williams <[email protected]>.
150
151 Other hackery and currently maintained by Chris BinGOs Williams ( no
152 relation ). <[email protected]>.
153
154 AUTHOR
155
156 Jos Boumans <kane[at]cpan.org>, Ken Williams <[email protected]>
157
158 COPYRIGHT AND LICENSE
159
160 This software is copyright (c) 2018 by Jos Boumans, Ken Williams, Chris
161 Williams and David Golden.
162
163 This is free software; you can redistribute it and/or modify it under
164 the same terms as the Perl 5 programming language system itself.
165