libraries/reportlab: Updated for version 2.5.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
LukenShiro 2010-10-20 00:04:07 -05:00 committed by Erik Hanson
parent 9ae4c97c06
commit c780c2dc24
3 changed files with 13 additions and 20 deletions

View file

@ -25,16 +25,14 @@
# Modified by SlackBuilds.org # Modified by SlackBuilds.org
PRGNAM=reportlab PRGNAM=reportlab
VERSION=${VERSION:-2.4} VERSION=${VERSION:-2.5}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -44,9 +42,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
SRC_PRGNAM=ReportLab
SRC_VERSION=$(echo $VERSION | tr . _)
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
@ -54,7 +49,6 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
@ -69,16 +63,16 @@ set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf ${SRC_PRGNAM}_${SRC_VERSION} rm -rf $PRGNAM-$VERSION
tar xvf $CWD/${SRC_PRGNAM}_${SRC_VERSION}.tar.gz || exit 1 tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd ${SRC_PRGNAM}_${SRC_VERSION}/ cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . chmod -R u+w,go+r-w,a-s .
# Generate pdf documentation # Generate pdf documentation
( cd docs ( cd docs
# workaround due to dependency loop if reportlab isn't previously installed # 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 # 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 mv $OTHERPYFILES $PKG/$PYTHONDIR/$PRGNAM
rm -f $PKG/$PYTHONDIR/$PRGNAM/tools/docco/*.pdf rm -f $PKG/$PYTHONDIR/$PRGNAM/tools/docco/*.pdf
cd $TMP/${SRC_PRGNAM}_${SRC_VERSION} python setup.py install --root=$PKG
python setup.py install --root=$PKG || exit 1
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View file

@ -1,10 +1,10 @@
PRGNAM="reportlab" PRGNAM="reportlab"
VERSION="2.4" VERSION="2.5"
HOMEPAGE="http://www.reportlab.com/software/opensource/rl-toolkit/" HOMEPAGE="http://www.reportlab.com/software/opensource/rl-toolkit/"
DOWNLOAD="http://www.reportlab.com/ftp/ReportLab_2_4.tar.gz" DOWNLOAD="http://www.reportlab.com/ftp/reportlab-2.5.tar.gz"
MD5SUM="e6dc4b0fbfb6814f7777e5960774cb5d" MD5SUM="cdf8b87a6cf1501de1b0a8d341a217d3"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="LukenShiro" MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it" EMAIL="lukenshiro@ngi.it"
APPROVED="dsomero" APPROVED="rworkman"

View file

@ -13,7 +13,7 @@ reportlab: PDF generating solution, suitable for web publishers, developers
reportlab: or creative design professionals who need to quickly and easily reportlab: or creative design professionals who need to quickly and easily
reportlab: create or automate complex (even data-driven) documents. reportlab: create or automate complex (even data-driven) documents.
reportlab: It is released by ReportLab Inc., under BSD license. reportlab: It is released by ReportLab Inc., under BSD license.
reportlab: reportlab:
reportlab: Homepage: http://www.reportlab.org reportlab: Homepage: http://www.reportlab.org
reportlab: reportlab:
reportlab: reportlab: