Browse Source

l/pygments: Upgraded to pygments-2.4.2.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
e87d0e9a6e
  1. 1
      l/pygments/Pygments-2.2.0.tar.gz.sha256
  2. 1
      l/pygments/Pygments-2.4.2.tar.gz.sha256
  3. 16
      l/pygments/pygments.SlackBuild

1
l/pygments/Pygments-2.2.0.tar.gz.sha256

@ -1 +0,0 @@
dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc Pygments-2.2.0.tar.gz

1
l/pygments/Pygments-2.4.2.tar.gz.sha256

@ -0,0 +1 @@
881c4c157e45f30af185c1ffe8d549d48ac9127433f2c380c24b84572ad66297 Pygments-2.4.2.tar.gz

16
l/pygments/pygments.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2011-2013,2016,2018 Damien Goutte-Gattat
# Copyright (C) 2011-2013,2016,2018,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,9 +26,9 @@
# Source package infos
NAMESRC=${NAMESRC:-Pygments}
VERSION=${VERSION:-2.2.0}
VERSION=${VERSION:-2.4.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/7e/ae/26808275fc76bf2832deb10d3a3ed3107bc4de01b85dcccbe525f2cd6d1e/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pygments}
@ -67,8 +67,12 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
mv $PKG/usr/bin/pygmentize $PKG/usr/bin/pygmentize-2.7
python3 setup.py build
python3 setup.py install --root=$PKG
# Let the un-suffixed file be the -3.7 executable
# Install man page
install -D -m 644 doc/pygmentize.1 $PKG/usr/man/man1/pygmentize.1
@ -76,7 +80,7 @@ gzip -9 $PKG/usr/man/man1/pygmentize.1
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS CHANGES LICENSE PKG-INFO TODO README.rst \
install -m 644 AUTHORS CHANGES LICENSE TODO README.rst \
$PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file

Loading…
Cancel
Save