my $stat = $self->status;
my $conf = $self->parent->parent->configure_object;
- $stat->mk_accessors(qw/name version author dist desc uri src license deps
- eb_name eb_version eb_dir eb_file fetched_arch
+ $stat->mk_accessors(qw/name version author distribution desc uri src license
+ deps eb_name eb_version eb_dir eb_file fetched_arch
overlay distdir keywords do_manifest header footer
force verbose/);
my $author = $mod->author->cpanid;
$stat->author($author);
- $stat->dist($name . '-' . $version);
+ $stat->distribution($name . '-' . $version);
$version =~ s/[^\d._]+//g;
$version =~ s/^[._]*//;
error "Can't force rewriting of $file -- skipping";
}
} else {
- msg 'Ebuild already generated for ' . $stat->dist . ' -- skipping';
+ msg 'Ebuild already generated for ' . $stat->distribution . ' -- skipping';
}
if ($skip) {
$stat->prepared(1);
my $stat = $self->status;
unless ($stat->prepared) {
- error 'Can\'t create ' . $stat->dist . ' since it was never prepared -- aborting';
+ error 'Can\'t create ' . $stat->distribution . ' since it was never prepared -- aborting';
$stat->created(0);
return 0;
}
if ($stat->created) {
- msg $stat->dist . ' was already created -- skipping';
+ msg $stat->distribution . ' was already created -- skipping';
return 1;
}
my $d = $stat->header;
$d .= "# Generated by CPANPLUS::Dist::Gentoo version $VERSION\n\n";
$d .= 'MODULE_AUTHOR="' . $stat->author . "\"\ninherit perl-module\n\n";
- $d .= 'S="${WORKDIR}/' . $stat->dist . "\"\n";
+ $d .= 'S="${WORKDIR}/' . $stat->distribution . "\"\n";
$d .= 'DESCRIPTION="' . $stat->desc . "\"\n";
$d .= 'HOMEPAGE="' . $stat->uri . "\"\n";
$d .= 'SRC_URI="' . $stat->src . "\"\n";
return 0;
}
- msg 'Adding Manifest entry for ' . $stat->dist;
+ msg 'Adding Manifest entry for ' . $stat->distribution;
unless ($self->_run([ 'ebuild', $file, 'manifest' ], 0)) {
1 while unlink $file;
return 0;