summaryrefslogtreecommitdiff
path: root/python/cssselect/cssselect.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/cssselect/cssselect.SlackBuild')
-rw-r--r--python/cssselect/cssselect.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/python/cssselect/cssselect.SlackBuild b/python/cssselect/cssselect.SlackBuild
index 22725a4746..c7ef13b66c 100644
--- a/python/cssselect/cssselect.SlackBuild
+++ b/python/cssselect/cssselect.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cssselect
-VERSION=${VERSION:-0.7.1}
+VERSION=${VERSION:-0.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -74,6 +74,13 @@ python setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Install man pages if Sphinx and Pygments are installed.
+if python -c 'import sphinx.pygments_styles' 2>/dev/null; then
+ python setup.py build_sphinx -b man
+ install -D -m 0644 docs/_build/man/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1
+ gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS CHANGES LICENSE PKG-INFO README.rst docs/* \