mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
python/cssselect: Updated for version 0.8.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
9a9a358883
commit
c4b1142036
3 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,6 @@
|
|||
cssselect parses CSS3 Selectors and translate them to XPath 1.0 expressions.
|
||||
Such expressions can be used in lxml or another XPath engine to find the
|
||||
matching elements in an XML or HTML document.
|
||||
|
||||
Optionally: lxml can be installed for running tests. Sphinx and Pygments
|
||||
can be installed for man pages.
|
||||
|
|
|
@ -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/* \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="cssselect"
|
||||
VERSION="0.7.1"
|
||||
VERSION="0.8"
|
||||
HOMEPAGE="http://packages.python.org/cssselect/"
|
||||
DOWNLOAD="http://pypi.python.org/packages/source/c/cssselect/cssselect-0.7.1.tar.gz"
|
||||
MD5SUM="c6c5e9a2e7ca226ce03f6f67a771379c"
|
||||
DOWNLOAD="http://pypi.python.org/packages/source/c/cssselect/cssselect-0.8.tar.gz"
|
||||
MD5SUM="c4683e050351abcbbd5990b01f5344e2"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="distribute"
|
||||
|
|
Loading…
Reference in a new issue