aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-11-02 14:39:52 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-11-02 14:39:52 +0200
commit3e00b96dabd16c7b7ebbfd450da43bb8dc437fb3 (patch)
treed2892c9f12a387878bf49c14ba6e708561fc5179 /main/perl-datetime
parent1dc80097a8c209659bfc5b6579a5a85402bb37de (diff)
downloadaports-3e00b96dabd16c7b7ebbfd450da43bb8dc437fb3.tar.bz2
aports-3e00b96dabd16c7b7ebbfd450da43bb8dc437fb3.tar.xz
main/perl-datetime: upgrade to 1.39
Diffstat (limited to 'main/perl-datetime')
-rw-r--r--main/perl-datetime/APKBUILD47
1 files changed, 22 insertions, 25 deletions
diff --git a/main/perl-datetime/APKBUILD b/main/perl-datetime/APKBUILD
index d9516c5972..1a138bc2c0 100644
--- a/main/perl-datetime/APKBUILD
+++ b/main/perl-datetime/APKBUILD
@@ -3,43 +3,40 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime
_pkgreal=DateTime
-pkgver=1.25
-pkgrel=1
-pkgdesc="Perl module for DateTime"
+pkgver=1.39
+pkgrel=0
+pkgdesc="A date and time object for Perl"
url="http://search.cpan.org/dist/DateTime/"
arch="all"
-license="GPL PerlArtistic"
-cpandepends=""
-cpanmakedepends=""
-depends="$cpandepends perl perl-datetime-locale perl-datetime-timezone"
-makedepends="perl-dev $cpanmakedepends perl-module-build perl-test-fatal
- perl-test-warnings"
+license="Artistic-2"
+cpandepends="perl-datetime-locale perl-try-tiny perl-dist-checkconflicts perl-params-validationcompiler perl-datetime-timezone perl-namespace-autoclean perl-specio"
+cpanmakedepends=" perl-test-warnings perl-cpan-meta-check perl-test-fatal "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- if [ -e Build.PL ]; then
- perl Build.PL installdirs=vendor || return 1
- else
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- fi
+ 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}'`
- ./Build && ./Build test
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make && make test
}
package() {
- cd "$_builddir"
- ./Build install destdir="$pkgdir" || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="3343f67ebefb3f082a0067dfaee3b3c8 DateTime-1.25.tar.gz"
-sha256sums="d860ce7115802a3555e5dc380fa91c4133d3452b7bdc713011746072a58d1655 DateTime-1.25.tar.gz"
-sha512sums="794214956672e5b3d81d1094914f58b97a6454f1b9817ca8f4f0ed2cc63459e472149e809e155db3d8b7ebaa93560c3d8b3efc1b2d6b520c7b9f097391b51db8 DateTime-1.25.tar.gz"
+md5sums="4594f4e303fe3e7d80132bfc8a0a6009 DateTime-1.39.tar.gz"
+sha256sums="2d876b624b9c0a18acea9d30495649daf11fb0e01171ef20780072ee97c4a494 DateTime-1.39.tar.gz"
+sha512sums="34ff99a40583a2fefc40bb0ce739dc769371c6716da282e6287eefd2bf8aacfcefb5de7d52509e363ef8404a47649d9c94cdc4f110adda048a0802bd38b5797a DateTime-1.39.tar.gz"