summaryrefslogtreecommitdiff
path: root/libraries/reportlab/reportlab.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2010-10-20 00:04:07 -0500
committerErik Hanson <erik@slackbuilds.org>2010-10-20 10:50:24 -0500
commitc780c2dc24f21ece7093753fa161770a5f2972f9 (patch)
tree47f6fb98bf6096cdd03078c6013bc26f0fad625d /libraries/reportlab/reportlab.SlackBuild
parent9ae4c97c060e7913b3da839fa4be21c3c0f8927b (diff)
downloadslackbuilds-c780c2dc24f21ece7093753fa161770a5f2972f9.tar.gz
libraries/reportlab: Updated for version 2.5.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/reportlab/reportlab.SlackBuild')
-rw-r--r--libraries/reportlab/reportlab.SlackBuild19
1 files changed, 6 insertions, 13 deletions
diff --git a/libraries/reportlab/reportlab.SlackBuild b/libraries/reportlab/reportlab.SlackBuild
index 26b1509fb7..2b8c8a8ace 100644
--- a/libraries/reportlab/reportlab.SlackBuild
+++ b/libraries/reportlab/reportlab.SlackBuild
@@ -25,16 +25,14 @@
# Modified by SlackBuilds.org
PRGNAM=reportlab
-VERSION=${VERSION:-2.4}
+VERSION=${VERSION:-2.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -44,9 +42,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-SRC_PRGNAM=ReportLab
-SRC_VERSION=$(echo $VERSION | tr . _)
-
if [ "$ARCH" = "i486" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
@@ -54,7 +49,6 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
@@ -69,16 +63,16 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${SRC_PRGNAM}_${SRC_VERSION}
-tar xvf $CWD/${SRC_PRGNAM}_${SRC_VERSION}.tar.gz || exit 1
-cd ${SRC_PRGNAM}_${SRC_VERSION}/
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# Generate pdf documentation
( cd docs
# workaround due to dependency loop if reportlab isn't previously installed
- PYTHONPATH=$PYTHONPATH:$TMP/${SRC_PRGNAM}_${SRC_VERSION}/src/ python genAll.py
+ PYTHONPATH=$PYTHONPATH:$TMP/$PRGNAM-$VERSION/src/ python genAll.py
)
# Move demos, tests and tools directories into python package's home
@@ -87,8 +81,7 @@ mkdir -p $PKG/$PYTHONDIR/$PRGNAM/
mv $OTHERPYFILES $PKG/$PYTHONDIR/$PRGNAM
rm -f $PKG/$PYTHONDIR/$PRGNAM/tools/docco/*.pdf
-cd $TMP/${SRC_PRGNAM}_${SRC_VERSION}
-python setup.py install --root=$PKG || exit 1
+python setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true