aboutsummaryrefslogtreecommitdiff
path: root/python/cssselect/cssselect.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2013-05-19 09:12:35 -0400
committerdsomero <xgizzmo@slackbuilds.org>2013-05-19 09:12:35 -0400
commitc4b114203682d507bc1ccd1f66d04f5c1a092d14 (patch)
treee5fb8dc37aebf6bbeefb85e35c085bbc33ffbb55 /python/cssselect/cssselect.SlackBuild
parent9a9a3588839db0e9885590e3f45ea7f2990d9bd8 (diff)
python/cssselect: Updated for version 0.8.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
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 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/* \