aboutsummaryrefslogtreecommitdiff
path: root/network/pyzor/pyzor.SlackBuild
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2012-12-28 19:40:55 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-28 19:41:21 +0100
commit85d946e29130f94e9d0fa5a2bbcff8b6adbb6891 (patch)
treeb6a9bfbd5dbed5057d5c952fde7033b0847d2b14 /network/pyzor/pyzor.SlackBuild
parent0ef8e082daca99c23d3cc390994030d05f7e67e0 (diff)
network/pyzor: Added patch for better compatibility with python 2.7.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/pyzor/pyzor.SlackBuild')
-rw-r--r--network/pyzor/pyzor.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/network/pyzor/pyzor.SlackBuild b/network/pyzor/pyzor.SlackBuild
index a7a54eb7d0ecf..b478931ba12ff 100644
--- a/network/pyzor/pyzor.SlackBuild
+++ b/network/pyzor/pyzor.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pyzor
-# Copyright 2009 LukenShiro <lukenshiro@ngi.it>
+# Copyright 2009-2013 LukenShiro <lukenshiro@ngi.it>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,9 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Thanks to Carlos Xavier for a patch with better compatibility against Python 2.7
+
PRGNAM=pyzor
VERSION=${VERSION:-0.5.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -54,7 +56,13 @@ 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 {} \;
+
+patch -p1 < $CWD/better-py27-compat.patch
# Avoid /usr/share/doc html file's installation
sed -r -i "s|share/doc/pyzor|doc/pyzor-$VERSION|g" setup.py