aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-04-07 13:33:49 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-04-07 13:33:49 +0000
commitbf95847ed2801fd11727e4c6c3fcaf36f39baa00 (patch)
tree348218674f13f0cbc63199a1953b3af42a272f5c
parent8596ddbdc7c9f2eb29f56f6d375f73f98b1e4c1f (diff)
downloadaports-bf95847ed2801fd11727e4c6c3fcaf36f39baa00.tar.gz
aports-bf95847ed2801fd11727e4c6c3fcaf36f39baa00.tar.bz2
aports-bf95847ed2801fd11727e4c6c3fcaf36f39baa00.tar.xz
community/perl-log-dispatch-configurator-any: add check(), modernize APKBUILD
-rw-r--r--community/perl-log-dispatch-configurator-any/APKBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/community/perl-log-dispatch-configurator-any/APKBUILD b/community/perl-log-dispatch-configurator-any/APKBUILD
index c66e7dd730..6e8c19b0ab 100644
--- a/community/perl-log-dispatch-configurator-any/APKBUILD
+++ b/community/perl-log-dispatch-configurator-any/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-log-dispatch-configurator-any
_pkgreal=Log-Dispatch-Configurator-Any
pkgver=1.122640
-pkgrel=0
+pkgrel=1
pkgdesc="Configurator implementation with Config::Any"
url="http://search.cpan.org/dist/Log-Dispatch-Configurator-Any/"
arch="noarch"
@@ -14,27 +14,35 @@ perl-test-pod-coverage perl-config-tiny perl-module-pluggable"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
+checkdepends="perl-namespace-autoclean perl-specio perl-params-validationcompiler"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/$_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"
- 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
}
+check() {
+ cd "$builddir"
+ make test
+}
+
md5sums="5d71ccc620e534669f6687726cec419e Log-Dispatch-Configurator-Any-1.122640.tar.gz"
sha256sums="e9900c7c510b27d96eeb5ab28afc2780ccce19558f24daf649810514a11f41c8 Log-Dispatch-Configurator-Any-1.122640.tar.gz"
sha512sums="9cf9e1583f9c28c6b1320281c0607912b814339bee27a8da3ede8e1edd44ce589ea8ff6a70adc3c4f620075f3966d5563eababecfde720a50ab07eda3a14a07c Log-Dispatch-Configurator-Any-1.122640.tar.gz"