diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2011-11-06 10:29:04 -0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-11-26 09:09:07 -0600 |
commit | 0abc8ee3944b538dd69acc2bc1548bd0a1e5b544 (patch) | |
tree | 0577e976ec51c3a5548c6ad3ff24309a7ff1a5cd /development/Cython/Cython.SlackBuild | |
parent | 851b449f02536a250e74989d9390f9be22504c38 (diff) |
development/Cython: Updated for version 0.15.1 (+new maintainer)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'development/Cython/Cython.SlackBuild')
-rw-r--r-- | development/Cython/Cython.SlackBuild | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/development/Cython/Cython.SlackBuild b/development/Cython/Cython.SlackBuild index 16ab688b46878..1447085c30b6e 100644 --- a/development/Cython/Cython.SlackBuild +++ b/development/Cython/Cython.SlackBuild @@ -1,9 +1,12 @@ #!/bin/sh # Slackware build script for Cython +# Home Page http://www.cython.org/ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> +# New Maintainer - Nishant Limbachia <nishant _AT_ mnspace _DOT_ net> - 11/04/2011 + PRGNAM=Cython -VERSION=${VERSION:-0.14} +VERSION=${VERSION:-0.15.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -20,6 +23,20 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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 @@ -35,6 +52,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +CFLAGS="$SLKCFLAGS" \ python setup.py install --root=$PKG --prefix=/usr find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ |