aports/main/perl-metrics-any/APKBUILD
Natanael Copa 3af2dbd380 main/perl-<various>: use direct dep to perl-test-simple
perl-test2-suite was merged into perl-test-simple. Depend directly on
the latter to simplify the build time dependency chain.

This is a follow up to commit 74e36977a5 (main/perl-test2-suite:
remove, merged into main/perl-test-simple) and solves a problem when
bootstrapping aports, which will not pull in indirect dependencies in
the build chain.

>>> perl-extutils-cchecker: Analyzing dependencies...
ERROR: unable to select packages:
  .makedepends-perl-extutils-cchecker-20241014.211514:
    masked in: cache
    satisfies: world[.makedepends-perl-extutils-cchecker=20241014.211514]
  perl-test2-suite (no such package):
    required by: .makedepends-perl-extutils-cchecker-20241014.211514[perl-test2-suite]
2024-10-15 10:52:08 +00:00

37 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-metrics-any
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Metrics-Any
pkgver=0.10
pkgrel=1
pkgdesc="abstract collection of monitoring metrics"
url="https://metacpan.org/release/Metrics-Any/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-module-build"
checkdepends="perl-test-simple"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Metrics-Any-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL --installdirs=vendor
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
5d0261459fa0f315470b48297e726c4a9e91a8318b30321147d4d9cc2f37a4fb0f8225fc0c2dc01c03f6c96e7316eb2b08905d244be94efc254920c8d681ee52 Metrics-Any-0.10.tar.gz
"