From 40877f0f9ae679304aba76576a31bcdc14844d10 Mon Sep 17 00:00:00 2001 From: Donald Cooley Date: Sat, 21 Jan 2017 12:07:41 +0000 Subject: perl/perl-JSON-XS: Updated for version 3.03. Signed-off-by: David Spencer --- perl/perl-JSON-XS/README | 6 +++--- perl/perl-JSON-XS/perl-JSON-XS.SlackBuild | 15 +++++++++------ perl/perl-JSON-XS/perl-JSON-XS.info | 10 +++++----- perl/perl-JSON-XS/slack-desc | 2 +- 4 files changed, 18 insertions(+), 15 deletions(-) (limited to 'perl') diff --git a/perl/perl-JSON-XS/README b/perl/perl-JSON-XS/README index fd27ddb5ad..c6b0c00068 100644 --- a/perl/perl-JSON-XS/README +++ b/perl/perl-JSON-XS/README @@ -1,3 +1,3 @@ -This module converts Perl data structures to JSON and vice versa. -Its primary goal is to be correct and its secondary goal is to be -fast. To reach the latter goal it was written in C. \ No newline at end of file +This module converts Perl data structures to JSON and vice versa. Its +primary goal is to be correct and its secondary goal is to be fast. To +reach the latter goal it was written in C. diff --git a/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild b/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild index 1222482b15..0c6730352e 100644 --- a/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild +++ b/perl/perl-JSON-XS/perl-JSON-XS.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for perl-JSON-XS # Copyright 2013 Donald Cooley La Porte, IN USA +# Copyright 2017 Donald Cooley South Haven, IN USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=perl-JSON-XS -VERSION=${VERSION:-2.34} +VERSION=${VERSION:-3.03} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -31,7 +32,7 @@ SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -42,8 +43,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -56,7 +57,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -64,6 +65,7 @@ cd $TMP rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -71,6 +73,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +export PERL_MM_USE_DEFAULT=1 perl Makefile.PL \ PREFIX=/usr \ INSTALLDIRS=vendor \ @@ -92,7 +95,7 @@ find $PKG -depth -type d -empty -delete || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING README \ + COPYING README Changes \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/perl/perl-JSON-XS/perl-JSON-XS.info b/perl/perl-JSON-XS/perl-JSON-XS.info index 690b28b19b..b43ffbfdf2 100644 --- a/perl/perl-JSON-XS/perl-JSON-XS.info +++ b/perl/perl-JSON-XS/perl-JSON-XS.info @@ -1,10 +1,10 @@ PRGNAM="perl-JSON-XS" -VERSION="2.34" +VERSION="3.03" HOMEPAGE="https://metacpan.org/release/JSON-XS" -DOWNLOAD="http://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-2.34.tar.gz" -MD5SUM="dda3c03335665cdeff91c37a269b833b" +DOWNLOAD="http://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-3.03.tar.gz" +MD5SUM="75c5afccb8d5d33be23ec353e3410aca" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="perl-common-sense perl-JSON" +REQUIRES="perl-Canary-Stability perl-Types-Serialiser" MAINTAINER="Donald Cooley" -EMAIL="dfc@warpmail.net" +EMAIL="chytraeu@sdf.org" diff --git a/perl/perl-JSON-XS/slack-desc b/perl/perl-JSON-XS/slack-desc index 7c6a7636c2..676c690b37 100644 --- a/perl/perl-JSON-XS/slack-desc +++ b/perl/perl-JSON-XS/slack-desc @@ -16,4 +16,4 @@ perl-JSON-XS: perl-JSON-XS: perl-JSON-XS: perl-JSON-XS: -perl-JSON-XS: +perl-JSON-XS: https://metacpan.org/release/JSON-XS -- cgit v1.2.3