aboutsummaryrefslogtreecommitdiff
path: root/python/Pygments/Pygments.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/Pygments/Pygments.SlackBuild')
-rw-r--r--python/Pygments/Pygments.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/Pygments/Pygments.SlackBuild b/python/Pygments/Pygments.SlackBuild
index 45a4d1b4d71e3..793b64b80de9f 100644
--- a/python/Pygments/Pygments.SlackBuild
+++ b/python/Pygments/Pygments.SlackBuild
@@ -24,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Pygments
-VERSION=${VERSION:-2.0.2}
+VERSION=${VERSION:-2.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -62,6 +62,11 @@ find -L . \
python setup.py install --prefix=/usr --root=$PKG
+# Python 3 support.
+if $(python3 -c 'import sys' 2>/dev/null); then
+ python3 setup.py install --root=$PKG
+fi
+
mkdir -p $PKG/usr/man/man1
cp -a doc/pygmentize.1 $PKG/usr/man/man1
# Adapting to Slackware's directory layout