|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2010 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2010,2012 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -24,11 +24,11 @@
|
|
|
|
|
# |
|
|
|
|
# Latest pytables sourcecode is available at: <http://www.pytables.org/>. |
|
|
|
|
# |
|
|
|
|
# Depends: l/numpy, l/hdf5 |
|
|
|
|
# Depends: l/hdf5, l/numexpr, d/cython |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-tables} |
|
|
|
|
VERSION=${VERSION:-2.1.2} |
|
|
|
|
VERSION=${VERSION:-2.4.0} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-http://downloads.sourceforge.net/pytables/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -85,7 +85,9 @@ tar xf $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
CPPFLAGS=-I/usr/include/hdf5 \ |
|
|
|
|
python setup.py build |
|
|
|
|
CPPFLAGS=-I/usr/include/hdf5 \ |
|
|
|
|
python setup.py install --root=$PKG |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
@ -95,9 +97,9 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
install -m 644 ANNOUNCE.txt LICENSE.txt LICENSES/* PKG-INFO README.txt \ |
|
|
|
|
RELEASE_NOTES.txt THANKS VERSION doc/usersguide.pdf \ |
|
|
|
|
RELEASE_NOTES.txt THANKS VERSION doc/usersguide-$VERSION.pdf \ |
|
|
|
|
$PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
cp -r examples doc/html doc/scripts doc/text $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
cp -r examples doc/html doc/scripts $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|