my $stat = $self->status;
my $conf = $self->parent->parent->configure_object;
- $stat->mk_accessors(qw/name version dist desc uri src license deps
+ $stat->mk_accessors(qw/name version author dist desc uri src license deps
eb_name eb_version eb_dir eb_file fetched_arch
overlay distdir keywords do_manifest
force verbose/);
my $version = $mod->package_version;
$stat->version($version);
+ my $author = $mod->author->cpanid;
+ $stat->author($author);
+
$stat->dist($name . '-' . $version);
$version =~ s/[^\d._]+//g;
}
}
- my $d = "# Generated by CPANPLUS::Dist::Gentoo\n\ninherit perl-module\n\n";
+ my $d = "# Generated by CPANPLUS::Dist::Gentoo\n\n";
+ $d .= 'MODULE_AUTHOR="' . $stat->author . "\"\ninherit perl-module\n\n";
$d .= 'S="${WORKDIR}/' . $stat->dist . "\"\n";
$d .= 'DESCRIPTION="' . $stat->desc . "\"\n";
$d .= 'HOMEPAGE="' . $stat->uri . "\"\n";