aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-anyevent
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 11:23:45 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:23 +0300
commit4674b92ea7700fb022c011661aa5560e57bed084 (patch)
treee7bff8835b81d9efc8858ae255328ac4ae22788a /testing/perl-anyevent
parent0cc8cb23ee2fc3ab447ee231cd2dbfeb8044260b (diff)
downloadaports-4674b92ea7700fb022c011661aa5560e57bed084.tar.bz2
aports-4674b92ea7700fb022c011661aa5560e57bed084.tar.xz
testing/perl-anyevent: upgrade to 7.14
Diffstat (limited to 'testing/perl-anyevent')
-rw-r--r--testing/perl-anyevent/APKBUILD35
1 files changed, 21 insertions, 14 deletions
diff --git a/testing/perl-anyevent/APKBUILD b/testing/perl-anyevent/APKBUILD
index 754b0f8c50..0304fb671f 100644
--- a/testing/perl-anyevent/APKBUILD
+++ b/testing/perl-anyevent/APKBUILD
@@ -1,41 +1,48 @@
-# Automatically generated by apkbuild-cpan, template 1
+# Automatically generated by apkbuild-cpan, template 2
# Contributor: Nick Andrew <nick@nick-andrew.net>
# Maintainer: Nick Andrew <nick@nick-andrew.net>
pkgname=perl-anyevent
_pkgreal=AnyEvent
-pkgver=7.12
+pkgver=7.14
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/AnyEvent/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
+cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ 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}'`
- make && make test
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="3c7054fc2c1d93b985d63c13d37d3369 AnyEvent-7.12.tar.gz"
-sha256sums="7893a7e5d65e6bc34479712235baccb739837c336fb9eb70193141532e95737d AnyEvent-7.12.tar.gz"
-sha512sums="a508024ee207dd227d81544d0796672587125698034317d6d1e50a22395358fbf62001b17d0e7f3bc7ea4be69b1004f563cdf7097ac67b10a4a43545a9d2273c AnyEvent-7.12.tar.gz"
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="98e7b9e06cf74b99d3407a25b60f3b825fceed3bae43505e1fb90785e24bd88ae25955cff25d29b4cc96957db7f4f5203d19ad2365abb4e3a3227fd91a16fb25 AnyEvent-7.14.tar.gz"