mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/pytables: Updated for version 2.1.1
This commit is contained in:
parent
d9056de419
commit
ba8f4565d0
2 changed files with 24 additions and 14 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for pytables
|
||||
|
||||
# Copyright 2007-8 LukenShiro <lukenshiro@ngi.it>
|
||||
# Copyright 2007-2009 LukenShiro <lukenshiro@ngi.it>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,7 +23,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=pytables
|
||||
VERSION=${VERSION:-2.0.4}
|
||||
VERSION=${VERSION:-2.1.1}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
@ -33,15 +33,20 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
DOCFILES="RELEASE_NOTES.txt LICENSES/ MIGRATING_TO_2.x.txt THANKS ANNOUNCE.txt \
|
||||
LICENSE.txt PKG-INFO TODO.txt README.txt"
|
||||
SRC_PRGNAM=tables
|
||||
DOCFILES="RELEASE_NOTES.txt LICENSES/ MIGRATING_TO_2.x.txt THANKS \
|
||||
ANNOUNCE.txt LICENSE.txt PKG-INFO README.txt doc/html doc/scripts \
|
||||
doc/text doc/usersguide.pdf"
|
||||
|
||||
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"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -49,26 +54,31 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
rm -rf $SRC_PRGNAM-$VERSION
|
||||
tar xvf $CWD/$SRC_PRGNAM-$VERSION.tar.gz
|
||||
cd $SRC_PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# For now Pyrex extensions are not automatically re-built, because
|
||||
# Slackware pyrex is not yet at required version (>=0.9.8.4).
|
||||
#CFLAGS=$SLKCFLAGS \
|
||||
python setup.py build
|
||||
python setup.py install --prefix=/usr --root=$PKG
|
||||
|
||||
# Copy documentation, examples, contrib, and bench files
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a doc/{html,scripts,text,usersguide.pdf} $PKG/usr/doc/$PRGNAM-$VERSION/
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/usr/share/$PRGNAM/
|
||||
cp -a examples contrib bench $PKG/usr/share/$PRGNAM/
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="pytables"
|
||||
VERSION="2.0.4"
|
||||
VERSION="2.1.1"
|
||||
HOMEPAGE="http://www.pytables.org/moin"
|
||||
DOWNLOAD="http://www.pytables.org/download/stable/pytables-2.0.4.tar.gz"
|
||||
MD5SUM="e9892962256d28c898ea0c985e60c09e"
|
||||
DOWNLOAD="http://www.pytables.org/download/pytables-2.1.1/tables-2.1.1.tar.gz"
|
||||
MD5SUM="fce2100e655e91849b3d73f22274b0c4"
|
||||
MAINTAINER="LukenShiro"
|
||||
EMAIL="lukenshiro@ngi.it"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="dsomero"
|
||||
|
|
Loading…
Reference in a new issue