aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-json-xs
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-02 01:51:36 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-02 01:51:36 +0000
commit79b876b023c529120736a447dbc90e8712b494ea (patch)
tree8b2d77c9427569dc997013216166aa6291fdcec0 /testing/perl-json-xs
parenteb3e58750c60f670f789e56da19c4f134dca08bb (diff)
downloadaports-79b876b023c529120736a447dbc90e8712b494ea.tar.bz2
aports-79b876b023c529120736a447dbc90e8712b494ea.tar.xz
testing/perl-json-xs: upgrade to 3.04 and modernize
Diffstat (limited to 'testing/perl-json-xs')
-rw-r--r--testing/perl-json-xs/APKBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/testing/perl-json-xs/APKBUILD b/testing/perl-json-xs/APKBUILD
index 098452a3b6..c881e9b4d6 100644
--- a/testing/perl-json-xs/APKBUILD
+++ b/testing/perl-json-xs/APKBUILD
@@ -3,14 +3,14 @@
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=perl-json-xs
_pkgreal=JSON-XS
-pkgver=3.03
+pkgver=3.04
pkgrel=0
pkgdesc="Perl extension to converts data structures to JSON and vice versa"
url="http://search.cpan.org/dist/JSON-XS/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-types-serialiser perl-common-sense perl-canary-stability"
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
@@ -19,6 +19,8 @@ source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_pkgreal-$pkgver.t
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
+ default_prepare
+
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
@@ -27,13 +29,18 @@ prepare() {
build() {
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
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="757dc3bff01860d348e3bbb0c68ddef6a80e25f74b812b1969e57f4284724fc92828014c059a91c232ba100b5c96d41257272900db48395b484d6eeb540c5db8 JSON-XS-3.03.tar.gz"
+sha512sums="69c2e199385b5b5e331d905b64805304de80e1a3b393acaf7dce21c45254b1f23f1a83b246dcd3a80c2cfdadaf8ce3634ee587c469629cb69106f0c2239c73db JSON-XS-3.04.tar.gz"