diff --git a/libraries/reportlab/reportlab.SlackBuild b/libraries/reportlab/reportlab.SlackBuild index ea36add148..0f1eef1c32 100644 --- a/libraries/reportlab/reportlab.SlackBuild +++ b/libraries/reportlab/reportlab.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for reportlab -# Copyright 2007-8 LukenShiro +# Copyright 2007-2009 LukenShiro # All rights reserved. # # 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 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - PRGNAM=reportlab -VERSION=2.2 +VERSION=${VERSION:-2.3} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,15 +39,15 @@ SRC_VERSION=$(echo $VERSION | tr . _) # directory for python 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" -OTHERPYFILES="demos tools" # tests removed +OTHERPYFILES="demos tools tests" # tests restored set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ${PRGNAM}_${SRC_VERSION} -tar xvzf $CWD/${SRC_PRGNAM}_${SRC_VERSION}.tgz || exit 1 +rm -rf ${SRC_PRGNAM}_${SRC_VERSION} +tar xvf $CWD/${SRC_PRGNAM}_${SRC_VERSION}.tar.gz || exit 1 cd ${SRC_PRGNAM}_${SRC_VERSION}/ chown -R root:root . 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/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# Copy demos and tools directories into python package's home -# BTW scripts in tests are partially broken (they need PYTHONPATH variable -# to be set, and have some other flaws), so I don't include them anymore. +# Move demos, tests and tools directories into python package's home +# and remove duplicated file 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} python setup.py build || exit 1 diff --git a/libraries/reportlab/reportlab.info b/libraries/reportlab/reportlab.info index 7c73aa625e..a3a3900dc6 100644 --- a/libraries/reportlab/reportlab.info +++ b/libraries/reportlab/reportlab.info @@ -1,8 +1,8 @@ PRGNAM="reportlab" -VERSION="2.2" +VERSION="2.3" HOMEPAGE="http://www.reportlab.org/" -DOWNLOAD="http://www.reportlab.org/ftp/ReportLab_2_2.tgz" -MD5SUM="46d0e2dd6c112e7c989fe93b993801fb" +DOWNLOAD="http://www.reportlab.org/ftp/ReportLab_2_3.tar.gz" +MD5SUM="057b846bd3b7b2c3498bf14f6a523632" MAINTAINER="LukenShiro" EMAIL="lukenshiro@ngi.it" -APPROVED="rworkman" +APPROVED="dsomero"