academic/matplotlib: Updated for version 0.98.5.2

This commit is contained in:
Aleksandar Samardzic 2010-05-12 17:36:40 +02:00 committed by Robby Workman
parent 8bbbece820
commit 73af4652af
3 changed files with 13 additions and 21 deletions

View file

@ -5,7 +5,7 @@
# Written by Aleksandar Samardzic <asamardzic@gmail.com>
PRGNAM=matplotlib
VERSION=${VERSION:-0.98.0}
VERSION=${VERSION:-0.98.5.2}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -15,14 +15,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -e
rm -rf $PKG
@ -38,19 +30,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
python setup.py build
python setup.py install --root $PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
install -m 0644 API_CHANGES CHANGELOG INSTALL INTERACTIVE KNOWN_BUGS \
README.txt TODO $PKG/usr/doc/$PRGNAM-$VERSION
install -m 0644 \
CHANGELOG INSTALL INTERACTIVE KNOWN_BUGS README.txt TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="matplotlib"
VERSION="0.98.0"
VERSION="0.98.5.2"
HOMEPAGE="http://matplotlib.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.0.tar.gz"
MD5SUM="4b50915bb3ef983fb695f2270c069862"
DOWNLOAD="http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.5.2.tar.gz"
MD5SUM="3e8210ec8bb71a18962ec8b43688509c"
MAINTAINER="Aleksandar Samardzic"
EMAIL="asamardzic@gmail.com"
APPROVED="rworkman"

View file

@ -6,14 +6,14 @@
# customary to leave one space after the ':'.
|-----handy-ruler--------------------------------------------------|
matplotlib: matplotlib (a Python 2D plotting library)
matplotlib: matplotlib (a Python 2D plotting library)
matplotlib:
matplotlib: Matplotlib is a plotting library for Python which uses
matplotlib: syntax similar to MATLAB. Matplotlib produces publication
matplotlib: quality figures in a variety of hardcopy formats and
matplotlib: interactive environments across platforms.
matplotlib:
matplotlib: Matplotlib home page is: http://matplotlib.sourceforge.net/
matplotlib: Homepage: http://matplotlib.sourceforge.net/
matplotlib:
matplotlib:
matplotlib: