From 58f1cc4ec4a096699e03c18c239bc9c320f78aee Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Wed, 13 Jan 2021 00:43:03 +0000 Subject: Updating liguros repo --- dev-python/pyxml/pyxml-0.8.4-r3.ebuild | 74 -------------------------------- dev-python/pyxml/pyxml-0.8.4-r4.ebuild | 77 ++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 74 deletions(-) delete mode 100644 dev-python/pyxml/pyxml-0.8.4-r3.ebuild create mode 100644 dev-python/pyxml/pyxml-0.8.4-r4.ebuild (limited to 'dev-python/pyxml') diff --git a/dev-python/pyxml/pyxml-0.8.4-r3.ebuild b/dev-python/pyxml/pyxml-0.8.4-r3.ebuild deleted file mode 100644 index be9b84f0f2f4..000000000000 --- a/dev-python/pyxml/pyxml-0.8.4-r3.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) - -inherit distutils-r1 eutils - -MY_P=${P/pyxml/PyXML} - -DESCRIPTION="A collection of libraries to process XML with Python" -HOMEPAGE="https://sourceforge.net/projects/pyxml/" -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 -} diff --git a/dev-python/pyxml/pyxml-0.8.4-r4.ebuild b/dev-python/pyxml/pyxml-0.8.4-r4.ebuild new file mode 100644 index 000000000000..85d95dce22a6 --- /dev/null +++ b/dev-python/pyxml/pyxml-0.8.4-r4.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) + +DISTUTILS_USE_SETUPTOOLS=manual +inherit distutils-r1 eutils + +MY_P=${P/pyxml/PyXML} + +DESCRIPTION="A collection of libraries to process XML with Python" +HOMEPAGE="https://sourceforge.net/projects/pyxml/" +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-python/setuptools-python2[${PYTHON_USEDEP}] + >=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 +} -- cgit v1.3