diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-04-28 13:23:58 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-04-28 13:23:58 +0000 |
commit | dc6b09f2555a35ba7f9d35426a911f69d388051a (patch) | |
tree | 025743f00ebc5e3531d4cccddac7c557d6d88887 /main/perl-yaml-syck | |
parent | 28f639da2016324a629a40064926a8befd8df7f7 (diff) | |
download | aports-dc6b09f2555a35ba7f9d35426a911f69d388051a.tar.bz2 aports-dc6b09f2555a35ba7f9d35426a911f69d388051a.tar.xz |
main/perl-yaml-syck: upgrade to 1.30
Diffstat (limited to 'main/perl-yaml-syck')
-rw-r--r-- | main/perl-yaml-syck/APKBUILD | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/main/perl-yaml-syck/APKBUILD b/main/perl-yaml-syck/APKBUILD index 5867e29eaa..275d040395 100644 --- a/main/perl-yaml-syck/APKBUILD +++ b/main/perl-yaml-syck/APKBUILD @@ -1,47 +1,48 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs <timo.teras@iki.fi> # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=perl-yaml-syck _pkgreal=YAML-Syck -pkgver=1.29 -pkgrel=2 +pkgver=1.30 +pkgrel=0 pkgdesc="Fast, lightweight YAML loader and dumper" url="http://search.cpan.org/dist/YAML-Syck/" arch="all" license="mit" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" +cpancheckdepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_pkgreal-$pkgver.tar.gz - " - -_builddir="$srcdir/$_pkgreal-$pkgver" +source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + default_prepare || return 1 + + 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 && 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 } -md5sums="0f906ae8b3747039b26c29c481cda607 YAML-Syck-1.29.tar.gz" -sha256sums="d3567b3653e610a2a0fd28286ddc7869ccdeba5e6663f9638c22bc17d6cfc939 YAML-Syck-1.29.tar.gz" -sha512sums="5e6326375ab4498cddee9f54d09a6d62569cb3f68dd2015e5ccda38fedb9b3d22b8f07fc3bd2536feedb61c0cc1d86f91640c5bb03374351e341ec5c1495b991 YAML-Syck-1.29.tar.gz" +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="3c38c77589c12652b456ad95120b3223df9e96475a9478692511bf6207ce81bc61204feaa332dbd913d934c41cf5d6515420961b31c20c9fe245373e81ecdda4 YAML-Syck-1.30.tar.gz" |