my $conf = $self->parent->parent->configure_object;
$stat->mk_accessors(qw/name version author distribution desc uri src license
- fetched_arch deps
+ fetched_arch requires
ebuild_name ebuild_version ebuild_dir ebuild_file
portdir_overlay
overlay distdir keywords do_manifest header footer
$stat->license($self->intuit_license);
- my $prereqs = $mod->status->prereqs;
- my @depends;
+ my $prereqs = $mod->status->requires;
+ my @requires;
for my $prereq (sort keys %$prereqs) {
next if $prereq =~ /^perl(?:-|\z)/;
my $obj = $int->module_tree($prereq);
$version = $obj->package_version;
}
}
- push @depends, [ $obj->package_name, $version ];
+ push @requires, [ $obj->package_name, $version ];
}
}
- $stat->deps(\@depends);
+ $stat->requires(\@requires);
return $OK->();
}
# We must resolve the deps now and not inside prepare because _cpan2portage
# has to see the ebuilds already generated for the dependencies of the current
# dist.
- my @deps;
- for (@{$stat->deps}) {
+ my @requires;
+ for (@{$stat->requires}) {
my $dep = $self->_cpan2portage(@$_);
unless (defined $dep) {
$self->_abort(
);
return;
}
- push @deps, $dep;
+ push @requires, $dep;
}
- @deps = do { my %seen; sort grep !$seen{$_}++, 'dev-lang/perl', @deps };
+ @requires = do { my %seen; sort grep !$seen{$_}++, 'dev-lang/perl',@requires };
my $d = $stat->header;
$d .= "# Generated by CPANPLUS::Dist::Gentoo version $VERSION\n\n";
$d .= "SLOT=\"0\"\n";
$d .= 'LICENSE="|| ( ' . join(' ', sort @{$stat->license}) . " )\"\n";
$d .= 'KEYWORDS="' . join(' ', sort @{$stat->keywords}) . "\"\n";
- $d .= 'RDEPEND="' . join("\n", @deps) . "\"\n";
+ $d .= 'RDEPEND="' . join("\n", @requires) . "\"\n";
$d .= "DEPEND=\"\${RDEPEND}\"\n";
$d .= "SRC_TEST=\"do\"\n";
$d .= $stat->footer;