mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/Pygments: Updated for version 2.4.2 and new maintainer.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
This commit is contained in:
parent
91a3a8f9ce
commit
4d5a94a119
3 changed files with 13 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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".
|
||||
|
|
Loading…
Reference in a new issue