aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-17 17:20:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-17 17:25:36 +0000
commit9949cdbaf2d26500ed011ee266370c83e048ff90 (patch)
tree901b4895af5d4a30790617979af8c2972ff7c069 /main
parent97e7e4791534536b77574a42d6e98fa4a7f6fa96 (diff)
downloadaports-9949cdbaf2d26500ed011ee266370c83e048ff90.tar.bz2
aports-9949cdbaf2d26500ed011ee266370c83e048ff90.tar.xz
main/perl-log-dispatch: upgrade to 2.67 and modernize
Version 2.62 is not longer available.
Diffstat (limited to 'main')
-rw-r--r--main/perl-log-dispatch/APKBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/main/perl-log-dispatch/APKBUILD b/main/perl-log-dispatch/APKBUILD
index a39b680574..03e28a00c9 100644
--- a/main/perl-log-dispatch/APKBUILD
+++ b/main/perl-log-dispatch/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-log-dispatch
_pkgreal=Log-Dispatch
-pkgver=2.62
+pkgver=2.67
pkgrel=0
pkgdesc="Dispatches messages to one or more outputs"
url="http://search.cpan.org/dist/Log-Dispatch/"
@@ -18,24 +18,29 @@ 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"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="cc4ca40e62d2ec3caffabafcab187e8122c0316d2165c21057afa1ad0c15eba4dbd4b5152219a5886b1445ab9d9502f7502cecbc31850a9429f5c79189ca76ce Log-Dispatch-2.62.tar.gz"
+sha512sums="ab03777800fa758a502e69b25669c3e4ae851d9dcf5f2f4d1a21a94cc61aca866ac361d2a5db3d22d19cb4d11da29ecec19935e29fcad40bb831fb27175846d6 Log-Dispatch-2.67.tar.gz"