aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-warn
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-12-27 08:56:19 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-12-27 08:56:19 +0200
commit2151f71ca07e26865d338efdfa1e5578d6963046 (patch)
treeacd852139f623e385cdabed0d22111b768665683 /main/perl-test-warn
parent9ac88f92608f1642ae2bee39ebb599c0c393281d (diff)
downloadaports-2151f71ca07e26865d338efdfa1e5578d6963046.tar.bz2
aports-2151f71ca07e26865d338efdfa1e5578d6963046.tar.xz
main/perl-test-warn: upgrade to 0.32
Diffstat (limited to 'main/perl-test-warn')
-rw-r--r--main/perl-test-warn/APKBUILD23
1 files changed, 13 insertions, 10 deletions
diff --git a/main/perl-test-warn/APKBUILD b/main/perl-test-warn/APKBUILD
index 8ca3fafaf7..704bf70c6d 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.30
+pkgver=0.32
pkgrel=0
pkgdesc="Perl extension to test methods for warnings"
url="http://search.cpan.org/dist/Test-Warn/"
@@ -14,26 +14,29 @@ cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+source="http://search.cpan.org/CPAN/authors/id/B/BI/BIGJ/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ 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"
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="8306b998a96d2cc69266b5248d550472 Test-Warn-0.30.tar.gz"
-sha256sums="8197555b94189d919349a03f7058f83861f145af9bee59f505bfe47562144e41 Test-Warn-0.30.tar.gz"
-sha512sums="23d01f3ec91d7e57200d768ff85aee8ef0df3fd16bf1f12ce56722334e73b1335236c1b1c5e6e72d46cf0b32a6049c085f84ff9ec19e93210a587e64c477979e Test-Warn-0.30.tar.gz"
+md5sums="3210a070680ea24437ebfd2be26bbfcd Test-Warn-0.32.tar.gz"
+sha256sums="2fc516e71f9ef453be22a4619d91eb3f78df414a57dfa0fd745d3bff50bf73d2 Test-Warn-0.32.tar.gz"
+sha512sums="a14d6a87cfa19d54a3055b3c94143b95788ed2a30b2813d952255891a84165f0baf8b9cad167c8d5c87870220aaeeedcfe48db73246966be6aea41ad26779e6a Test-Warn-0.32.tar.gz"