From 000ddf7ba3f8799ac46fa85e172e61c4ddbf3445 Mon Sep 17 00:00:00 2001 From: LukenShiro Date: Sat, 29 Dec 2012 11:30:54 +0100 Subject: libraries/reportlab: Updated for version 2.6 (Fixed some fonts search paths --ponce) Signed-off-by: Matteo Bernardini --- libraries/reportlab/reportlab.SlackBuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'libraries/reportlab/reportlab.SlackBuild') diff --git a/libraries/reportlab/reportlab.SlackBuild b/libraries/reportlab/reportlab.SlackBuild index 2b8c8a8ace97..9a9bbe44e828 100644 --- a/libraries/reportlab/reportlab.SlackBuild +++ b/libraries/reportlab/reportlab.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for reportlab -# Copyright 2007-2010 LukenShiro +# Copyright 2007-2013 LukenShiro, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ # Modified by SlackBuilds.org PRGNAM=reportlab -VERSION=${VERSION:-2.5} +VERSION=${VERSION:-2.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -67,7 +67,11 @@ 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 . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; # Generate pdf documentation ( cd docs @@ -81,6 +85,13 @@ mkdir -p $PKG/$PYTHONDIR/$PRGNAM/ mv $OTHERPYFILES $PKG/$PYTHONDIR/$PRGNAM rm -f $PKG/$PYTHONDIR/$PRGNAM/tools/docco/*.pdf +# Fix some fonts search paths +sed -i \ + -e "s|usr/share/fonts/truetype|usr/share/fonts/TTF|" \ + -e "s|usr/local/Acrobat9|opt/Adobe/Reader9|" \ + -e "s|%(HOME)s/fonts|%(HOME)s/.fonts|" \ + src/reportlab/rl_config.py || exit 1 + python setup.py install --root=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ -- cgit v1.2.3