main/perl-yaml: disable check(), modernize APKBUILD

This commit is contained in:
Leonardo Arena 2019-05-06 07:27:55 +00:00
parent 1f88f47a77
commit 8e4b6e3657

View File

@ -4,27 +4,30 @@
pkgname=perl-yaml
_pkgreal=YAML
pkgver=1.28
pkgrel=0
pkgrel=1
pkgdesc="YAML Ain't Markup Language (tm)"
url="http://search.cpan.org/dist/YAML/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-test-yaml"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="perl-test-deep"
checkdepends="perl-test-yaml perl-test-deep"
options="!check" # multiple test dependencies are in community and several packages in main depends on it
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TI/TINITA/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
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
}
@ -35,7 +38,7 @@ check() {
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}