1 |
commit: b1eb275b8e6920b12993e9015d7bd195ecdc313a |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 11:14:51 2016 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 11:14:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1eb275b |
7 |
|
8 |
dev-python/lxml: Version bump to 3.6.4 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/lxml/Manifest | 1 + |
13 |
dev-python/lxml/lxml-3.6.4.ebuild | 70 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 71 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest |
17 |
index e87f3a3..32446f7 100644 |
18 |
--- a/dev-python/lxml/Manifest |
19 |
+++ b/dev-python/lxml/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST lxml-3.4.4.tar.gz 3537508 SHA256 b3d362bac471172747cda3513238f115cbd6c5f8b8e6319bf6a97a7892724099 SHA512 94453ff0562fc18a4b43555271e2469556255b69daf5f801d1a0f1ff29fd73f4b46d4faba9bfe86b42cfdac31005a0d3cfcbf230e0c7593dd5fc6461afcad906 WHIRLPOOL 6debafb391c94bd57510498c8261a511759f52feb3065c8bdf3103b177b1ddcbad54968f1eceac07b97e42087a1c59a060a3719f9ea9d25a662da34bf314b89e |
22 |
DIST lxml-3.5.0.tar.gz 3810202 SHA256 349f93e3a4b09cc59418854ab8013d027d246757c51744bf20069bc89016f578 SHA512 9b728642bec22be39aef603050121715521603a50bc01d3851e1eb7bfc6302c991da3a3bdebfdeaa9038e19fe39d8286f60851fecf1c4e85469f0ed8fa6e9368 WHIRLPOOL 50b9d3767377a5dee7359e4651bb91bc84539cbc18b552f07b9cf9b9f3f263c8cc3aae64adafb88a78776235a5f3780342d7b29cd369b77e8dc9ef8f8739a290 |
23 |
DIST lxml-3.6.0.tar.gz 3693901 SHA256 9c74ca28a7f0c30dca8872281b3c47705e21217c8bc63912d95c9e2a7cac6bdf SHA512 2dd25a4f51e3e71b78e82e32f3838137d8b21936c23c16f901f4180277c4d4b7f14e1f47d306022cc1d13dc2e0b7f405319632e554aa989f551f424cc423d60d WHIRLPOOL 081c97bca209bc234dfb4e439da45ecde1cfd4c2da31384601c96293a5ab5def9d713bee612b4c84a5372d5b9035126ff6cbc496bd56b141f89b6a4fe916540b |
24 |
+DIST lxml-3.6.4.tar.gz 3707675 SHA256 61d5d3e00b5821e6cda099b3b4ccfea4527bf7c595e0fb3a7a760490cedd6172 SHA512 0412b266d7a70af21f2e4e05d63c3ce63049661ef27e2bf190cbfe1e982b6980fe980a998a360796b958fa9e148ae5bb48136354d4b0bb042055340e37f61e1e WHIRLPOOL b9cd81c885a1b12c36b50f4d616214f1912baed7991a3178e9415bffff74277c849b2e7c82fd7f27fb984148267348f5a72088d0b175ebf2731a16b876988255 |
25 |
|
26 |
diff --git a/dev-python/lxml/lxml-3.6.4.ebuild b/dev-python/lxml/lxml-3.6.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..e7102f6 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/lxml/lxml-3.6.4.ebuild |
31 |
@@ -0,0 +1,70 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{3,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=( "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch ) |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # avoid replacing PYTHONPATH in tests. |
66 |
+ sed -i '/sys\.path/d' test.py || die |
67 |
+ |
68 |
+ distutils-r1_python_prepare_all |
69 |
+} |
70 |
+ |
71 |
+python_compile() { |
72 |
+ if [[ ${EPYTHON} != python3* ]]; then |
73 |
+ local CFLAGS=${CFLAGS} |
74 |
+ append-cflags -fno-strict-aliasing |
75 |
+ fi |
76 |
+ tc-export PKG_CONFIG |
77 |
+ distutils-r1_python_compile |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die |
82 |
+ cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die |
83 |
+ ln -s "${S}"/doc "${BUILD_DIR}"/ || die |
84 |
+ |
85 |
+ "${PYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}" |
86 |
+} |
87 |
+ |
88 |
+python_install_all() { |
89 |
+ if use doc; then |
90 |
+ local DOCS=( *.txt doc/*.txt ) |
91 |
+ local HTML_DOCS=( doc/html/. ) |
92 |
+ fi |
93 |
+ use examples && local EXAMPLES=( samples/. ) |
94 |
+ |
95 |
+ distutils-r1_python_install_all |
96 |
+} |
97 |
+ |
98 |
+pkg_postinst() { |
99 |
+ optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup |
100 |
+ optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect |
101 |
+} |