diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 15:18:29 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
commit | fd5e411445391bc8c89fdd06dcea6700462f5846 (patch) | |
tree | 665370c82eeba9cfa8bbc1bbca74eb3bf128d29c /testing/perl-test-modern | |
parent | 194c0139fa7a4de08de72abadc0ebf4bc62c849e (diff) | |
download | aports-fd5e411445391bc8c89fdd06dcea6700462f5846.tar.bz2 aports-fd5e411445391bc8c89fdd06dcea6700462f5846.tar.xz |
testing/perl-test-modern: new aport
precision testing for modern perl
http://search.cpan.org/dist/Test-Modern/
Diffstat (limited to 'testing/perl-test-modern')
-rw-r--r-- | testing/perl-test-modern/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-test-modern/APKBUILD b/testing/perl-test-modern/APKBUILD new file mode 100644 index 0000000000..0ec1af8f14 --- /dev/null +++ b/testing/perl-test-modern/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-modern +_pkgreal=Test-Modern +pkgver=0.013 +pkgrel=0 +pkgdesc="precision testing for modern perl" +url="http://search.cpan.org/dist/Test-Modern/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-exporter-tiny perl-import-into perl-test-warnings perl-test-fatal perl-try-tiny perl-test-deep perl-test-api perl-module-runtime" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_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="b59f897662bfecb1781959fb93bcb7b8090e13fe98beb50cf55b240d9a8e731c16a46ce6db1172953f2c86fad8c201a760ce918be03259d87218023be4438896 Test-Modern-0.013.tar.gz" |