From c4b114203682d507bc1ccd1f66d04f5c1a092d14 Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Sun, 19 May 2013 09:12:35 -0400 Subject: python/cssselect: Updated for version 0.8. Signed-off-by: dsomero --- python/cssselect/cssselect.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'python/cssselect/cssselect.SlackBuild') diff --git a/python/cssselect/cssselect.SlackBuild b/python/cssselect/cssselect.SlackBuild index 22725a4746ba3..c7ef13b66c15b 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/* \ -- cgit v1.2.3