aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime-timezone
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-11-21 10:10:44 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-11-21 10:10:54 +0200
commit88e86f738211ea5478417811d7e9e1ea7ef3cb51 (patch)
treefdfdab6014067f0592392fd08407a2b417417a70 /main/perl-datetime-timezone
parent2929434a3479d4ab6c92262a2236969eaf3b5aa6 (diff)
downloadaports-88e86f738211ea5478417811d7e9e1ea7ef3cb51.tar.bz2
aports-88e86f738211ea5478417811d7e9e1ea7ef3cb51.tar.xz
main/perl-datetime-timezone: update to 2.15, modernize
Diffstat (limited to 'main/perl-datetime-timezone')
-rw-r--r--main/perl-datetime-timezone/APKBUILD26
1 files changed, 17 insertions, 9 deletions
diff --git a/main/perl-datetime-timezone/APKBUILD b/main/perl-datetime-timezone/APKBUILD
index fdcaee110e..0f1a6d5239 100644
--- a/main/perl-datetime-timezone/APKBUILD
+++ b/main/perl-datetime-timezone/APKBUILD
@@ -1,40 +1,48 @@
-# Automatically generated by apkbuild-cpan, template 1
+# Automatically generated by apkbuild-cpan, template 2
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime-timezone
_pkgreal=DateTime-TimeZone
-pkgver=2.11
+pkgver=2.15
pkgrel=0
pkgdesc="Time zone object base class and factory"
url="http://search.cpan.org/dist/DateTime-TimeZone/"
arch="noarch"
license="GPL PerlArtistic"
-cpandepends="perl-class-singleton perl-try-tiny perl-specio perl-params-validationcompiler perl-module-runtime perl-namespace-autoclean"
-cpanmakedepends=" perl-test-fatal perl-test-requires "
+cpandepends="perl-class-singleton perl-params-validationcompiler perl-namespace-autoclean perl-try-tiny perl-module-runtime perl-specio"
+cpanmakedepends=""
+cpancheckdepends="perl-test-requires perl-test-fatal"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
+checkdepends="perl-datetime $cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make && make test
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="558d4cd71569c76c0c4128ecc7a6cff8bd0f2db3b818528fe77a05a9da9eac26edde163b9ddd20cd994c4cc571216594ee2db0214fd3ca8b2aac5888d9c79a47 DateTime-TimeZone-2.11.tar.gz"
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="2109f7e166931cf9d5fb97705572363615334bb392082e93087b40ac88d9f25c8f8ef7ba8df2cecfba5a7cd6f05bed6d6777cae2e1451b1a364a84077473bb09 DateTime-TimeZone-2.15.tar.gz"