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