aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-failwarnings
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 01:16:36 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 01:39:35 +0000
commitb1274f164d3742fc5a47f4ab85a91baef72338ec (patch)
tree7095e084822242b5cff89ac35bb3dee624642067 /community/perl-test-failwarnings
parent4c6f8e1fdf89d2899b81dd6a680a65e89e20b7a9 (diff)
downloadaports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.bz2
aports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.xz
community/perl-[t-y]: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - rename _builddir to builddir
Diffstat (limited to 'community/perl-test-failwarnings')
-rw-r--r--community/perl-test-failwarnings/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/perl-test-failwarnings/APKBUILD b/community/perl-test-failwarnings/APKBUILD
index 4d47127066..d4450ecaa7 100644
--- a/community/perl-test-failwarnings/APKBUILD
+++ b/community/perl-test-failwarnings/APKBUILD
@@ -4,13 +4,13 @@
pkgname=perl-test-failwarnings
_pkgreal=Test-FailWarnings
pkgver=0.008
-pkgrel=0
+pkgrel=1
pkgdesc="Add test failures if warnings are caught"
url="http://search.cpan.org/dist/Test-FailWarnings/"
arch="noarch"
license="apache_2_0"
cpandepends=""
-cpanmakedepends=" perl-capture-tiny "
+cpanmakedepends="perl-capture-tiny"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
@@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.t
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@@ -28,7 +28,12 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
@@ -37,6 +42,4 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="c03d51f550dbfd9945722ff7f4c32717 Test-FailWarnings-0.008.tar.gz"
-sha256sums="da34ef9029f6849d6026201d49127d054ee6ac4b979c82210315f5721964a96f Test-FailWarnings-0.008.tar.gz"
sha512sums="7bffcc18191326095d99ad01be6426f4d9d927f769a156318f9abfea67da6adfecb657bad89390740c9f531fe69c717afa1d250258eed63d127bf10cbbf2bd51 Test-FailWarnings-0.008.tar.gz"