aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-future
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-29 11:59:34 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-11-29 22:12:43 +0100
commit89770720674ee3172342ff90836689a534f7cae9 (patch)
tree7845464cf57f934bfab56e01aee1e50b7fe72f57 /main/perl-future
parentbbf8eeea84969a531fe38d03574977d317ea1049 (diff)
downloadaports-89770720674ee3172342ff90836689a534f7cae9.tar.bz2
aports-89770720674ee3172342ff90836689a534f7cae9.tar.xz
main/perl-future: upgrade to 0.37 and modernize
Diffstat (limited to 'main/perl-future')
-rw-r--r--main/perl-future/APKBUILD34
1 files changed, 20 insertions, 14 deletions
diff --git a/main/perl-future/APKBUILD b/main/perl-future/APKBUILD
index 3cf621ef36..5f26facfdc 100644
--- a/main/perl-future/APKBUILD
+++ b/main/perl-future/APKBUILD
@@ -2,37 +2,43 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-future
_pkgreal=Future
-pkgver=0.35
+pkgver=0.37
pkgrel=0
-pkgdesc="represent an operation awaiting completion"
+pkgdesc="Represent an operation awaiting completion"
url="http://search.cpan.org/dist/Future/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends="perl-test-fatal perl-test-refcount perl-test-identity "
+cpanmakedepends="perl-test-fatal perl-test-refcount perl-test-identity"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- perl Build.PL installdirs=vendor || return 1
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.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}')
+ ./Build
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
}
package() {
- cd "$_builddir"
- ./Build install destdir="$pkgdir" || return 1
+ cd "$builddir"
+ ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="f4d6f8a8b186e1b0f6ca22ccdf0ad06b4ea47f915a03e4d29546ed45e4eced9b81a5bf02b122f334cf4ab11ee5e94843760a542923911ec2c388654ee3dd4526 Future-0.35.tar.gz"
+sha512sums="05d797b26b653ab6e7d2451001e556ba5a9a80d44dc8754be850e1990ff1e4cf6c3b5e601035e3e50ab4c610fe55a39c1c27f15770f88b739d09a5a5086c62f5 Future-0.37.tar.gz"