diff options
Diffstat (limited to 'scripts/gen_ebuild.pl')
-rwxr-xr-x | scripts/gen_ebuild.pl | 9 |
1 files changed, 7 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} } ){ |