libraries/lxml: Updated for version 2.2.4

This commit is contained in:
Larry Hajali 2010-05-13 00:32:20 +02:00 committed by Erik Hanson
parent be43b569ae
commit c7bcbfdd41
4 changed files with 22 additions and 12 deletions

View file

@ -2,4 +2,4 @@ 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.
Optionally Cython and pysetuptools can be used.
Lxml can optionally use Cython and pysetuptools.

View file

@ -3,7 +3,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=lxml
VERSION=${VERSION:-2.2.1}
VERSION=${VERSION:-2.2.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -13,6 +13,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -e
rm -rf $PKG
@ -28,7 +36,7 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
python setup.py install --root=$PKG
CFLAGS="$SLKCFLAGS" python setup.py install --root=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
@ -41,11 +49,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
*.txt doc/licenses/* doc/FAQ.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/version.txt
rm $PKG/usr/doc/$PRGNAM-$VERSION/version.txt
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,10 @@
PRGNAM="lxml"
VERSION="2.2.1"
VERSION="2.2.4"
HOMEPAGE="http://codespeak.net/lxml/"
DOWNLOAD="http://codespeak.net/lxml/lxml-2.2.1.tgz"
MD5SUM="f18b17e4c83edcfc8a8649c498210e20"
DOWNLOAD="http://codespeak.net/lxml/lxml-2.2.4.tgz"
MD5SUM="077841e74ee728e7746b65d8483274be"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="rworkman"
APPROVED="Erik Hanson"

View file

@ -6,12 +6,12 @@
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
lxml: lxml (python bindings for libxml2 and libxslt)
lxml:
lxml: lxml
lxml:
lxml: lxml is a Pythonic binding for the libxml2 and libxslt libraries. It
lxml: is unique in that it combines the speed and feature completeness of
lxml: these libraries with the simplicity of a native Python API.
lxml:
lxml:
lxml: Homepage: http://codespeak.net/lxml/
lxml:
lxml: