Upon `apkbuild-cpan upgrade`, an aport without any
checkdepends would get a line like this inserted:
`checkdepends=""subpackages="$pkgname-doc"`
which would then be deleted by the substitution
that removes empty variables, so the net result
is an APKBUILD with the subpackages field removed.
Inserting a newline results in `checkdepends=""`
being a line all by itself, which then gets
correctly removed by the empty variables regex.
this is a preliminary attempt at fixing #10126, however, i think
the whole logic around recreating depends should be reviewed and
improved, as we may want to carry over all the depends from the
old APKBUILD, and not just the non-perl libs, as the old depends
may be compensating for something not declared in the META file.
the regex used to match options_comment in read_assignments_from_file
starts matching immediately after the closing double quote (it does
not remove the prefixing space), so without this change, a new space
is inserted by the template upon each `recreate`.
by not installing .packlist and perllocal.pod.
The call to find -delete has been removed as
the modifications to build() have covered
almost all cases, so deleting .packlist and
perllocal.pod manually is no longer necessary.
Also, increment template version from 3
to 4 to allow easy identification of
aports that have this change applied.
apkbuild-cpan.in: attempt to get a metaprefix if no metafiles exist
apkbuild-cpan.in: try harder to find a metaprefix
apkbuild-cpan.in: redefine builddir if not based on $_pkgreal
aports convention is to delete empty variables from APKBUILD files
this causes and issue with updating existing APKBUILD files
new depends, makedepends or checkdepends are added to process the file
properly. Empty variables are then deleted once the file processes correctly
remove trailing pkgver from some module names
attempt to use additional variable content to determine perl package name
this now appears to support all but 10 or 11 non metacpan api retrievable
module information and add a package mapping for perl-ldap
do_depends can send multiple meta dependencies as additional parameters
parse_deps was not itterating through each of the parameters
this fix gets the entire list without duplicate entries