apkbuild-cpan.in: don't add perl-dev if its not needed on recreate

This commit is contained in:
Timothy Legge 2024-02-09 22:46:35 -04:00 committed by Natanael Copa
parent 4ae1b39910
commit b0fb5c7038

View File

@ -579,11 +579,7 @@ sub do_depends {
my $has_xs = length(`find $metaprefix -name '*.xs'`);
my $perldev = (
( defined $oldapkbuild->{'makedepends'}
&& $oldapkbuild->{'makedepends'} =~ 'perl-dev' ) ||
$has_xs )
? "perl-dev" : '';
my $perldev = $has_xs ? "perl-dev" : '';
if ( defined $makedeps && $makedeps eq '' ) {
if (defined $oldapkbuild->{'makedepends'} && ! $meta) {
$makedeps = $oldapkbuild->{'makedepends'};