diff options
Diffstat (limited to 'libraries/reportlab/reportlab.SlackBuild')
-rw-r--r-- | libraries/reportlab/reportlab.SlackBuild | 19 |
1 files changed, 9 insertions, 10 deletions
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 <lukenshiro@ngi.it> +# Copyright 2007-2009 LukenShiro <lukenshiro@ngi.it> # 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 |