ruby/rubygem-parser: updated for version 3.2.2.4.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2024-01-01 12:34:50 +09:00 committed by Willy Sudiarto Raharjo
parent 3707d9845d
commit 34fcc3b24a
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 6 additions and 22 deletions

View file

@ -3,6 +3,7 @@
# Slackware build script for rubygem-parser
# Copyright 2018-2021 Andrew Clemons, Wellington New Zealand
# Copyright 2024 Andrew Clemons, Tokyo Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rubygem-parser
VERSION=${VERSION:-3.0.2.0}
VERSION=${VERSION:-3.2.2.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -40,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -52,20 +50,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
@ -115,7 +99,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
tar -x -O --file=$CWD/$SRCNAM-$VERSION.gem data.tar.gz \
| tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- \
| tar -xz -C $PKG/usr/doc/$PRGNAM-$VERSION --file=- --no-same-owner \
LICENSE.txt
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,8 +1,8 @@
PRGNAM="rubygem-parser"
VERSION="3.0.2.0"
VERSION="3.2.2.4"
HOMEPAGE="https://github.com/whitequark/parser"
DOWNLOAD="https://rubygems.org/downloads/parser-3.0.2.0.gem"
MD5SUM="a63cf411d1bea736d1959d2ede7fbc4e"
DOWNLOAD="https://rubygems.org/downloads/parser-3.2.2.4.gem"
MD5SUM="50b812e026dfa653609ca61181f79209"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="rubygem-ast"