1 |
commit: ef070d33ab8b673109b4ffbdce3b3c3ed800be40 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 19:14:54 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 19:14:54 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef070d33 |
7 |
|
8 |
dev-python/lxml: Bump to version 3.7.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-python/lxml/Manifest | 1 + |
13 |
dev-python/lxml/lxml-3.7.1.ebuild | 81 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest |
17 |
index 4f34f2f..9d393e4 100644 |
18 |
--- a/dev-python/lxml/Manifest |
19 |
+++ b/dev-python/lxml/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST lxml-3.6.0.tar.gz 3693901 SHA256 9c74ca28a7f0c30dca8872281b3c47705e21217c8bc63912d95c9e2a7cac6bdf SHA512 2dd25a4f51e3e71b78e82e32f3838137d8b21936c23c16f901f4180277c4d4b7f14e1f47d306022cc1d13dc2e0b7f405319632e554aa989f551f424cc423d60d WHIRLPOOL 081c97bca209bc234dfb4e439da45ecde1cfd4c2da31384601c96293a5ab5def9d713bee612b4c84a5372d5b9035126ff6cbc496bd56b141f89b6a4fe916540b |
22 |
DIST lxml-3.6.4.tar.gz 3707675 SHA256 61d5d3e00b5821e6cda099b3b4ccfea4527bf7c595e0fb3a7a760490cedd6172 SHA512 0412b266d7a70af21f2e4e05d63c3ce63049661ef27e2bf190cbfe1e982b6980fe980a998a360796b958fa9e148ae5bb48136354d4b0bb042055340e37f61e1e WHIRLPOOL b9cd81c885a1b12c36b50f4d616214f1912baed7991a3178e9415bffff74277c849b2e7c82fd7f27fb984148267348f5a72088d0b175ebf2731a16b876988255 |
23 |
DIST lxml-3.7.0.tar.gz 3788603 SHA256 9c62eb2a1862e1ae285d7e7e3b7dc8772d387b19258086afcec143c6b7b8a5c9 SHA512 c34081332bcb911fb3be820300ec78e1e310fcef8b44d1b1ae28424de7f29b215b1266b1bc0ee50696b989b258e1af2774980c5bea96b403151596407522bdc8 WHIRLPOOL 050336ad26a7addeae34648fa9a30eabce4cf5b79bf84967f25854eb60ba8182b5ce21986fa4cb92081068c9561e9c4b00fde4e0f9c5929b25b5c7f0d3422bf2 |
24 |
+DIST lxml-3.7.1.tar.gz 3788105 SHA256 1c7f6771838300787cfa1bb3ed6512e9dc78e60ecb308a8ed49ac956569c1cca SHA512 1e192671365ba80d76ac2d25b8ec7666e77ceb1339b56b433b55ea0f0c78d0ba8ec381ca2f23eff1b8b1dfc914f47a65d072a4538a69d0b9b77597a6d6ea197b WHIRLPOOL 508f2908e48523c82063841beced2c8ec59e875b4e64e943a64b524bb78d8eb168135d7e066c03c3c5095d3d5f46ed7a104519d6ffb38e3efd7cac9576cbc91a |
25 |
|
26 |
diff --git a/dev-python/lxml/lxml-3.7.1.ebuild b/dev-python/lxml/lxml-3.7.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..5e963ca |
29 |
--- /dev/null |
30 |
+++ b/dev-python/lxml/lxml-3.7.1.ebuild |
31 |
@@ -0,0 +1,81 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
39 |
+ |
40 |
+inherit distutils-r1 eutils flag-o-matic toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries" |
43 |
+HOMEPAGE="http://lxml.de/ https://pypi.python.org/pypi/lxml/" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD ElementTree GPL-2 PSF-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
49 |
+IUSE="doc examples +threads test" |
50 |
+ |
51 |
+# Note: lib{xml2,xslt} are used as C libraries, not Python modules. |
52 |
+RDEPEND=" |
53 |
+ >=dev-libs/libxml2-2.9.2 |
54 |
+ >=dev-libs/libxslt-1.1.28" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
+ test? ( dev-python/cssselect[${PYTHON_USEDEP}] ) |
58 |
+ " |
59 |
+ |
60 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
61 |
+ |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch |
64 |
+ |
65 |
+ # This patch removes a testcase that fails because of issues |
66 |
+ # in libxml2. |
67 |
+ # |
68 |
+ # Upstream bug: https://bugs.launchpad.net/lxml/+bug/1608479 |
69 |
+ "${FILESDIR}"/${PN}-3.6.4-fix-test_xmlschema.patch |
70 |
+) |
71 |
+ |
72 |
+python_prepare_all() { |
73 |
+ # avoid replacing PYTHONPATH in tests. |
74 |
+ sed -i '/sys\.path/d' test.py || die |
75 |
+ |
76 |
+ distutils-r1_python_prepare_all |
77 |
+} |
78 |
+ |
79 |
+python_compile() { |
80 |
+ if [[ ${EPYTHON} != python3* ]]; then |
81 |
+ local -x CFLAGS="${CFLAGS}" |
82 |
+ append-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=( *.txt doc/*.txt ) |
99 |
+ local HTML_DOCS=( doc/html/. ) |
100 |
+ fi |
101 |
+ if use examples; then |
102 |
+ docinto examples |
103 |
+ dodoc -r samples/. |
104 |
+ fi |
105 |
+ |
106 |
+ distutils-r1_python_install_all |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup |
111 |
+ optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect |
112 |
+} |