diff options
author | Kent Fredric <kentfredric@gmail.com> | 2011-11-12 03:36:54 +1300 |
---|---|---|
committer | Kent Fredric <kentfredric@gmail.com> | 2011-11-12 03:36:54 +1300 |
commit | 646b6fc60a1881c02ca77beb4cc106e77302c3fc (patch) | |
tree | 27a0c03b31b168273f08b03649027dfbf536b4ea /scripts/gen_ebuild.pl | |
parent | [fixdep] Catalyst-Authentication-Store-DBIx-Class -> Catalyst-Runtime (diff) | |
download | perl-overlay-646b6fc60a1881c02ca77beb4cc106e77302c3fc.tar.gz perl-overlay-646b6fc60a1881c02ca77beb4cc106e77302c3fc.tar.bz2 perl-overlay-646b6fc60a1881c02ca77beb4cc106e77302c3fc.zip |
[scripts] +Hack for CGI-Simple, add lgpl-2.1 license map
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} } ){ |