aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-api/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 15:17:58 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commit194c0139fa7a4de08de72abadc0ebf4bc62c849e (patch)
treecf3ca9ab183afd65bf9def10864b4867dca75f1e /testing/perl-test-api/APKBUILD
parent1c9cff5f94016d37ca0fa93a298638000b4a3b60 (diff)
downloadaports-194c0139fa7a4de08de72abadc0ebf4bc62c849e.tar.bz2
aports-194c0139fa7a4de08de72abadc0ebf4bc62c849e.tar.xz
testing/perl-test-api: new aport
Test a list of subroutines provided by a module http://search.cpan.org/dist/Test-API/
Diffstat (limited to 'testing/perl-test-api/APKBUILD')
-rw-r--r--testing/perl-test-api/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-test-api/APKBUILD b/testing/perl-test-api/APKBUILD
new file mode 100644
index 0000000000..3b0f17bae9
--- /dev/null
+++ b/testing/perl-test-api/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-api
+_pkgreal=Test-API
+pkgver=0.008
+pkgrel=0
+pkgdesc="Test a list of subroutines provided by a module"
+url="http://search.cpan.org/dist/Test-API/"
+arch="noarch"
+license="apache_2_0"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends=""
+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="47ab88c5038b71acc1f5ab38719f33e07edb7b52544d49f73b70923f65184346b9b4d834896438448496433f1cae9034f38a9687b89f80b8d196243351bc922d Test-API-0.008.tar.gz"