1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 20:55:19 +03:00
aports/community/perl-io-async/APKBUILD
Celeste c9dabc9573 community/perl-io-async: add -looptests subpackage
with dependencies needed to actually use the package
2023-11-15 12:23:31 +00:00

55 lines
1.6 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-io-async
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=IO-Async
pkgver=0.802
pkgrel=1
pkgdesc="Asynchronous event-driven programming"
url="https://metacpan.org/release/IO-Async/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-future perl-struct-dumb"
makedepends="perl-module-build"
checkdepends="
perl-future-io perl-test-future-io-impl perl-test-identity
perl-test-metrics-any perl-test-refcount perl-test-fatal
"
subpackages="$pkgname-doc $pkgname-looptests"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/IO-Async-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL --installdirs=vendor
./Build
}
check() {
# Test fails due to nothing ready after 10 second wait on ppc64le CI
[ "$CARCH" = "ppc64le" ] && rm -vf ./t/70future-io.t
./Build test
}
package() {
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
looptests() {
pkgdesc="$pkgdesc (Loop API acceptance testing)"
depends="
$pkgname=$pkgver-r$pkgrel
perl-test-fatal
perl-test-metrics-any
perl-test-refcount
"
amove usr/share/perl5/vendor_perl/IO/Async/LoopTests.pm
}
sha512sums="
868c02c30195484c4cb3edb4a05cf9b4798444afac1b9b57db36d105d5bea5ca856a4ef0a9954bf1f734934940fc0c647e740098bee813dd6bf62300dde8a570 IO-Async-0.802.tar.gz
"