From d8c0e5b27afd0fbc7da791fa48905ea99b9ec4bb Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Sun, 5 Nov 2017 12:12:49 +0000 Subject: community/perl-xml-libxml: enable tests again with the upgrade to version 2.0132, all the tests seems to be working fine now --- community/perl-xml-libxml/APKBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'community/perl-xml-libxml') diff --git a/community/perl-xml-libxml/APKBUILD b/community/perl-xml-libxml/APKBUILD index 97594c9bb7..c08e8d2d4f 100644 --- a/community/perl-xml-libxml/APKBUILD +++ b/community/perl-xml-libxml/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-xml-libxml _pkgreal=XML-LibXML pkgver=2.0132 -pkgrel=0 +pkgrel=1 pkgdesc="Interface to Gnome libxml2 xml parsing and DOM library" url="http://search.cpan.org/dist/XML-LibXML/" arch="all" @@ -16,23 +16,28 @@ makedepends="perl-dev $cpanmakedepends libxml2-dev" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_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 } -- cgit v1.2.3