aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-timer
diff options
context:
space:
mode:
authorNick Andrew <nick@nick-andrew.net>2017-04-09 08:35:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-28 14:58:07 +0000
commitba80db4b6304d342b45eda86cd96a8dba20ce00d (patch)
tree37d217d89587632eef8f99c19acd162ad4c2c990 /testing/perl-test-timer
parentd7d9d5e0a99eca6a433f7cd68bd1514ffe71f412 (diff)
downloadaports-ba80db4b6304d342b45eda86cd96a8dba20ce00d.tar.bz2
aports-ba80db4b6304d342b45eda86cd96a8dba20ce00d.tar.xz
testing/perl-test-timer: new aport
http://search.cpan.org/dist/Test-Timer/ test module to test/assert response times
Diffstat (limited to 'testing/perl-test-timer')
-rw-r--r--testing/perl-test-timer/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/perl-test-timer/APKBUILD b/testing/perl-test-timer/APKBUILD
new file mode 100644
index 0000000000..3938fe383b
--- /dev/null
+++ b/testing/perl-test-timer/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Nick Andrew <nick@nick-andrew.net>
+# Maintainer: Nick Andrew <nick@nick-andrew.net>
+pkgname=perl-test-timer
+_pkgreal=Test-Timer
+pkgver=0.18
+pkgrel=0
+pkgdesc="test module to test/assert response times"
+url="http://search.cpan.org/dist/Test-Timer/"
+arch="noarch"
+license="Artistic-2"
+cpandepends="perl-error"
+cpanmakedepends="perl-module-build"
+cpancheckdepends="perl-test-fatal"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/J/JO/JONASBN/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL installdirs=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build && ./Build test
+}
+
+package() {
+ cd "$builddir"
+ ./Build install destdir="$pkgdir"
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+
+sha512sums="660cce680d5ad4a45a8b06ad90c356fb2e35c39673a73c4937ab98007a6f3bd40b73fb204cec9bbfda466317c94da24c0ece8c715ef1924317bd862bbcaed6a9 Test-Timer-0.18.tar.gz"