summaryrefslogtreecommitdiff
path: root/development/pyparsing/pyparsing.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/pyparsing/pyparsing.SlackBuild')
-rw-r--r--development/pyparsing/pyparsing.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/development/pyparsing/pyparsing.SlackBuild b/development/pyparsing/pyparsing.SlackBuild
index ee7db34c06..973324c493 100644
--- a/development/pyparsing/pyparsing.SlackBuild
+++ b/development/pyparsing/pyparsing.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pyparsing
-# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pyparsing
-VERSION=1.5.1
+VERSION=1.5.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -50,12 +50,17 @@ 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 {} \;
-CFLAGS="$SLKCFLAGS" \
-python setup.py bdist
+# disabling pyparsing for python3
+sed -i "s|\"pyparsing\", \"pyparsing_py3\"|\"pyparsing\"|" \
+ setup.py
-tar xzf dist/$PRGNAM-$VERSION.linux-i686.tar.gz -C $PKG
+python setup.py install --root=$PKG
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : \
| xargs strip --strip-unneeded 2> /dev/null || true