aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-roo
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-test-roo')
-rw-r--r--testing/perl-test-roo/APKBUILD48
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"