Добавлен удалённый из portage pyxml

mhiretskiy
parent 0b758b6b9f
commit a401605969

@ -0,0 +1 @@
DIST PyXML-0.8.4.tar.gz 734954 BLAKE2B e052bfd298f7e2016d7077330401d077788e22721b55d7b996f53abdc48b1717472a9d47d5567f7c0d6d53c2ca4933a77743e8248e56128f58b089eac64d0811 SHA512 68d9802a58b8ce90d668d2ba659136dc5377e224fdb837284fdcaf640f28b3bb400bf485d602689905d56121b9ffaa7f7758b4a2f262d1321c8b9890952c8a1e

@ -0,0 +1,28 @@
diff -rupN PyXML-0.8.4-old/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py
--- PyXML-0.8.4-old/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2008-12-15 16:54:36.000000000 +0900
+++ PyXML-0.8.4/xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2008-12-15 16:57:02.000000000 +0900
@@ -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 -rupN PyXML-0.8.4-old/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py
--- PyXML-0.8.4-old/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2008-12-15 16:54:36.000000000 +0900
+++ PyXML-0.8.4/xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2008-12-15 16:58:58.000000000 +0900
@@ -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 = []

@ -0,0 +1,74 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 eutils
MY_P=${P/pyxml/PyXML}
DESCRIPTION="A collection of libraries to process XML with Python"
HOMEPAGE="http://pyxml.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="BSD CNRI MIT PSF-2 public-domain"
# Other licenses:
# BeOpen Python Open Source License Agreement Version 1
# Zope Public License (ZPL) Version 1.0
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc examples"
DEPEND=">=dev-libs/expat-1.95.6"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
python_prepare_all() {
local PATCHES=(
"${FILESDIR}/${P}-python-2.6.patch"
)
distutils-r1_python_prepare_all
}
python_compile() {
# use the already-installed shared copy of libexpat
distutils-r1_python_compile --with-libexpat="${EPREFIX}/usr"
}
python_test() {
# Delete internal copy of old version of unittest module.
local BROKENTESTS=(
test_filter
test_howto
test_minidom
test_xmlbuilder
unittest
test_expatreader
)
for test_file in ${BROKENTESTS[@]}; do
test_file="test/${test_file}.py"
einfo "Removing dubious test \"${test_file}\""
rm ${test_file} || die "can't remove ${test_file}"
eend $?
done
cd test || die
"${PYTHON}" regrtest.py || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
local DOCS=( ANNOUNCE CREDITS doc/*.txt )
distutils-r1_python_install_all
doman doc/man/*
if use doc; then
dohtml -A api,web -r doc/*
dodoc doc/*.tex
fi
use examples && dodoc -r demo
}
Loading…
Cancel
Save