From: Francois Perrad Date: Mon, 16 Jun 2014 19:35:56 +0000 (+0200) Subject: support/script/scancpan: populates Config.in with homepage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bf13117aa2fb3cfa3607a076f029bd3d47da2d8;p=buildroot.git support/script/scancpan: populates Config.in with homepage Signed-off-by: Francois Perrad Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Thomas Petazzoni --- diff --git a/support/scripts/scancpan b/support/scripts/scancpan index d8723f35b0..4be47548dc 100755 --- a/support/scripts/scancpan +++ b/support/scripts/scancpan @@ -577,6 +577,7 @@ while (my ($distname, $dist) = each %dist) { mkdir $dirname unless -d $dirname; if ($need_target{$distname} && ($force || !-f $cfgname)) { my $abstract = $dist->{abstract}; + my $homepage = $dist->{resources}->{homepage} || qq{https://metacpan.org/release/${distname}}; say qq{write ${cfgname}} unless $quiet; open my $fh, q{>}, $cfgname; say {$fh} qq{config BR2_PACKAGE_${brname}}; @@ -585,8 +586,9 @@ while (my ($distname, $dist) = each %dist) { my $brdep = brname( fsname( $dep ) ); say {$fh} qq{\tselect BR2_PACKAGE_${brdep}}; } - say {$fh} qq{\thelp} if $abstract; - say {$fh} qq{\t ${abstract}} if $abstract; + say {$fh} qq{\thelp}; + say {$fh} qq{\t ${abstract}\n} if $abstract; + say {$fh} qq{\t ${homepage}}; close $fh; } if ($force || !-f $mkname) {