summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentfredric@gmail.com>2012-04-28 21:37:56 +1200
committerKent Fredric <kentfredric@gmail.com>2012-04-28 22:30:39 +1200
commit2105ca92e27d14160374ce5a34a1a6a5da86cc24 (patch)
treed81ac756df7b4ceaaec3d4d2d20dba5603dfdefb /scripts/gen_ebuild.pl
parent[newversion] virtual/perl-Object-Accesor-0.440.0 (diff)
downloadperl-overlay-2105ca92e27d14160374ce5a34a1a6a5da86cc24.tar.gz
perl-overlay-2105ca92e27d14160374ce5a34a1a6a5da86cc24.tar.bz2
perl-overlay-2105ca92e27d14160374ce5a34a1a6a5da86cc24.zip
Specialcase gen_ebuild for open_source
Diffstat (limited to 'scripts/gen_ebuild.pl')
-rwxr-xr-xscripts/gen_ebuild.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/gen_ebuild.pl b/scripts/gen_ebuild.pl
index f742a9b02..b6c1f9b40 100755
--- a/scripts/gen_ebuild.pl
+++ b/scripts/gen_ebuild.pl
@@ -170,11 +170,20 @@ my $licmap = {
artistic_2 => [qw( Artistic-2 )],
gpl_3 => [qw( GPL-3 )],
};
+my $oddlic = {
+ open_source => sub {
+ warn "\n \e[31m*\e[0m User defined license in the metadata is 'open_source', which could mean any of: gpl, lgpl or mozilla. Please check Makefile/Build.PL"
+ . "\n This is due to: https://metacpan.org/source/DAGOLDEN/CPAN-Meta-2.120921/lib/CPAN/Meta/Converter.pm#L155\n";
+ },
+};
for my $lic ( @{ $release_info->{license} } ) {
if ( exists $licmap->{$lic} ) {
push @$lics, @{ $licmap->{$lic} };
}
+ elsif ( exists $oddlic->{$lic} ) {
+ $oddlic->{$lic}->();
+ }
else {
warn "No Gentoo maping listed for $lic license type";
}