diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-05-06 07:27:55 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-05-06 07:28:15 +0000 |
commit | 8e4b6e3657cf4be9ca3c2028f2ca5f06baf034b3 (patch) | |
tree | 31ebeeb7ec0f90899dcb8321e3fb0703415d63c4 /main | |
parent | 1f88f47a7730e0cff88e91f728d9ce6f9632bace (diff) | |
download | aports-8e4b6e3657cf4be9ca3c2028f2ca5f06baf034b3.tar.bz2 aports-8e4b6e3657cf4be9ca3c2028f2ca5f06baf034b3.tar.xz |
main/perl-yaml: disable check(), modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-yaml/APKBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/main/perl-yaml/APKBUILD b/main/perl-yaml/APKBUILD index 2edc8ccca6..21c4b76af2 100644 --- a/main/perl-yaml/APKBUILD +++ b/main/perl-yaml/APKBUILD @@ -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 } |