From: Vincent Pit Date: Sun, 21 Dec 2008 10:45:23 +0000 (+0100) Subject: Specifying MODULE_AUTHOR sets S and SRC_URI, so we can remove them. It also sets... X-Git-Tag: v0.05~10 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git;a=commitdiff_plain;h=94d4cd2d24e105bf0d2c8117e2b5d469ccd13581 Specifying MODULE_AUTHOR sets S and SRC_URI, so we can remove them. It also sets HOMEPAGE, but to a suboptimal URI, so it's better to keep it for now --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index de07458..bcdc728 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -99,7 +99,7 @@ sub init { my $stat = $self->status; my $conf = $self->parent->parent->configure_object; - $stat->mk_accessors(qw/name version author distribution desc uri src license + $stat->mk_accessors(qw/name version author distribution desc uri license deps eb_name eb_version eb_dir eb_file fetched_arch portdir_overlay overlay distdir keywords do_manifest header footer @@ -312,13 +312,6 @@ sub prepare { $stat->uri('http://search.cpan.org/dist/' . $name); - unless ($author =~ /^(.)(.)/) { - error 'Wrong author name -- aborting'; - return 0; - } - $stat->src("mirror://cpan/modules/by-authors/id/$1/$1$2/$author/" - . $mod->package); - $stat->license([ qw/Artistic GPL-2/ ]); my $prereqs = $mod->status->prereqs; @@ -386,10 +379,8 @@ sub create { 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->distribution . "\"\n"; $d .= 'DESCRIPTION="' . $stat->desc . "\"\n"; - $d .= 'HOMEPAGE="' . $stat->uri . "\"\n"; - $d .= 'SRC_URI="' . $stat->src . "\"\n"; + $d .= 'HOMEPAGE="' . $stat->uri . "\"\n\n"; $d .= "SLOT=\"0\"\n"; $d .= 'LICENSE="|| ( ' . join(' ', sort @{$stat->license}) . " )\"\n"; $d .= 'KEYWORDS="' . join(' ', sort @{$stat->keywords}) . "\"\n";