python/lxml: Updated for version 3.6.1

Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
This commit is contained in:
Larry Hajali 2016-07-30 10:49:56 -07:00 committed by David Spencer
parent 3bbcfb4e6f
commit 99be0d2903
3 changed files with 18 additions and 13 deletions

View File

@ -2,5 +2,10 @@ lxml is a Pythonic binding for the libxml2 and libxslt libraries.
It is unique in that it combines the speed and feature completeness
of these libraries with the simplicity of a native Python API.
python3 is an optional build dependency.
cssselect and html5lib are optional runtime dependencies.
Optional dependencies: python3, BeautifulSoup and cssselect
BeautifulSoup can be used in place of BeautifulSoup4.
Note: To install python3 bindings pass PYTHON3=yes to the slackbuild.
# PYTHON3=yes ./lxml.SlackBuild

View File

@ -2,7 +2,7 @@
# Slackware build script for lxml
# Copyright 2009-2015 Larry Hajali <larryhaja[at]gmail[dot]com>
# Copyright 2009-2016 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lxml
VERSION=${VERSION:-3.6.0}
VERSION=${VERSION:-3.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -55,9 +55,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
rm -rf $PRGNAM-$PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -68,7 +68,7 @@ find -L . \
python setup.py build --with-unicode-strings
python setup.py install --skip-build --root=$PKG
if $(python3 -c 'import os' 2>/dev/null); then
if [ "${PYTHON3:-no}" == "yes" ]; then
python3 setup.py build --with-unicode-strings
python3 setup.py install --skip-build --root=$PKG
fi
@ -77,7 +77,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt PKG-INFO doc/licenses/* doc/FAQ.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt doc/licenses/* doc/FAQ.txt $PKG/usr/doc/$PRGNAM-$VERSION
rm $PKG/usr/doc/$PRGNAM-$VERSION/version.txt
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -1,10 +1,10 @@
PRGNAM="lxml"
VERSION="3.6.0"
VERSION="3.6.1"
HOMEPAGE="http://lxml.de/"
DOWNLOAD="http://pypi.python.org/packages/source/l/lxml/lxml-3.6.0.tar.gz"
MD5SUM="5957cc384bd6e83934be35c057ec03b6"
DOWNLOAD="https://github.com/lxml/lxml/archive/lxml-3.6.1/lxml-lxml-3.6.1.tar.gz"
MD5SUM="d112d959364a81044a2b15815ab2ba58"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="BeautifulSoup"
REQUIRES="BeautifulSoup4 html5lib"
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"