diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pyxml |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyxml')
-rw-r--r-- | dev-python/pyxml/Manifest | 6 | ||||
-rw-r--r-- | dev-python/pyxml/files/pyxml-0.8.4-python-2.6.patch | 28 | ||||
-rw-r--r-- | dev-python/pyxml/metadata.xml | 11 | ||||
-rw-r--r-- | dev-python/pyxml/pyxml-0.8.4-r3.ebuild | 74 |
4 files changed, 119 insertions, 0 deletions
diff --git a/dev-python/pyxml/Manifest b/dev-python/pyxml/Manifest new file mode 100644 index 000000000000..bd41a9f029db --- /dev/null +++ b/dev-python/pyxml/Manifest @@ -0,0 +1,6 @@ +AUX pyxml-0.8.4-python-2.6.patch 1749 SHA256 03c4eb073c58e7c28a22ff702a296ba4c4fe11a64d931ada6216d1876c6118e8 SHA512 3c79b8d58da01bbfb1ac3d20106e9ed40b1e3c8d52abf216c764efc505a08ce37d1d06d282e7ba311f00f0839c4314d2664efa57228e6007ebf26ca5029f5a9d WHIRLPOOL e24c30aaae8d378cf66cd09b9e8d99971577e942ebb29facfc96bfb674050dcc04b39db80068f362f836376d797075b369fccb76bc00dfdb556a432168cd8551 +DIST PyXML-0.8.4.tar.gz 734954 SHA256 9fab66f9584fb8e67aebd8745a5c97bf1c5a2e2e461adf68862bcec64e448c13 SHA512 68d9802a58b8ce90d668d2ba659136dc5377e224fdb837284fdcaf640f28b3bb400bf485d602689905d56121b9ffaa7f7758b4a2f262d1321c8b9890952c8a1e WHIRLPOOL 5ae5df4be39ca9380ac636c6b84cea71c2def2a1404e5e2895a75e14ce3bd70e8ad60f7368892b172aed56e1aa8443a7554dda10fddefbc6b6c0816f087fc6a6 +EBUILD pyxml-0.8.4-r3.ebuild 1768 SHA256 ddfe254be878a84bfd1d577e0a980735440428e95307478495980509e8544138 SHA512 55dc8fe3984b8611930fe72f61f4275f33dda8b69c025e8ceefe33827d08cdabbceddb37ae67e547d149434fecabe3b324370d15fbf504b384814368297eb6af WHIRLPOOL eb52c99ad44b55fdef1fc50c34b51aaf8ac4064171bd8f3cd268ecc3f42f79108f6be64cbc177d740b298bbc0c1df31568c46d9091cd21e3ec3bf779a6694e76 +MISC ChangeLog 2597 SHA256 43ab8d06a6fb8f9e5c1111a9d4edb0f81c6d0c9efd909ab6b185ff86218b7bf6 SHA512 034baba99b692f291e2a550a2a3b5b028da8438cf7bc77f7d8e3ebc91b5b99a2ed081d9153792ffd44f387a09279a3604e98b62d7b6e502edc523f4dd331c659 WHIRLPOOL 151bd31c494f8e43cd645897f390ee8dd80b5eb2252bf0e057abced9471534ac2f0c5529c972e979e503172a3113d0fe1a295fa8c7c36caf1cf63c39a98d5140 +MISC ChangeLog-2015 11079 SHA256 701147f01961cc97eafbec8fe95dd52aff24ea4484caaffa3316e966bd410a9d SHA512 8587831748c2e257a74556862618ac79f4356c97cdd08f2e58eb5ef743aa62736844c186c1f80d64063f08428b1020f027f71aba8b4ffbea667e14c77f857db4 WHIRLPOOL a321e60ac98e281b525182008d59d610f56227342ce0669ef806dd4d9b8eb4cfad705028440564c003b962cfa776d6f6b04b31626f74b7333ce06e87c18a191b +MISC metadata.xml 315 SHA256 91007d1cee32388f663b2a3912a87b71e96d99bf95623b54bf8303db06d3ee0f SHA512 36dc9d30db0cf2d1a46dfcf5869fa8f77e762291893b1e51ced88d22d599d06575de9a6a1658a8a3194daa174bcd0f69bbb59c7f671ad448eee0e28b0b56a016 WHIRLPOOL cf998a31daf3eb71718ae5f95ee7b65919c61613dfeb5ffea36a61c9aabcea73afcb87e6319437bea249f73684e10fb71ac05eada60610ea6abd61dad8876de0 diff --git a/dev-python/pyxml/files/pyxml-0.8.4-python-2.6.patch b/dev-python/pyxml/files/pyxml-0.8.4-python-2.6.patch new file mode 100644 index 000000000000..d29b0b6a9eb2 --- /dev/null +++ b/dev-python/pyxml/files/pyxml-0.8.4-python-2.6.patch @@ -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 = [] diff --git a/dev-python/pyxml/metadata.xml b/dev-python/pyxml/metadata.xml new file mode 100644 index 000000000000..3fd7e1e6f1fe --- /dev/null +++ b/dev-python/pyxml/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">pyxml</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyxml/pyxml-0.8.4-r3.ebuild b/dev-python/pyxml/pyxml-0.8.4-r3.ebuild new file mode 100644 index 000000000000..a21d3cca4dce --- /dev/null +++ b/dev-python/pyxml/pyxml-0.8.4-r3.ebuild @@ -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 +} |