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: Wed, 29 Jan 2020 07:23:33
Message-Id: 1580282601.d94cf6f9a815f18281667213ebf30c657be60ed7.mgorny@gentoo
1 commit: d94cf6f9a815f18281667213ebf30c657be60ed7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 29 07:03:14 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 29 07:23:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d94cf6f9
7
8 dev-python/lxml: Remove redundant versions
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/lxml/Manifest | 4 --
13 dev-python/lxml/lxml-4.2.5.ebuild | 83 --------------------------------------
14 dev-python/lxml/lxml-4.3.4.ebuild | 84 ---------------------------------------
15 dev-python/lxml/lxml-4.4.0.ebuild | 81 -------------------------------------
16 dev-python/lxml/lxml-4.4.1.ebuild | 81 -------------------------------------
17 5 files changed, 333 deletions(-)
18
19 diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest
20 index 10c75f7e227..25c84c3ecd9 100644
21 --- a/dev-python/lxml/Manifest
22 +++ b/dev-python/lxml/Manifest
23 @@ -1,6 +1,2 @@
24 -DIST lxml-4.2.5.tar.gz 4414081 BLAKE2B c1c75a0a0c33011e2becb729de2c15dd786dd12bddeba4f2f26032d0d17104f258b471f5f961cbf96340df66cbce3e874d7a16c59731af280a309132b669d1b9 SHA512 4cf336d3e1471e8a26492760a143881517d12eb1c2dad82f8786540471bfabd68f8c795d97b7362166418c2be3c7996816638fdbd5a594536b9981478b90fdfe
25 DIST lxml-4.3.3.tar.gz 4378439 BLAKE2B 30c2a29e58951164fbff1c9d23362d46987c86b671e0cfa6cf15cbbb3db23ead856786babe57ce553f7b8a66d8ac333410ea1bb3b8b521aac43a038b90daf488 SHA512 cbc1cd30bac4b9ac845d99949c8c231a7870398f942695df5a00586d70d0f6b6ebd457a1a9306806af7d0fd521a14c54d266902943263927a0d940abc3cdf5c0
26 -DIST lxml-4.3.4.tar.gz 2488557 BLAKE2B 5059ea45d3d833955636216a7c096322496882de4592a0d19604885dca8dffbc763afb7dc804b7a34561d0c94dfa2130a61835d6c12b97dc83008e8fa33e098a SHA512 7349cb4805e538da5b11edcb79fcd09ddedf0d52e50273a4e587f209e6b147b50737c45dcfc8eb3ee8e7be8f99769046f704c5fc8c35cee74d5d22ef72d503ed
27 -DIST lxml-4.4.0.tar.gz 939001 BLAKE2B 9fc473729286e98cd73e4b39d7acf22ccb957dd4b366924dc171a6c89c2e435a3dae771342eb3b143451b0550960cb821430de3e8f6470dc87e3a85efc389314 SHA512 23e7b5157a6520f3e1dab76b023e828a5afe9d0103e2d3ff8fd1a8791000ed8f859e26fe9809676b89d4ef9fa4b27a6f1662a2b0f54e5ae04776643f5b06c0c3
28 -DIST lxml-4.4.1.tar.gz 939355 BLAKE2B 0e9ebc894ebaa7994ee7ce1491683ff892ceac5dbae6bd90fd4d5ac04ec59d6c85edba37160a605c8c1b38119cdccdc8b97b62dc43f76705d7ebb595410c666c SHA512 08857f5e15d6b4badb8bea96fc7aaf3a02a504f9b87171e01c6ace25250d254691c64661dca8e723824cabac4753c59ffa667ac0b6042506b05e4357389e658c
29 DIST lxml-4.4.2.tar.gz 940286 BLAKE2B 28366d1673b356f980cedc64839f070e8166906705bc948af24bba369153accc0a4cea0372e87530227be88a89a0dab4d23308b75fd695f55fdb73e6326aa03b SHA512 af6608df7e47513644b841ecb6291e655122927cb439bd2ae694fd344cf5dca621e3e1ce6b40accc6db9e0c4383b5b3e6c6f9ff19f35c4daf30f119a217113ca
30
31 diff --git a/dev-python/lxml/lxml-4.2.5.ebuild b/dev-python/lxml/lxml-4.2.5.ebuild
32 deleted file mode 100644
33 index 7949a3f6310..00000000000
34 --- a/dev-python/lxml/lxml-4.2.5.ebuild
35 +++ /dev/null
36 @@ -1,83 +0,0 @@
37 -# Copyright 1999-2020 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=7
41 -
42 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
43 -
44 -inherit distutils-r1 eutils toolchain-funcs
45 -
46 -DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
47 -HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml"
48 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
49 -
50 -LICENSE="BSD ElementTree GPL-2 PSF-2"
51 -SLOT="0"
52 -KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
53 -IUSE="doc examples +threads test"
54 -RESTRICT="!test? ( test )"
55 -
56 -# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
57 -RDEPEND="
58 - >=dev-libs/libxml2-2.9.5
59 - >=dev-libs/libxslt-1.1.28"
60 -DEPEND="${RDEPEND}"
61 -BDEPEND="
62 - virtual/pkgconfig
63 - dev-python/setuptools[${PYTHON_USEDEP}]
64 - test? ( dev-python/cssselect[${PYTHON_USEDEP}] )
65 - "
66 -
67 -DISTUTILS_IN_SOURCE_BUILD=1
68 -
69 -PATCHES=(
70 - "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch
71 -)
72 -
73 -python_prepare_all() {
74 - # avoid replacing PYTHONPATH in tests.
75 - sed -i -e '/sys\.path/d' test.py || die
76 -
77 - # apparently logs have changed with libxslt upgrade
78 - # https://bugs.launchpad.net/lxml/+bug/1782078
79 - sed -i -e '/assertEqual(4, len(log)/d' src/lxml/tests/test_threading.py || die
80 -
81 - # don't use some random SDK on Darwin
82 - sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \
83 - setupinfo.py || die
84 -
85 - distutils-r1_python_prepare_all
86 -}
87 -
88 -python_compile() {
89 - if ! python_is_python3; then
90 - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
91 - fi
92 - tc-export PKG_CONFIG
93 - distutils-r1_python_compile
94 -}
95 -
96 -python_test() {
97 - cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
98 - cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
99 - ln -s "${S}"/doc "${BUILD_DIR}"/ || die
100 -
101 - "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}"
102 -}
103 -
104 -python_install_all() {
105 - if use doc; then
106 - local DOCS=( README.rst *.txt doc/*.txt )
107 - local HTML_DOCS=( doc/html/. )
108 - fi
109 - if use examples; then
110 - dodoc -r samples
111 - fi
112 -
113 - distutils-r1_python_install_all
114 -}
115 -
116 -pkg_postinst() {
117 - optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup
118 - optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect
119 -}
120
121 diff --git a/dev-python/lxml/lxml-4.3.4.ebuild b/dev-python/lxml/lxml-4.3.4.ebuild
122 deleted file mode 100644
123 index 01eab585ebf..00000000000
124 --- a/dev-python/lxml/lxml-4.3.4.ebuild
125 +++ /dev/null
126 @@ -1,84 +0,0 @@
127 -# Copyright 1999-2020 Gentoo Authors
128 -# Distributed under the terms of the GNU General Public License v2
129 -
130 -EAPI=7
131 -
132 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
133 -
134 -inherit distutils-r1 eutils toolchain-funcs
135 -
136 -DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
137 -HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml"
138 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
139 -
140 -LICENSE="BSD ElementTree GPL-2 PSF-2"
141 -SLOT="0"
142 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
143 -IUSE="doc examples +threads test"
144 -RESTRICT="!test? ( test )"
145 -
146 -# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
147 -RDEPEND="
148 - >=dev-libs/libxml2-2.9.5
149 - >=dev-libs/libxslt-1.1.28"
150 -DEPEND="${RDEPEND}"
151 -BDEPEND="
152 - virtual/pkgconfig
153 - $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' python2_7 'python3*')
154 - dev-python/setuptools[${PYTHON_USEDEP}]
155 - test? ( dev-python/cssselect[${PYTHON_USEDEP}] )
156 - "
157 -
158 -DISTUTILS_IN_SOURCE_BUILD=1
159 -
160 -PATCHES=(
161 - "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch
162 -)
163 -
164 -python_prepare_all() {
165 - # avoid replacing PYTHONPATH in tests.
166 - sed -i -e '/sys\.path/d' test.py || die
167 -
168 - # apparently logs have changed with libxslt upgrade
169 - # https://bugs.launchpad.net/lxml/+bug/1782078
170 - sed -i -e '/assertEqual(4, len(log)/d' src/lxml/tests/test_threading.py || die
171 -
172 - # don't use some random SDK on Darwin
173 - sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \
174 - setupinfo.py || die
175 -
176 - distutils-r1_python_prepare_all
177 -}
178 -
179 -python_compile() {
180 - if ! python_is_python3; then
181 - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
182 - fi
183 - tc-export PKG_CONFIG
184 - distutils-r1_python_compile
185 -}
186 -
187 -python_test() {
188 - cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
189 - cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
190 - ln -s "${S}"/doc "${BUILD_DIR}"/ || die
191 -
192 - "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}"
193 -}
194 -
195 -python_install_all() {
196 - if use doc; then
197 - local DOCS=( README.rst *.txt doc/*.txt )
198 - local HTML_DOCS=( doc/html/. )
199 - fi
200 - if use examples; then
201 - dodoc -r samples
202 - fi
203 -
204 - distutils-r1_python_install_all
205 -}
206 -
207 -pkg_postinst() {
208 - optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup
209 - optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect
210 -}
211
212 diff --git a/dev-python/lxml/lxml-4.4.0.ebuild b/dev-python/lxml/lxml-4.4.0.ebuild
213 deleted file mode 100644
214 index d216231db4d..00000000000
215 --- a/dev-python/lxml/lxml-4.4.0.ebuild
216 +++ /dev/null
217 @@ -1,81 +0,0 @@
218 -# Copyright 1999-2020 Gentoo Authors
219 -# Distributed under the terms of the GNU General Public License v2
220 -
221 -EAPI=7
222 -
223 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
224 -
225 -inherit distutils-r1 eutils toolchain-funcs
226 -
227 -DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
228 -HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml"
229 -SRC_URI="https://github.com/lxml/lxml/archive/${P}.tar.gz"
230 -
231 -LICENSE="BSD ElementTree GPL-2 PSF-2"
232 -SLOT="0"
233 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
234 -IUSE="doc examples +threads test"
235 -RESTRICT="!test? ( test )"
236 -
237 -# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
238 -RDEPEND="
239 - >=dev-libs/libxml2-2.9.5
240 - >=dev-libs/libxslt-1.1.28"
241 -DEPEND="${RDEPEND}"
242 -BDEPEND="
243 - virtual/pkgconfig
244 - $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' python2_7 'python3*')
245 - dev-python/setuptools[${PYTHON_USEDEP}]
246 - test? ( dev-python/cssselect[${PYTHON_USEDEP}] )
247 - "
248 -
249 -DISTUTILS_IN_SOURCE_BUILD=1
250 -S=${WORKDIR}/lxml-${P}
251 -
252 -PATCHES=(
253 - "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch
254 -)
255 -
256 -python_prepare_all() {
257 - # avoid replacing PYTHONPATH in tests.
258 - sed -i -e '/sys\.path/d' test.py || die
259 -
260 - # don't use some random SDK on Darwin
261 - sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \
262 - setupinfo.py || die
263 -
264 - distutils-r1_python_prepare_all
265 -}
266 -
267 -python_compile() {
268 - if ! python_is_python3; then
269 - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
270 - fi
271 - tc-export PKG_CONFIG
272 - distutils-r1_python_compile
273 -}
274 -
275 -python_test() {
276 - cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
277 - cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
278 - ln -s "${S}"/doc "${BUILD_DIR}"/ || die
279 -
280 - "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}"
281 -}
282 -
283 -python_install_all() {
284 - if use doc; then
285 - local DOCS=( README.rst *.txt doc/*.txt )
286 - local HTML_DOCS=( doc/html/. )
287 - fi
288 - if use examples; then
289 - dodoc -r samples
290 - fi
291 -
292 - distutils-r1_python_install_all
293 -}
294 -
295 -pkg_postinst() {
296 - optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup
297 - optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect
298 -}
299
300 diff --git a/dev-python/lxml/lxml-4.4.1.ebuild b/dev-python/lxml/lxml-4.4.1.ebuild
301 deleted file mode 100644
302 index 73aa0d8537b..00000000000
303 --- a/dev-python/lxml/lxml-4.4.1.ebuild
304 +++ /dev/null
305 @@ -1,81 +0,0 @@
306 -# Copyright 1999-2020 Gentoo Authors
307 -# Distributed under the terms of the GNU General Public License v2
308 -
309 -EAPI=7
310 -
311 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
312 -
313 -inherit distutils-r1 eutils toolchain-funcs
314 -
315 -DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
316 -HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml"
317 -SRC_URI="https://github.com/lxml/lxml/archive/${P}.tar.gz"
318 -
319 -LICENSE="BSD ElementTree GPL-2 PSF-2"
320 -SLOT="0"
321 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
322 -IUSE="doc examples +threads test"
323 -RESTRICT="!test? ( test )"
324 -
325 -# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
326 -RDEPEND="
327 - >=dev-libs/libxml2-2.9.5
328 - >=dev-libs/libxslt-1.1.28"
329 -DEPEND="${RDEPEND}"
330 -BDEPEND="
331 - virtual/pkgconfig
332 - $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' python2_7 'python3*')
333 - dev-python/setuptools[${PYTHON_USEDEP}]
334 - test? ( dev-python/cssselect[${PYTHON_USEDEP}] )
335 - "
336 -
337 -DISTUTILS_IN_SOURCE_BUILD=1
338 -S=${WORKDIR}/lxml-${P}
339 -
340 -PATCHES=(
341 - "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch
342 -)
343 -
344 -python_prepare_all() {
345 - # avoid replacing PYTHONPATH in tests.
346 - sed -i -e '/sys\.path/d' test.py || die
347 -
348 - # don't use some random SDK on Darwin
349 - sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \
350 - setupinfo.py || die
351 -
352 - distutils-r1_python_prepare_all
353 -}
354 -
355 -python_compile() {
356 - if ! python_is_python3; then
357 - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
358 - fi
359 - tc-export PKG_CONFIG
360 - distutils-r1_python_compile
361 -}
362 -
363 -python_test() {
364 - cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
365 - cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
366 - ln -s "${S}"/doc "${BUILD_DIR}"/ || die
367 -
368 - "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}"
369 -}
370 -
371 -python_install_all() {
372 - if use doc; then
373 - local DOCS=( README.rst *.txt doc/*.txt )
374 - local HTML_DOCS=( doc/html/. )
375 - fi
376 - if use examples; then
377 - dodoc -r samples
378 - fi
379 -
380 - distutils-r1_python_install_all
381 -}
382 -
383 -pkg_postinst() {
384 - optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup
385 - optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect
386 -}