scancpan: add PERL_FOO_DISTNAME in perl-foo.mk

This variable is needed for upgrading packages with scancpan.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Francois Perrad
2018-10-11 18:12:45 +02:00
committed by Arnout Vandecappelle (Essensium/Mind)
parent 0df5c2b13b
commit fe12a66bde
2 changed files with 8 additions and 3 deletions

View File

@@ -745,6 +745,7 @@ while (my ($distname, $dist) = each %dist) {
say {$fh} qq{HOST_${brname}_DEPENDENCIES = ${host_dependencies}} if $need_host{$distname} && $host_dependencies;
say {$fh} qq{${brname}_LICENSE = ${license}} if $license;
say {$fh} qq{${brname}_LICENSE_FILES = ${license_files}} if $license_files;
say {$fh} qq{${brname}_DISTNAME = ${distname}};
say {$fh} qq{};
say {$fh} qq{\$(eval \$(perl-package))} if $need_target{$distname};
say {$fh} qq{\$(eval \$(host-perl-package))} if $need_host{$distname};