Browse Source

d/sphinx: Upgraded to sphinx-1.8.3.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
d0b4abba27
  1. 1
      d/sphinx/Sphinx-1.4.4.tar.gz.sha1
  2. 1
      d/sphinx/Sphinx-1.8.3.tar.gz.sha256
  3. 41
      d/sphinx/sphinx.SlackBuild

1
d/sphinx/Sphinx-1.4.4.tar.gz.sha1

@ -1 +0,0 @@
87ef31c2ce8c556a1644c53d21526eac7ad45f38 Sphinx-1.4.4.tar.gz

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

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

41
d/sphinx/sphinx.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014,2016 Damien Goutte-Gattat
# Copyright (C) 2014,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -22,17 +22,18 @@
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest Sphinx sourcecode is available at: <PROJECT_URL>.
# Latest Sphinx sourcecode is available at: <http://sphinx-doc.org/>.
#
# Depends: d/docutils, l/jinja2, l/pygments, l/snowballstemmmer
# Depends: l/python-babel, l/python-alabaster, l/python-imagesize
# Depends: l/python-six
# 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/snowballstemmer, l/sphinxcontrib-websupport
# Source package infos
NAMESRC=${NAMESRC:-Sphinx}
VERSION=${VERSION:-1.4.4}
VERSION=${VERSION:-1.8.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/20/a2/72f44c84f6c4115e3fef58d36d657ec311d80196eab9fd5ec7bcde76143b/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/4d/ed/4595274b5c9ce53a768cc0804ef65fd6282c956b93919a969e98d53894e4/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-sphinx}
@ -63,7 +64,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Install
@ -76,12 +77,32 @@ python setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS CHANGES EXAMPLES LICENSE PKG-INFO README.rst \
$PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS CHANGES CONTRIBUTING.rst EXAMPLES LICENSE PKG-INFO \
README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
(cd doc
PYTHONPATH=../:$PYTHONPATH make html PYTHON=python
cp -r _build/html $PKG/usr/doc/$NAMEPKG-$VERSION/html
)
# Copy slack-desc file
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
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save