| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-io-async |
| 5 | pkgver=0.805 |
| 6 | pkgrel=1 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=IO-Async |
| 9 | pkgdesc="Asynchronous event-driven programming" |
| 10 | url="https://metacpan.org/release/IO-Async/" |
| 11 | arch="noarch" |
| 12 | license="GPL-1.0-or-later OR Artistic-1.0-Perl" |
| 13 | depends="perl perl-future perl-struct-dumb" |
| 14 | makedepends="perl-module-build" |
| 15 | checkdepends=" |
| 16 | perl-future-io perl-test-future-io-impl |
| 17 | perl-test-metrics-any perl-test2-suite |
| 18 | " |
| 19 | subpackages="$pkgname-doc $pkgname-looptests" |
| 20 | source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/IO-Async-$pkgver.tar.gz" |
| 21 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 22 | |
| 23 | build() { |
| 24 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 25 | perl Build.PL \ |
| 26 | --installdirs=vendor \ |
| 27 | --create_packlist=0 |
| 28 | ./Build |
| 29 | } |
| 30 | |
| 31 | check() { |
| 32 | # Test fails due to nothing ready after 10 second wait on ppc64le CI |
| 33 | case "$CARCH" in |
| 34 | ppc64le|loongarch64) |
| 35 | rm -vf ./t/70future-io.t |
| 36 | ;; |
| 37 | esac |
| 38 | # https://rt.cpan.org/Public/Bug/Display.html?id=150912 |
| 39 | rm -vf ./t/41routine.t ./t/42function.t |
| 40 | |
| 41 | ./Build test |
| 42 | } |
| 43 | |
| 44 | package() { |
| 45 | ./Build install --destdir="$pkgdir" |
| 46 | } |
| 47 | |
| 48 | looptests() { |
| 49 | pkgdesc="$pkgdesc (Loop API acceptance testing)" |
| 50 | depends=" |
| 51 | $pkgname=$pkgver-r$pkgrel |
| 52 | perl-test-metrics-any |
| 53 | perl-test2-suite |
| 54 | " |
| 55 | |
| 56 | amove usr/share/perl5/vendor_perl/IO/Async/LoopTests.pm |
| 57 | } |
| 58 | |
| 59 | sha512sums=" |
| 60 | 497de3601bc58b98f3015cdf0bbbcc3e90b5d267e6b1ed59fb46f7024abdaa5f4966925ba61c4782bcd569a75c621937596f831e7a24de5b385c1bb5278735ce IO-Async-0.805.tar.gz |
| 61 | " |