mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
python/pypy3: Updated for version 7.3.11, new maintainer.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
56f7428cfb
commit
9326726d68
3 changed files with 20 additions and 21 deletions
|
@ -3,7 +3,7 @@ has several advantages and distinctive features: speed (Just-in-Time
|
|||
compiler), lower memory usage for large programs, sandboxing and
|
||||
stackless mode.
|
||||
|
||||
NOTE: this script is for PyPy which implements Python 3.
|
||||
NOTE: this script is for PyPy implementation of Python 3.9
|
||||
|
||||
This is a repackaging of the portable binaries from
|
||||
<https://github.com/squeaky-pl/portable-pypy>.
|
||||
This is a repackaging of the binaries from
|
||||
https://www.pypy.org/download.html
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
# Slackware build script for pypy3
|
||||
|
||||
# Copyright 2022 Yth | Pont-en-Royans, France | yth@ythogtha.org
|
||||
# Copyright 2015-2017 Audrius Kažukauskas <audrius@neutrino.lt>
|
||||
# All rights reserved.
|
||||
#
|
||||
|
@ -25,9 +26,8 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=pypy3
|
||||
VERSION=${VERSION:-5.9_beta}
|
||||
SRCNAM=pypy3.5
|
||||
SRCVER=$(echo $VERSION | tr '_' '-')
|
||||
VERSION=${VERSION:-7.3.11}
|
||||
SRCNAM=pypy3.9
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -52,6 +52,7 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PARCH="32"
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
|
@ -61,6 +62,7 @@ elif [ "$ARCH" = "i686" ]; then
|
|||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
PARCH="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
|
@ -71,9 +73,9 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $SRCNAM-$SRCVER-linux_$ARCH-portable
|
||||
tar xvf $CWD/$SRCNAM-$SRCVER-linux_$ARCH-portable.tar.bz2
|
||||
cd $SRCNAM-$SRCVER-linux_$ARCH-portable
|
||||
rm -rf $SRCNAM-v$VERSION-linux$PARCH
|
||||
tar xvf $CWD/$SRCNAM-v$VERSION-linux$PARCH.tar.bz2
|
||||
cd $SRCNAM-v$VERSION-linux$PARCH
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
@ -81,17 +83,14 @@ 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 {} \;
|
||||
|
||||
# Use os.path.realpath to resolve symlink in the path.
|
||||
sed -i 's/abspath/realpath/' bin/virtualenv-pypy
|
||||
|
||||
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
|
||||
cp -a * $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
|
||||
|
||||
# Create symlinks to pypy3 executables.
|
||||
mkdir -p $PKG/usr/bin
|
||||
( cd $PKG/usr/bin
|
||||
ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/pypy pypy3
|
||||
ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/virtualenv-pypy virtualenv-pypy3
|
||||
ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/pypy3 pypy3
|
||||
ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/pypy3.9 pypy3.9
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="pypy3"
|
||||
VERSION="5.9_beta"
|
||||
VERSION="7.3.11"
|
||||
HOMEPAGE="https://www.pypy.org/"
|
||||
DOWNLOAD="UNSUPPORTED"
|
||||
MD5SUM=""
|
||||
DOWNLOAD_x86_64="https://slackware.uk/sbosrcarch/by-md5/9/0/90223a9437ddd94ac4fda6836cc33e38/pypy3.5-5.9-beta-linux_x86_64-portable.tar.bz2"
|
||||
MD5SUM_x86_64="90223a9437ddd94ac4fda6836cc33e38"
|
||||
DOWNLOAD="https://downloads.python.org/pypy/pypy3.9-v7.3.11-linux32.tar.bz2"
|
||||
MD5SUM="1738069b38fa9d20cc996dc5304dfe09"
|
||||
DOWNLOAD_x86_64="https://downloads.python.org/pypy/pypy3.9-v7.3.11-linux64.tar.bz2"
|
||||
MD5SUM_x86_64="086a8fb85f9946ef897d298cbb3c4740"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Audrius Kažukauskas"
|
||||
EMAIL="audrius@neutrino.lt"
|
||||
MAINTAINER="Yth - Arnaud"
|
||||
EMAIL="yth@ythogtha.org"
|
||||
|
|
Loading…
Reference in a new issue