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