python/python3-Pygments: Updated for version 2.3.0.

Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
This commit is contained in:
Benjamin Trigona-Harany 2018-11-28 06:28:32 -08:00 committed by Willy Sudiarto Raharjo
parent f9c0cd476c
commit 6ff0bee8f5
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 8 additions and 17 deletions

View file

@ -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".

View file

@ -4,7 +4,7 @@
# Copyright 2009 Grissiom <chaos.proton@gmail.com>
# Copyright 2009-2015 LukenShiro, Italy
# Copyright 2017 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# Copyright 2017-2018 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@
SRCNAM=Pygments
PRGNAM=python3-$SRCNAM
VERSION=${VERSION:-2.2.0}
VERSION=${VERSION:-2.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -43,9 +43,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# html documentation is not built by default
HTML=${HTML:-0}
set -e
rm -rf $PKG
@ -72,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 LICENSE TODO AUTHORS CHANGES README.rst $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

View file

@ -1,8 +1,8 @@
PRGNAM="python3-Pygments"
VERSION="2.2.0"
VERSION="2.3.0"
HOMEPAGE="http://pygments.org/"
DOWNLOAD="https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-2.2.0.tar.gz"
MD5SUM="13037baca42f16917cbd5ad2fab50844"
DOWNLOAD="https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-2.3.0.tar.gz"
MD5SUM="e95ccbb45697f3a40687c4b1c0498409"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3"