summaryrefslogtreecommitdiff
path: root/network/pyzor/pyzor.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/pyzor/pyzor.SlackBuild')
-rw-r--r--network/pyzor/pyzor.SlackBuild25
1 files changed, 10 insertions, 15 deletions
diff --git a/network/pyzor/pyzor.SlackBuild b/network/pyzor/pyzor.SlackBuild
index 6637021732..6cb6dd8aae 100644
--- a/network/pyzor/pyzor.SlackBuild
+++ b/network/pyzor/pyzor.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pyzor
-# Copyright 2009-2013 LukenShiro <lukenshiro@ngi.it>
+# Copyright 2009-2014 LukenShiro, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,8 @@
# Thanks to Carlos Xavier for a patch with better compatibility against Python 2.7
PRGNAM=pyzor
-VERSION=${VERSION:-0.5.0}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-0.8.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -42,8 +42,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# docs/usage.html directly installed
-DOCFILES="COPYING INSTALL NEWS PKG-INFO README THANKS UPGRADING"
+DOCFILES="COPYING INSTALL PKG-INFO README.rst THANKS requirements.txt config/"
set -e
@@ -55,21 +54,17 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-patch -p1 < $CWD/better-py27-compat.patch
+# better py27 compatibility
+sed -s "s|/usr/bin/env python|/usr/bin/python -Wignore::DeprecationWarning|g" \
+ scripts/pyzor*
-# Avoid /usr/share/doc html file's installation
-sed -r -i "s|share/doc/pyzor|doc/pyzor-$VERSION|g" setup.py
python setup.py install --prefix=/usr --root=$PKG
-mkdir -p $PKG/usr/man/man1
-cp -a docs/pyzor*.1 $PKG/usr/man/man1
-find $PKG/usr/man -type f -exec gzip -9 {} \; 2>/dev/null || true
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild