mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/perl-test-lwp-useragent: new aport
https://metacpan.org/release/Test-LWP-UserAgent/ LWP::UserAgent subclass for simulating and testing network calls
This commit is contained in:
parent
1217f11047
commit
9602324cfb
46
testing/perl-test-lwp-useragent/APKBUILD
Normal file
46
testing/perl-test-lwp-useragent/APKBUILD
Normal file
@ -0,0 +1,46 @@
|
||||
# Automatically generated by apkbuild-cpan, template 4
|
||||
# Contributor: Celeste <cielesti@protonmail.com>
|
||||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
pkgname=perl-test-lwp-useragent
|
||||
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=Test-LWP-UserAgent
|
||||
pkgver=0.036
|
||||
pkgrel=0
|
||||
pkgdesc="LWP::UserAgent subclass for simulating and testing network calls"
|
||||
url="https://metacpan.org/release/Test-LWP-UserAgent/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="
|
||||
perl perl-http-date perl-http-message perl-libwww
|
||||
perl-namespace-clean perl-safe-isa perl-try-tiny perl-uri
|
||||
"
|
||||
checkdepends="
|
||||
perl-json-maybexs perl-moose perl-path-tiny perl-plack
|
||||
perl-test-deep perl-test-fatal perl-test-needs
|
||||
perl-test-requiresinternet perl-test-warnings
|
||||
"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-LWP-UserAgent-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
||||
INSTALLDIRS=vendor \
|
||||
NO_PACKLIST=1 \
|
||||
NO_PERLLOCAL=1
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
6cf34dbd9c6fee3ab25ee31a97694f24499c7f41cd3d08e915176235148e69729f9434d58da78645e306d966031d2807f333f9847ddcc53b33474e6e6bea9e8e Test-LWP-UserAgent-0.036.tar.gz
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user