diff options
-rwxr-xr-x | scripts/gen_ebuild.pl | 9 | ||||
-rw-r--r-- | scripts/lib/deptools.pm | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/scripts/gen_ebuild.pl b/scripts/gen_ebuild.pl index d9c3648e3..ef9c4c762 100755 --- a/scripts/gen_ebuild.pl +++ b/scripts/gen_ebuild.pl @@ -104,14 +104,19 @@ $fh->say("MODULE_AUTHOR=" . $release_info->{author}); $fh->say("MODULE_VERSION=" . $release_info->{version}); $fh->say('inherit perl-module'); $fh->say(''); - -$fh->say('DESCRIPTION=\'' . $release_info->{abstract} . '\''); +if ( not defined $release_info->{abstract} ) { + $fh->say('DESCRIPTION=\'' . $release_info->{distribution} . '\''); + warn "Missing an ABSTRACT"; +} else { + $fh->say('DESCRIPTION=\'' . $release_info->{abstract} . '\''); +} my $lics = []; my $licmap = { perl_5 => [qw( Artistic GPL-2 )], apache_2_0 => [qw( Apache-2.0 )], mit => [qw( MIT )], + lgpl_2_1 => [qw( LGPL-2.1 )] }; for my $lic ( @{ $release_info->{license} } ){ diff --git a/scripts/lib/deptools.pm b/scripts/lib/deptools.pm index 0a161904a..b85c518b4 100644 --- a/scripts/lib/deptools.pm +++ b/scripts/lib/deptools.pm @@ -47,6 +47,7 @@ sub _vmap_perl_strange { 'Net-Ping' => virtual 'net-ping', 'Pod-Parser' => virtual 'PodParser', 'Config-General' => perl 'config-general', + 'CGI-Simple' => perl 'Cgi-Simple', ); } |