Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/lxml/
Date: Tue, 18 May 2021 12:51:43
Message-Id: 1621342292.021671d1e7fe4921338a346102bd65bc8cdb83b5.mgorny@gentoo
1 commit: 021671d1e7fe4921338a346102bd65bc8cdb83b5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 18 11:41:14 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 12:51:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=021671d1
7
8 dev-python/lxml: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/lxml/Manifest | 1 -
13 dev-python/lxml/lxml-4.6.2-r1.ebuild | 101 -----------------------------------
14 2 files changed, 102 deletions(-)
15
16 diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest
17 index cfd6f208adf..c59350fa14f 100644
18 --- a/dev-python/lxml/Manifest
19 +++ b/dev-python/lxml/Manifest
20 @@ -1,2 +1 @@
21 -DIST lxml-4.6.2.tar.gz 948652 BLAKE2B df6ec7e183df48c0edc6cce0fbdd6ab78eb8d1b7e8fb81a76bd9f4a24f05923c757d5b21f508be9be50c7bb187927c4e3a66146d480f2d40efc05388d26d3bf5 SHA512 81dcf5cade7b05c0e831beae7cdfbdb21e876fa55b23da98b89cbfa7960a4737efc13346ea3ade22a2448f20e036173cf5e32d43df6656c3231bfba07981f9ed
22 DIST lxml-4.6.3.tar.gz 948931 BLAKE2B 373248827cb6bc0698b632ef60978adb2b8f7c37444fa1804567f08eb669018dc38fadf52422262fd96280e88c59578d244e4c5a1ed55609af55c010b3bf2b09 SHA512 50e42d6269dc45b4c0ab3285c49307f8bee87fcc4b9e0f531e1ee37bcf83c5938b7e361f906a3158fac8df89a79b932dd64a8839455e45f45f3a5f0ba73ff6a5
23
24 diff --git a/dev-python/lxml/lxml-4.6.2-r1.ebuild b/dev-python/lxml/lxml-4.6.2-r1.ebuild
25 deleted file mode 100644
26 index 422afe2febf..00000000000
27 --- a/dev-python/lxml/lxml-4.6.2-r1.ebuild
28 +++ /dev/null
29 @@ -1,101 +0,0 @@
30 -# Copyright 1999-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
36 -
37 -inherit distutils-r1 optfeature toolchain-funcs
38 -
39 -DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
40 -HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml"
41 -SRC_URI="https://github.com/lxml/lxml/archive/${P}.tar.gz"
42 -S=${WORKDIR}/lxml-${P}
43 -
44 -LICENSE="BSD ElementTree GPL-2 PSF-2"
45 -SLOT="0"
46 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
47 -IUSE="doc examples +threads test"
48 -RESTRICT="!test? ( test )"
49 -
50 -# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
51 -RDEPEND="
52 - >=dev-libs/libxml2-2.9.5
53 - >=dev-libs/libxslt-1.1.28"
54 -DEPEND="${RDEPEND}"
55 -BDEPEND="
56 - virtual/pkgconfig
57 - dev-python/cython[${PYTHON_USEDEP}]
58 - dev-python/setuptools[${PYTHON_USEDEP}]
59 - doc? (
60 - $(python_gen_any_dep '
61 - dev-python/docutils[${PYTHON_USEDEP}]
62 - dev-python/pygments[${PYTHON_USEDEP}]
63 - dev-python/sphinx[${PYTHON_USEDEP}]
64 - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
65 - ')
66 - )
67 - test? ( dev-python/cssselect[${PYTHON_USEDEP}] )
68 - "
69 -
70 -DISTUTILS_IN_SOURCE_BUILD=1
71 -
72 -PATCHES=(
73 - "${FILESDIR}"/${PN}-4.6.0-tests-pypy.patch
74 -)
75 -
76 -python_check_deps() {
77 - use doc || return 0
78 - has_version "dev-python/docutils[${PYTHON_USEDEP}]" &&
79 - has_version "dev-python/pygments[${PYTHON_USEDEP}]" &&
80 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" &&
81 - has_version "dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]"
82 -}
83 -
84 -python_prepare_all() {
85 - # avoid replacing PYTHONPATH in tests.
86 - sed -i -e '/sys\.path/d' test.py || die
87 -
88 - # don't use some random SDK on Darwin
89 - sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \
90 - setupinfo.py || die
91 -
92 - distutils-r1_python_prepare_all
93 -}
94 -
95 -python_compile() {
96 - if ! python_is_python3; then
97 - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
98 - fi
99 - tc-export PKG_CONFIG
100 - distutils-r1_python_compile
101 -}
102 -
103 -python_compile_all() {
104 - use doc && emake html
105 -}
106 -
107 -python_test() {
108 - cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
109 - cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
110 - ln -s "${S}"/doc "${BUILD_DIR}"/ || die
111 -
112 - "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}"
113 -}
114 -
115 -python_install_all() {
116 - if use doc; then
117 - local DOCS=( README.rst *.txt doc/*.txt )
118 - local HTML_DOCS=( doc/html/. )
119 - fi
120 - if use examples; then
121 - dodoc -r samples
122 - fi
123 -
124 - distutils-r1_python_install_all
125 -}
126 -
127 -pkg_postinst() {
128 - optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup
129 - optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect
130 -}