diff options
author | LukenShiro <lukenshiro@ngi.it> | 2012-12-29 11:30:54 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-29 11:31:15 +0100 |
commit | 000ddf7ba3f8799ac46fa85e172e61c4ddbf3445 (patch) | |
tree | 5716edbfd155f89c9a62828e8da402f73ea58d94 /libraries/reportlab/reportlab.SlackBuild | |
parent | 145666a583e9bd016ebc9eca944a452202d3c8b3 (diff) | |
download | slackbuilds-000ddf7ba3f8799ac46fa85e172e61c4ddbf3445.tar.gz |
libraries/reportlab: Updated for version 2.6
(Fixed some fonts search paths --ponce)
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
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 \ |