1 |
commit: 7c2cbbd7170456610842244e4afa50825fc8ed8a |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 10 08:43:36 2019 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 10 08:44:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c2cbbd7 |
7 |
|
8 |
dev-python/lxml: version bump to 4.3.1 |
9 |
|
10 |
Signed-off-by: Tim Harder <radhermit <AT> gentoo.org> |
11 |
|
12 |
dev-python/lxml/Manifest | 1 + |
13 |
dev-python/lxml/lxml-4.3.1.ebuild | 83 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 84 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest |
17 |
index a43d771a507..e5d55328feb 100644 |
18 |
--- a/dev-python/lxml/Manifest |
19 |
+++ b/dev-python/lxml/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST lxml-4.2.5.tar.gz 4414081 BLAKE2B c1c75a0a0c33011e2becb729de2c15dd786dd12bddeba4f2f26032d0d17104f258b471f5f961cbf96340df66cbce3e874d7a16c59731af280a309132b669d1b9 SHA512 4cf336d3e1471e8a26492760a143881517d12eb1c2dad82f8786540471bfabd68f8c795d97b7362166418c2be3c7996816638fdbd5a594536b9981478b90fdfe |
22 |
DIST lxml-4.3.0.tar.gz 2483162 BLAKE2B 3f3646a47a0344af22bfb567a0985a27e8a46051850e99b5e82d0bc59c94c0e9b19ca93cf6d5d790599e81c9513686c3462ad6544ad658d0efd77ad431b07014 SHA512 49d122c8a6dafe50195bc8cfb3ea52780054a57762132c000cd976fdbdbabaab6bc8b95b77d124ae144f33c24d71793a2debbebf789d5ca866734a984edac8bb |
23 |
+DIST lxml-4.3.1.tar.gz 4380082 BLAKE2B 112b75dc05fa11e1506bd07f717bb7bf4ca73d587fb7f36ea49ce734251504c42ebb62c3b86bcf620e9a0fe5e03e6c47bd7c69024ce4aa3bb8af82b8d44ddd28 SHA512 ab82bb5af330cbb15da73184b7a24f55be9271751bd1dfdff26f75c5e0c92a771c5de0e935bc9675513d4c871fe199071137cdafac3ecd7da6a896ede02093b0 |
24 |
|
25 |
diff --git a/dev-python/lxml/lxml-4.3.1.ebuild b/dev-python/lxml/lxml-4.3.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..38415295fbb |
28 |
--- /dev/null |
29 |
+++ b/dev-python/lxml/lxml-4.3.1.ebuild |
30 |
@@ -0,0 +1,83 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy ) |
37 |
+ |
38 |
+inherit distutils-r1 eutils 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="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD ElementTree GPL-2 PSF-2" |
45 |
+SLOT="0" |
46 |
+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" |
47 |
+IUSE="doc examples +threads test" |
48 |
+ |
49 |
+# Note: lib{xml2,xslt} are used as C libraries, not Python modules. |
50 |
+RDEPEND=" |
51 |
+ >=dev-libs/libxml2-2.9.5 |
52 |
+ >=dev-libs/libxslt-1.1.28" |
53 |
+DEPEND="${RDEPEND}" |
54 |
+BDEPEND=" |
55 |
+ virtual/pkgconfig |
56 |
+ $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' python2_7 'python3*') |
57 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
58 |
+ test? ( dev-python/cssselect[${PYTHON_USEDEP}] ) |
59 |
+ " |
60 |
+ |
61 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch |
65 |
+) |
66 |
+ |
67 |
+python_prepare_all() { |
68 |
+ # avoid replacing PYTHONPATH in tests. |
69 |
+ sed -i -e '/sys\.path/d' test.py || die |
70 |
+ |
71 |
+ # apparently logs have changed with libxslt upgrade |
72 |
+ # https://bugs.launchpad.net/lxml/+bug/1782078 |
73 |
+ sed -i -e '/assertEqual(4, len(log)/d' src/lxml/tests/test_threading.py || die |
74 |
+ |
75 |
+ # don't use some random SDK on Darwin |
76 |
+ sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \ |
77 |
+ setupinfo.py || die |
78 |
+ |
79 |
+ distutils-r1_python_prepare_all |
80 |
+} |
81 |
+ |
82 |
+python_compile() { |
83 |
+ if ! python_is_python3; then |
84 |
+ local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
85 |
+ fi |
86 |
+ tc-export PKG_CONFIG |
87 |
+ distutils-r1_python_compile |
88 |
+} |
89 |
+ |
90 |
+python_test() { |
91 |
+ cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die |
92 |
+ cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die |
93 |
+ ln -s "${S}"/doc "${BUILD_DIR}"/ || die |
94 |
+ |
95 |
+ "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}" |
96 |
+} |
97 |
+ |
98 |
+python_install_all() { |
99 |
+ if use doc; then |
100 |
+ local DOCS=( README.rst *.txt doc/*.txt ) |
101 |
+ local HTML_DOCS=( doc/html/. ) |
102 |
+ fi |
103 |
+ if use examples; then |
104 |
+ dodoc -r samples |
105 |
+ fi |
106 |
+ |
107 |
+ distutils-r1_python_install_all |
108 |
+} |
109 |
+ |
110 |
+pkg_postinst() { |
111 |
+ optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup |
112 |
+ optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect |
113 |
+} |