diff options
Diffstat (limited to 'libraries/reportlab/reportlab.SlackBuild')
-rw-r--r-- | libraries/reportlab/reportlab.SlackBuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libraries/reportlab/reportlab.SlackBuild b/libraries/reportlab/reportlab.SlackBuild index 2b8c8a8ace..9a9bbe44e8 100644 --- a/libraries/reportlab/reportlab.SlackBuild +++ b/libraries/reportlab/reportlab.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for reportlab -# Copyright 2007-2010 LukenShiro <lukenshiro@ngi.it> +# 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 \ |