diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 15:42:32 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
commit | 5308e96705d1b620674062b2ba031b6fecdd46e9 (patch) | |
tree | 0fb31c37c0289a0c34c216c80121b5701276c388 /testing | |
parent | 360b7e2eb52da4e953fee1570af3b2b043d8015a (diff) | |
download | aports-5308e96705d1b620674062b2ba031b6fecdd46e9.tar.bz2 aports-5308e96705d1b620674062b2ba031b6fecdd46e9.tar.xz |
testing/perl-test-roo: new aport
Composable, reusable tests with roles and Moo
http://search.cpan.org/dist/Test-Roo/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-test-roo/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-test-roo/APKBUILD b/testing/perl-test-roo/APKBUILD new file mode 100644 index 0000000000..03b8f963f9 --- /dev/null +++ b/testing/perl-test-roo/APKBUILD @@ -0,0 +1,48 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-test-roo +_pkgreal=Test-Roo +pkgver=1.004 +pkgrel=0 +pkgdesc="Composable, reusable tests with roles and Moo" +url="http://search.cpan.org/dist/Test-Roo/" +arch="noarch" +license="apache_2_0" +cpandepends="perl-moox-types-mooselike perl-moo perl-sub-install perl-strictures" +cpanmakedepends="" +cpancheckdepends="perl-capture-tiny" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="739b26d334d38971aa8e901e518f26ec3142dbfc710d74ed1601143a2a3a134a72ff3caa77567156da7180610e17f2b4dd07fbce4ea3a608bda49c56bed1dc66 Test-Roo-1.004.tar.gz" |