Alien-V8

 view release on metacpan or  search on metacpan

inc/inc_Module-Build/Module/Build/Base.pm  view on Meta::CPAN

55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
    }
  }
 
  # 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

1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
EOF
  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

413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
Construct a C<ModuleInfo> object given a module or package name. In addition
to 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 )