mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/lxml: Updated for version 2.2.4
This commit is contained in:
parent
be43b569ae
commit
c7bcbfdd41
4 changed files with 22 additions and 12 deletions
|
@ -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
|
It is unique in that it combines the speed and feature completeness
|
||||||
of these libraries with the simplicity of a native Python API.
|
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.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
|
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||||
|
|
||||||
PRGNAM=lxml
|
PRGNAM=lxml
|
||||||
VERSION=${VERSION:-2.2.1}
|
VERSION=${VERSION:-2.2.4}
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -13,6 +13,14 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
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
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
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 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
python setup.py install --root=$PKG
|
CFLAGS="$SLKCFLAGS" python setup.py install --root=$PKG
|
||||||
|
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||||
|
@ -41,11 +49,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a \
|
||||||
*.txt doc/licenses/* doc/FAQ.txt \
|
*.txt doc/licenses/* doc/FAQ.txt \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
$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
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
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}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="lxml"
|
PRGNAM="lxml"
|
||||||
VERSION="2.2.1"
|
VERSION="2.2.4"
|
||||||
HOMEPAGE="http://codespeak.net/lxml/"
|
HOMEPAGE="http://codespeak.net/lxml/"
|
||||||
DOWNLOAD="http://codespeak.net/lxml/lxml-2.2.1.tgz"
|
DOWNLOAD="http://codespeak.net/lxml/lxml-2.2.4.tgz"
|
||||||
MD5SUM="f18b17e4c83edcfc8a8649c498210e20"
|
MD5SUM="077841e74ee728e7746b65d8483274be"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Larry Hajali"
|
MAINTAINER="Larry Hajali"
|
||||||
EMAIL="larryhaja[at]gmail[dot]com"
|
EMAIL="larryhaja[at]gmail[dot]com"
|
||||||
APPROVED="rworkman"
|
APPROVED="Erik Hanson"
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
# leave one space after the ':'.
|
# leave one space after the ':'.
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----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: 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: is unique in that it combines the speed and feature completeness of
|
||||||
lxml: these libraries with the simplicity of a native Python API.
|
lxml: these libraries with the simplicity of a native Python API.
|
||||||
lxml:
|
lxml:
|
||||||
lxml: Homepage: http://codespeak.net/lxml/
|
lxml: Homepage: http://codespeak.net/lxml/
|
||||||
lxml:
|
lxml:
|
||||||
lxml:
|
lxml:
|
||||||
|
|
Loading…
Reference in a new issue