libraries/reportlab: Updated for version 2.3

This commit is contained in:
LukenShiro 2010-05-12 17:42:11 +02:00 committed by David Somero
parent a1e674cc2c
commit bb4243ee77
2 changed files with 13 additions and 14 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for reportlab # Slackware build script for reportlab
# Copyright 2007-8 LukenShiro <lukenshiro@ngi.it> # Copyright 2007-2009 LukenShiro <lukenshiro@ngi.it>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -22,9 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=reportlab PRGNAM=reportlab
VERSION=2.2 VERSION=${VERSION:-2.3}
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -40,15 +39,15 @@ SRC_VERSION=$(echo $VERSION | tr . _)
# directory for python packages # directory for python packages
PYTHONDIR=$(python -c 'import sys, os; print os.path.join("/usr/lib", "python%s" % sys.version[:3], "site-packages")') PYTHONDIR=$(python -c 'import sys, os; print os.path.join("/usr/lib", "python%s" % sys.version[:3], "site-packages")')
DOCFILES="CHANGES.txt LICENSE.txt README.txt docs/*.pdf" DOCFILES="CHANGES.txt LICENSE.txt README.txt docs/*.pdf"
OTHERPYFILES="demos tools" # tests removed OTHERPYFILES="demos tools tests" # tests restored
set -e set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf ${PRGNAM}_${SRC_VERSION} rm -rf ${SRC_PRGNAM}_${SRC_VERSION}
tar xvzf $CWD/${SRC_PRGNAM}_${SRC_VERSION}.tgz || exit 1 tar xvf $CWD/${SRC_PRGNAM}_${SRC_VERSION}.tar.gz || exit 1
cd ${SRC_PRGNAM}_${SRC_VERSION}/ cd ${SRC_PRGNAM}_${SRC_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 .
@ -65,11 +64,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION/ mv $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Copy demos and tools directories into python package's home # Move demos, tests and tools directories into python package's home
# BTW scripts in tests are partially broken (they need PYTHONPATH variable # and remove duplicated file
# to be set, and have some other flaws), so I don't include them anymore.
mkdir -p $PKG/$PYTHONDIR/$PRGNAM/ mkdir -p $PKG/$PYTHONDIR/$PRGNAM/
cp -R $OTHERPYFILES $PKG/$PYTHONDIR/$PRGNAM mv $OTHERPYFILES $PKG/$PYTHONDIR/$PRGNAM
rm -f $PKG/$PYTHONDIR/$PRGNAM/tools/docco/*.pdf
cd $TMP/${SRC_PRGNAM}_${SRC_VERSION} cd $TMP/${SRC_PRGNAM}_${SRC_VERSION}
python setup.py build || exit 1 python setup.py build || exit 1

View file

@ -1,8 +1,8 @@
PRGNAM="reportlab" PRGNAM="reportlab"
VERSION="2.2" VERSION="2.3"
HOMEPAGE="http://www.reportlab.org/" HOMEPAGE="http://www.reportlab.org/"
DOWNLOAD="http://www.reportlab.org/ftp/ReportLab_2_2.tgz" DOWNLOAD="http://www.reportlab.org/ftp/ReportLab_2_3.tar.gz"
MD5SUM="46d0e2dd6c112e7c989fe93b993801fb" MD5SUM="057b846bd3b7b2c3498bf14f6a523632"
MAINTAINER="LukenShiro" MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it" EMAIL="lukenshiro@ngi.it"
APPROVED="rworkman" APPROVED="dsomero"