diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-31 10:40:48 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-31 10:40:48 +0000 |
commit | c3e2c12d30f48a88fbc9b4aa98a0861ebb06d052 (patch) | |
tree | 791a81b7d5f457de0da7edd1df7a7503873de160 | |
parent | 424f3a7cca63e438b5910ebe840cb2f6d7741c42 (diff) | |
download | aports-c3e2c12d30f48a88fbc9b4aa98a0861ebb06d052.tar.bz2 aports-c3e2c12d30f48a88fbc9b4aa98a0861ebb06d052.tar.xz |
main/perl-datetime-timezone: upgrade to 1.76
-rw-r--r-- | main/perl-datetime-timezone/APKBUILD | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/main/perl-datetime-timezone/APKBUILD b/main/perl-datetime-timezone/APKBUILD index b6fede30e7..4d9bb6bd6a 100644 --- a/main/perl-datetime-timezone/APKBUILD +++ b/main/perl-datetime-timezone/APKBUILD @@ -1,37 +1,33 @@ +# Automatically generated by apkbuild-cpan, template 1 # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-datetime-timezone -pkgver=1.74 +_pkgreal=DateTime-TimeZone +pkgver=1.76 pkgrel=0 -pkgdesc="DateTime::TimeZone perl module" +pkgdesc="Time zone object base class and factory" url="http://search.cpan.org/dist/DateTime-TimeZone/" arch="noarch" -license="GPLv2 or Artistic" -depends="perl perl-class-load perl-params-validate perl-class-singleton" -makedepends="perl-dev perl-test-requires" -install="" +license="GPL PerlArtistic" +cpandepends="perl-params-validate perl-class-singleton perl-class-load perl-list-allutils" +cpanmakedepends=" perl-test-fatal perl-test-output perl-test-requires " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-TimeZone-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" -_builddir="$srcdir"/DateTime-TimeZone-$pkgver prepare() { - local i cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - - # No tests - tests depend on perl-datetime, but on the otherhand - # that package has a hard dependency on this one. - # Thus break circular build dependency by skipping tests. - make || return 1 + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test } package() { @@ -40,6 +36,6 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="1cd66c38c3206fcc455555e9f3cee97b DateTime-TimeZone-1.74.tar.gz" -sha256sums="f0f43c46e60ad598dfdee0b817a18dba401905eb54290477fafc1dbbf73cbf8f DateTime-TimeZone-1.74.tar.gz" -sha512sums="dda3e745842f28bde117bd6559023e2ccce4940107cc2dad7aaa865356bc4310194b6bd1ecf994de04c6f92871bf94b54870fd00b4a6f656e97a0faa852af125 DateTime-TimeZone-1.74.tar.gz" +md5sums="9aeccf8c911c8e3ec18c8194de3a3840 DateTime-TimeZone-1.76.tar.gz" +sha256sums="6e96779ed04c81979d72b1a02bf12726b408e4b99169d4c9882414a19ebbb2b0 DateTime-TimeZone-1.76.tar.gz" +sha512sums="751df39548fc15217270281d66b6fcbe9cbc3c8ffb3e5f404d38c162ea1002b114190780e6a28d0415cd2b8c14eec62c4435e8de06fe92b8f8dff9fb248c3cbf DateTime-TimeZone-1.76.tar.gz" |