1 |
commit: 910e28d4864adfd6fc2366a2a4c15a8e36a8bb14 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 6 16:49:08 2017 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 6 16:50:36 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=910e28d4 |
7 |
|
8 |
dev-python/lxml: version bump to 4.1.1 |
9 |
|
10 |
dev-python/lxml/Manifest | 1 + |
11 |
dev-python/lxml/lxml-4.1.1.ebuild | 80 +++++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 81 insertions(+) |
13 |
|
14 |
diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest |
15 |
index 8a1db1505ea..97f1d5b2832 100644 |
16 |
--- a/dev-python/lxml/Manifest |
17 |
+++ b/dev-python/lxml/Manifest |
18 |
@@ -1,3 +1,4 @@ |
19 |
DIST lxml-3.8.0.tar.gz 3795205 SHA256 736f72be15caad8116891eb6aa4a078b590d231fdc63818c40c21624ac71db96 SHA512 08f6f352e22ed2bc199a5f34a1c6b5f7b41ec282dc0026c9f16a06466c27e39e8eb18608ba4493636170eeac4b0194f7050445e1cc9bd0a4628573c404593088 WHIRLPOOL b09d7509ca55df74c5ced03ca91b72e0f373df6cb22331a452a35cfe3aa305bb9417280ae0b4835cd4abd29f7df465468799fa25c1b8d732152222c74fee51e1 |
20 |
DIST lxml-4.0.0.tar.gz 4217301 SHA256 f7bc9f702500e205b1560d620f14015fec76dcd6f9e889a946a2ddcc3c344fd0 SHA512 8aa85ab6a99097ae2eaa0087b3a663aae8ac81a0a4d685bf857571c811c8ccd6410afc414f14c68702a53e90265726af085d0609ec7f0d3cc96e3702772627e8 WHIRLPOOL 24ad26d075ecf8f7062a6aa695557628664ce9d23cee7f66218bc373c90feec07bdf8a7f6e4501b996bd4bb208ca173faac1609262c08c6313f5a2d155eed220 |
21 |
DIST lxml-4.1.0.tar.gz 4247102 SHA256 be3aaeb5f468a49f523f16736ccff7d82af2b4b303292ba3d052b5b28f3fbe47 SHA512 c4a1180a119ec2d21ab29d00cf60e72ca38a2c28eca4f221251d0fd1c481650fe78ec975532c38a6a59c441bb6f6469bbb110b6b0e9d6b6fffd68dbcad90fcb6 WHIRLPOOL 5e6ab72f5c93ea3e3cb47d530d71e3c41f7724e083e000bc3108974d501b9a387fe368ec1a441f4e9b64fe71fd2b11b540fd78cd659c0761c034e463500078ba |
22 |
+DIST lxml-4.1.1.tar.gz 2380804 SHA256 940caef1ec7c78e0c34b0f6b94fe42d0f2022915ffc78643d28538a5cfd0f40e SHA512 9542e5206f9b2f9e072c52ef8e6cf44d1aaae8ae3e7ca7e820c1fac12e716503308ccb3cebc52155b4c93799f3ebca247781fc491524d004378bd26f5cddb9d1 WHIRLPOOL f5b723f5587ca340151a5524096ae8b1cc834d555cc227d13d77742b3b8f53862583c990c6784d91502957ead351342e6fda56f0b14a60be04616ae40939fd88 |
23 |
|
24 |
diff --git a/dev-python/lxml/lxml-4.1.1.ebuild b/dev-python/lxml/lxml-4.1.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..2ab0055cd81 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/lxml/lxml-4.1.1.ebuild |
29 |
@@ -0,0 +1,80 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
36 |
+ |
37 |
+inherit distutils-r1 eutils flag-o-matic toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries" |
40 |
+HOMEPAGE="http://lxml.de/ https://pypi.python.org/pypi/lxml/ https://github.com/lxml/lxml" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="BSD ElementTree GPL-2 PSF-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
46 |
+IUSE="doc examples +threads test" |
47 |
+ |
48 |
+# Note: lib{xml2,xslt} are used as C libraries, not Python modules. |
49 |
+RDEPEND=" |
50 |
+ >=dev-libs/libxml2-2.9.2 |
51 |
+ >=dev-libs/libxslt-1.1.28" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
54 |
+ test? ( dev-python/cssselect[${PYTHON_USEDEP}] ) |
55 |
+ " |
56 |
+ |
57 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch |
61 |
+ |
62 |
+ # This patch removes a testcase that fails because of issues |
63 |
+ # in libxml2. |
64 |
+ # |
65 |
+ # Upstream bug: https://bugs.launchpad.net/lxml/+bug/1608479 |
66 |
+ "${FILESDIR}"/${PN}-3.6.4-fix-test_xmlschema.patch |
67 |
+) |
68 |
+ |
69 |
+python_prepare_all() { |
70 |
+ # avoid replacing PYTHONPATH in tests. |
71 |
+ sed -i '/sys\.path/d' test.py || die |
72 |
+ |
73 |
+ distutils-r1_python_prepare_all |
74 |
+} |
75 |
+ |
76 |
+python_compile() { |
77 |
+ if [[ ${EPYTHON} != python3* ]]; then |
78 |
+ local -x CFLAGS="${CFLAGS}" |
79 |
+ append-cflags -fno-strict-aliasing |
80 |
+ fi |
81 |
+ tc-export PKG_CONFIG |
82 |
+ distutils-r1_python_compile |
83 |
+} |
84 |
+ |
85 |
+python_test() { |
86 |
+ cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die |
87 |
+ cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die |
88 |
+ ln -s "${S}"/doc "${BUILD_DIR}"/ || die |
89 |
+ |
90 |
+ "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}" |
91 |
+} |
92 |
+ |
93 |
+python_install_all() { |
94 |
+ if use doc; then |
95 |
+ local DOCS=( *.txt doc/*.txt ) |
96 |
+ local HTML_DOCS=( doc/html/. ) |
97 |
+ fi |
98 |
+ if use examples; then |
99 |
+ docinto examples |
100 |
+ dodoc -r samples/. |
101 |
+ fi |
102 |
+ |
103 |
+ distutils-r1_python_install_all |
104 |
+} |
105 |
+ |
106 |
+pkg_postinst() { |
107 |
+ optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup |
108 |
+ optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect |
109 |
+} |