aboutsummaryrefslogtreecommitdiff
path: root/python/Pygments
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2019-06-07 04:59:24 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-09 05:33:15 +0700
commit4d5a94a119cb3b95132dbb5bd47e8abf69e21e11 (patch)
tree6d0683bad48fb1fea321689bab7b83d50d2bbb5a /python/Pygments
parent91a3a8f9cefc77d4b14a4b391ace7c3d986e3bc4 (diff)
python/Pygments: Updated for version 2.4.2 and new maintainer.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'python/Pygments')
-rw-r--r--python/Pygments/Pygments.SlackBuild24
-rw-r--r--python/Pygments/Pygments.info12
-rw-r--r--python/Pygments/README3
3 files changed, 13 insertions, 26 deletions
diff --git a/python/Pygments/Pygments.SlackBuild b/python/Pygments/Pygments.SlackBuild
index 793b64b80de9f..8b0b75f6b5aba 100644
--- a/python/Pygments/Pygments.SlackBuild
+++ b/python/Pygments/Pygments.SlackBuild
@@ -4,6 +4,7 @@
# Copyright 2009 Grissiom <chaos.proton@gmail.com>
# Copyright 2009-2015 LukenShiro, Italy
+# Copyright 2017-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Pygments
-VERSION=${VERSION:-2.1.3}
+VERSION=${VERSION:-2.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,10 +42,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCFILES="LICENSE TODO AUTHORS CHANGES README.rst"
-# html documentation is not built by default
-HTML=${HTML:-0}
-
set -e
rm -rf $PKG
@@ -60,12 +57,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-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
+python2 setup.py install --prefix=/usr --root=$PKG
+python3 setup.py install --prefix=/usr --root=$PKG
mkdir -p $PKG/usr/man/man1
cp -a doc/pygmentize.1 $PKG/usr/man/man1
@@ -76,12 +69,9 @@ sed -i "s|share/doc/python-pygments|doc/${PRGNAM}-${VERSION}|" \
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-# building html documentation
-case "$HTML" in
- 0) ;;
- *) cd doc ; make html && cp -R _build/html $PKG/usr/doc/$PRGNAM-$VERSION ; cd - ;;
-esac
-cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ LICENSE TODO AUTHORS CHANGES README.rst \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/Pygments/Pygments.info b/python/Pygments/Pygments.info
index 0f97fb133ad87..db6871330338b 100644
--- a/python/Pygments/Pygments.info
+++ b/python/Pygments/Pygments.info
@@ -1,10 +1,10 @@
PRGNAM="Pygments"
-VERSION="2.1.3"
+VERSION="2.4.2"
HOMEPAGE="http://pygments.org/"
-DOWNLOAD="https://pypi.python.org/packages/b8/67/ab177979be1c81bc99c8d0592ef22d547e70bb4c6815c383286ed5dec504/Pygments-2.1.3.tar.gz"
-MD5SUM="ed3fba2467c8afcda4d317e4ef2c6150"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-2.4.2.tar.gz"
+MD5SUM="5ecc3fbb2a783e917b369271fc0e6cd1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
-MAINTAINER="LukenShiro"
-EMAIL="lukenshiro@ngi.it"
+REQUIRES="python3"
+MAINTAINER="Benjamin Trigona-Harany"
+EMAIL="slackbuilds@jaxartes.net"
diff --git a/python/Pygments/README b/python/Pygments/README
index 4e7391ba6ff28..975ce911d50a7 100644
--- a/python/Pygments/README
+++ b/python/Pygments/README
@@ -9,6 +9,3 @@ Highlights are:
* A number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI
sequences.
* It is usable as a command-line tool and as a library.
-
-In order to build pygments' html documentation files you must install Sphinx
-and you need to use "HTML=1 ./Pygments.SlackBuild".