aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-warn
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-06-14 20:28:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-15 13:17:36 +0000
commite5c3baf6152ec41aa1de276f426bc2d2c8ff9da4 (patch)
tree4d3411c6fbd726eb1f13e2c24e8fb16f6011e49f /main/perl-test-warn
parent6c6c91e2674687f7a94144f4d1706973aab88441 (diff)
downloadaports-e5c3baf6152ec41aa1de276f426bc2d2c8ff9da4.tar.gz
aports-e5c3baf6152ec41aa1de276f426bc2d2c8ff9da4.tar.bz2
aports-e5c3baf6152ec41aa1de276f426bc2d2c8ff9da4.tar.xz
main/perl-test-warn: ugrade to 0.35 and modernize
Diffstat (limited to 'main/perl-test-warn')
-rw-r--r--main/perl-test-warn/APKBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/main/perl-test-warn/APKBUILD b/main/perl-test-warn/APKBUILD
index 704bf70c6d..af4fd3f054 100644
--- a/main/perl-test-warn/APKBUILD
+++ b/main/perl-test-warn/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-test-warn
_pkgreal=Test-Warn
-pkgver=0.32
+pkgver=0.35
pkgrel=0
pkgdesc="Perl extension to test methods for warnings"
url="http://search.cpan.org/dist/Test-Warn/"
@@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/B/BI/BIGJ/$_pkgreal-$pkgver.tar.g
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@@ -28,15 +28,18 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="3210a070680ea24437ebfd2be26bbfcd Test-Warn-0.32.tar.gz"
-sha256sums="2fc516e71f9ef453be22a4619d91eb3f78df414a57dfa0fd745d3bff50bf73d2 Test-Warn-0.32.tar.gz"
-sha512sums="a14d6a87cfa19d54a3055b3c94143b95788ed2a30b2813d952255891a84165f0baf8b9cad167c8d5c87870220aaeeedcfe48db73246966be6aea41ad26779e6a Test-Warn-0.32.tar.gz"
+sha512sums="4adec7792dbe7d92fbaacd127e10e14528f231218eb308d1c794a483885ad5ca2fb201c0f709df1ff75e17a0caeb948803a74dc70aaaf6885b16b17ff2295147 Test-Warn-0.35.tar.gz"