From 9750dc2d04c70f99334f1d3ed3951330fafa41c5 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 24 Sep 2019 22:46:22 +0200 Subject: [PATCH] perl: add check stage, adopt. --- srcpkgs/perl/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template index c25761b26b4..47ec502fd2b 100644 --- a/srcpkgs/perl/template +++ b/srcpkgs/perl/template @@ -7,8 +7,9 @@ build_style=gnu-configure hostmakedepends="less" makedepends="zlib-devel bzip2-devel gdbm-devel db-devel" depends="less" +checkdepends="iana-etc perl-AnyEvent perl-Test-Pod procps-ng" short_desc="Practical Extraction and Report Language" -maintainer="Orphaned " +maintainer="Leah Neukirchen " license="Artistic-1.0-perl, GPL-1.0-or-later" homepage="https://www.perl.org" distfiles="https://www.cpan.org/src/5.0/perl-${version}.tar.gz @@ -194,6 +195,11 @@ do_configure() { } } +do_check() { + export LD="$CC" + TEST_JOBS=${XBPS_MAKEJOBS} make test +} + post_install() { find ${DESTDIR}/usr/share -type f -exec chmod 644 {} \; find ${DESTDIR}/usr/lib -type f -exec chmod 644 {} \;