diff options
Diffstat (limited to 'python/pypy/pypy.SlackBuild')
-rw-r--r-- | python/pypy/pypy.SlackBuild | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/python/pypy/pypy.SlackBuild b/python/pypy/pypy.SlackBuild index 0e88a2c11c..d54430b2e2 100644 --- a/python/pypy/pypy.SlackBuild +++ b/python/pypy/pypy.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pypy -# Copyright 2012 Audrius Kažukauskas <audrius@neutrino.lt> +# Copyright 2012-2015 Audrius Kažukauskas <audrius@neutrino.lt> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pypy -VERSION=${VERSION:-1.9} +VERSION=${VERSION:-2.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i686 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -59,29 +59,31 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-linux$LIBDIRSUFFIX.tar.bz2 -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$VERSION-linux_$ARCH-portable +tar xvf $CWD/$PRGNAM-$VERSION-linux_$ARCH-portable.tar.bz2 +cd $PRGNAM-$VERSION-linux_$ARCH-portable chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pypy-$VERSION -cp -a \ - bin/pypy include lib-python lib_pypy site-packages \ - $PKG/usr/lib${LIBDIRSUFFIX}/pypy-$VERSION +# Use os.path.realpath to resolve symlink in the path. +sed -i 's/abspath/realpath/' bin/virtualenv-pypy -# Create a symlink to pypy binary. +mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION +cp -a * $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION + +# Create symlinks to pypy executables. mkdir -p $PKG/usr/bin ( cd $PKG/usr/bin - ln -sf ../lib${LIBDIRSUFFIX}/pypy-$VERSION/pypy pypy + ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/pypy pypy + ln -sf ../lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/bin/virtualenv-pypy virtualenv-pypy ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |