Browse Source

d/sphinx: Upgraded to sphinx-1.8.5.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
876d6a1077
  1. 1
      d/sphinx/Sphinx-1.8.3.tar.gz.sha256
  2. 1
      d/sphinx/Sphinx-1.8.5.tar.gz.sha256
  3. 33
      d/sphinx/sphinx.SlackBuild

1
d/sphinx/Sphinx-1.8.3.tar.gz.sha256

@ -1 +0,0 @@
c4cb17ba44acffae3d3209646b6baec1e215cad3065e852c68cc569d4df1b9f8 Sphinx-1.8.3.tar.gz

1
d/sphinx/Sphinx-1.8.5.tar.gz.sha256

@ -0,0 +1 @@
c7658aab75c920288a8cf6f09f244c6cfdae30d82d803ac1634d9f223a80ca08 Sphinx-1.8.5.tar.gz

33
d/sphinx/sphinx.SlackBuild

@ -24,16 +24,15 @@
#
# Latest Sphinx sourcecode is available at: <http://sphinx-doc.org/>.
#
# Depends: d/docutils, l/jinja2, l/pygments, l/python-alabaster
# Depends: l/python-babel, l/python-enum34, l/python-imagesize
# Depends: l/python-packaging, l/python-six, l/python-typing
# Depends: l/jinja2, l/pygments, l/python-alabaster, l/python-babel
# Depends: l/python-enum34, l/python-imagesize, l/python-typing
# Depends: l/snowballstemmer, l/sphinxcontrib-websupport
# Source package infos
NAMESRC=${NAMESRC:-Sphinx}
VERSION=${VERSION:-1.8.3}
VERSION=${VERSION:-1.8.5}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/4d/ed/4595274b5c9ce53a768cc0804ef65fd6282c956b93919a969e98d53894e4/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/2a/86/8e1e8400bb6eca5ed960917952600fce90599e1cb0d20ddedd81ba163370/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-sphinx}
@ -72,12 +71,27 @@ 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
for f in sphinx-{apidoc,autogen,build,quickstart} ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-2.7
done
# And now for Python 3
python3 setup.py build
python3 setup.py install --root=$PKG
for f in sphinx-{apidoc,autogen,build,quickstart} ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-3.7
done
# Add default symlinks to the -2.7 executables
for f in sphinx-{apidoc,autogen,build,quickstart} ; do
ln -s $f-2.7 $PKG/usr/bin/$f
done
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS CHANGES CONTRIBUTING.rst EXAMPLES LICENSE PKG-INFO \
install -m 644 AUTHORS CHANGES CONTRIBUTING.rst EXAMPLES LICENSE \
README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
(cd doc
PYTHONPATH=../:$PYTHONPATH make html PYTHON=python
@ -89,15 +103,12 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
docutils
jinja2
pygments
python-alabaster
python-babel
python-enum34
python-imagesize
python-packaging
python-six
python-typing
snowballstemmer
sphinxcontrib-websupport

Loading…
Cancel
Save