Alien-V8
view release on metacpan or search on metacpan
inc/inc_Module-Build/Module/Build/Base.pm view on Meta::CPAN
555657585960616263646566676869707172737475
}
}
# record for later use in resume;
$self
->{properties}{_added_to_INC} = [
$self
->_added_to_INC ];
$self
->set_bundle_inc;
$self
->dist_name;
$self
->dist_version;
$self
->_guess_module_name
unless
$self
->module_name;
$self
->_find_nested_builds;
return
$self
;
}
sub
resume {
my
$package
=
shift
;
my
$self
=
$package
->_construct(
@_
);
$self
->read_config;
inc/inc_Module-Build/Module/Build/Base.pm view on Meta::CPAN
107710781079108010811082108310841085108610871088108910901091109210931094109510961097EOF
close
$fh
;
unshift
@INC
, File::Spec->catdir(File::Spec->rel2abs(
$build_dir
),
'lib'
);
eval
"use $opts{class}"
;
die
$@
if
$@;
return
$opts
{class};
}
sub
_guess_module_name {
my
$self
=
shift
;
my
$p
=
$self
->{properties};
return
if
$p
->{module_name};
if
(
$p
->{dist_version_from} && -e
$p
->{dist_version_from} ) {
my
$mi
= Module::Build::ModuleInfo->new_from_file(
$self
->dist_version_from);
$p
->{module_name} =
$mi
->name;
}
else
{
my
$mod_path
=
my
$mod_name
=
$p
->{dist_name};
$mod_name
=~ s{-}{::}g;
inc/inc_Module-Build/Module/Build/ModuleInfo.pm view on Meta::CPAN
413414415416417418419420421422423424425426427428429430431432to accepting the C<collect_pod> argument as described above, this
method accepts a C<inc> argument which is a reference to an array of
of directories to search
for
the module. If none are
given
, the
default
is
@INC
.
=item name()
Returns the name of the package represented by this module. If there
are more than one packages, it makes a best guess based on the
filename. If it's a script (i.e. not a *.pm) the package name is
'main'.
=item version($package)
Returns the version as defined by the $VERSION variable for the
package as returned by the C<name> method if no arguments are
given. If given the name of a package it will attempt to return the
version of that package if it is specified in the file.
( run in 0.507 second using v1.01-cache-2.11-cpan-26ccb49234f )