libraries/PyXML: Updated for version 0.8.4

This commit is contained in:
Alex Lysenka 2010-05-13 00:28:38 +02:00 committed by Robby Workman
parent 38c2097435
commit 3b9343c496
3 changed files with 55 additions and 11 deletions

View file

@ -0,0 +1,42 @@
diff -up PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py.patch PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py
--- PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py.patch 2008-12-24 06:35:27.000000000 +0100
+++ PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2008-12-24 06:35:39.000000000 +0100
@@ -24,8 +24,8 @@ class ParsedAbbreviatedAbsoluteLocationP
self._rel = rel
nt = ParsedNodeTest.ParsedNodeTest('node', '')
ppl = ParsedPredicateList.ParsedPredicateList([])
- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
- self._step = ParsedStep.ParsedStep(as, nt, ppl)
+ as_ = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
+ self._step = ParsedStep.ParsedStep(as_, nt, ppl)
return
def evaluate(self, context):
diff -up PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py.patch PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py
--- PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py.patch 2008-12-24 06:37:27.000000000 +0100
+++ PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2008-12-24 06:37:48.000000000 +0100
@@ -28,8 +28,8 @@ class ParsedAbbreviatedRelativeLocationP
self._right = right
nt = ParsedNodeTest.ParsedNodeTest('node','')
ppl = ParsedPredicateList.ParsedPredicateList([])
- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
- self._middle = ParsedStep.ParsedStep(as, nt, ppl)
+ as_ = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
+ self._middle = ParsedStep.ParsedStep(as_, nt, ppl)
def evaluate(self, context):
res = []
diff -ru PyXML-0.8.4.orig/xml/xslt/Stylesheet.py PyXML-0.8.4/xml/xslt/Stylesheet.py
--- PyXML-0.8.4/xml/xslt/Stylesheet.py.patch 2009-03-03 08:20:01.000000000 +0000
+++ PyXML-0.8.4/xml/xslt/Stylesheet.py 2009-03-03 08:21:18.000000000 +0000
@@ -373,8 +373,8 @@
#Attribute sets
attribute_sets = filter(lambda x: x.nodeType == Node.ELEMENT_NODE and (x.namespaceURI, x.localName) == (XSL_NAMESPACE, 'attribute-set'), self.childNodes)
- for as in attribute_sets:
- as.instantiate(context, processor)
+ for as_ in attribute_sets:
+ as_.instantiate(context, processor)
overridden_params = {}
for k in topLevelParams.keys():
if type(k) != types.TupleType:

View file

@ -30,8 +30,9 @@
PRGNAM=PyXML PRGNAM=PyXML
VERSION=0.8.4 VERSION=0.8.4
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
@ -48,13 +49,12 @@ cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . chmod -R u+w,go+r-w,a-s .
python setup.py build patch -p1 -i $CWD/PyXML-0.8.4-python2.6.patch
python setup.py install --prefix=/usr --root=$PKG python setup.py install --prefix=/usr --root=$PKG
( cd $PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/man/man1 mkdir -p $PKG/usr/man/man1
cp $TMP/$PRGNAM-$VERSION/doc/man/* $PKG/usr/man/man1 cp $TMP/$PRGNAM-$VERSION/doc/man/* $PKG/usr/man/man1
@ -75,4 +75,4 @@ 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}

View file

@ -2,7 +2,9 @@ PRGNAM="PyXML"
VERSION="0.8.4" VERSION="0.8.4"
HOMEPAGE="http://pyxml.sourceforge.net/" HOMEPAGE="http://pyxml.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="1f7655050cebbb664db976405fdba209" MD5SUM="1f7655050cebbb664db976405fdba209"
MD5SUM_x86_64=""
MAINTAINER="Alex Lysenka" MAINTAINER="Alex Lysenka"
EMAIL="me@alkos333.net" EMAIL="me@alkos333.net"
APPROVED="rworkman" APPROVED="rworkman,pprkut"