Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/lxml/
Date: Fri, 23 Jun 2017 12:21:22
Message-Id: 1498220463.28ae750a2fb41833de74d7dfc11f3cc2640503ab.mrueg@gentoo
1 commit: 28ae750a2fb41833de74d7dfc11f3cc2640503ab
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 23 12:21:03 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 23 12:21:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ae750a
7
8 dev-python/lxml: Remove old
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-python/lxml/Manifest | 2 -
13 dev-python/lxml/lxml-3.6.0.ebuild | 69 -------------------------------
14 dev-python/lxml/lxml-3.6.4-r1.ebuild | 80 ------------------------------------
15 3 files changed, 151 deletions(-)
16
17 diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest
18 index f0eec6a639a..3e480efa7ad 100644
19 --- a/dev-python/lxml/Manifest
20 +++ b/dev-python/lxml/Manifest
21 @@ -1,4 +1,2 @@
22 -DIST lxml-3.6.0.tar.gz 3693901 SHA256 9c74ca28a7f0c30dca8872281b3c47705e21217c8bc63912d95c9e2a7cac6bdf SHA512 2dd25a4f51e3e71b78e82e32f3838137d8b21936c23c16f901f4180277c4d4b7f14e1f47d306022cc1d13dc2e0b7f405319632e554aa989f551f424cc423d60d WHIRLPOOL 081c97bca209bc234dfb4e439da45ecde1cfd4c2da31384601c96293a5ab5def9d713bee612b4c84a5372d5b9035126ff6cbc496bd56b141f89b6a4fe916540b
23 -DIST lxml-3.6.4.tar.gz 3707675 SHA256 61d5d3e00b5821e6cda099b3b4ccfea4527bf7c595e0fb3a7a760490cedd6172 SHA512 0412b266d7a70af21f2e4e05d63c3ce63049661ef27e2bf190cbfe1e982b6980fe980a998a360796b958fa9e148ae5bb48136354d4b0bb042055340e37f61e1e WHIRLPOOL b9cd81c885a1b12c36b50f4d616214f1912baed7991a3178e9415bffff74277c849b2e7c82fd7f27fb984148267348f5a72088d0b175ebf2731a16b876988255
24 DIST lxml-3.7.3.tar.gz 3797713 SHA256 aa502d78a51ee7d127b4824ff96500f0181d3c7826e6ee7b800d068be79361c7 SHA512 9bf1142e81b6e1c8a47e296774d7e448d9ed47de3672f7442cc33274b07252baa47a9346efa9d2fda7b7bb66beb95bbc81f0ae16c9f808ff568f330991dd6d13 WHIRLPOOL d3881f308622ed8beb03a59bbf8256a55b92f5cf41c2c9a0c65c1e53acceea33ab93f420151330b09e8dbde3f717d5c095aa0275406355ec4a17105de46b6bae
25 DIST lxml-3.8.0.tar.gz 3795205 SHA256 736f72be15caad8116891eb6aa4a078b590d231fdc63818c40c21624ac71db96 SHA512 08f6f352e22ed2bc199a5f34a1c6b5f7b41ec282dc0026c9f16a06466c27e39e8eb18608ba4493636170eeac4b0194f7050445e1cc9bd0a4628573c404593088 WHIRLPOOL b09d7509ca55df74c5ced03ca91b72e0f373df6cb22331a452a35cfe3aa305bb9417280ae0b4835cd4abd29f7df465468799fa25c1b8d732152222c74fee51e1
26
27 diff --git a/dev-python/lxml/lxml-3.6.0.ebuild b/dev-python/lxml/lxml-3.6.0.ebuild
28 deleted file mode 100644
29 index c6a5a0736f7..00000000000
30 --- a/dev-python/lxml/lxml-3.6.0.ebuild
31 +++ /dev/null
32 @@ -1,69 +0,0 @@
33 -# Copyright 1999-2017 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=5
37 -
38 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
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 -}
102
103 diff --git a/dev-python/lxml/lxml-3.6.4-r1.ebuild b/dev-python/lxml/lxml-3.6.4-r1.ebuild
104 deleted file mode 100644
105 index 126f505a988..00000000000
106 --- a/dev-python/lxml/lxml-3.6.4-r1.ebuild
107 +++ /dev/null
108 @@ -1,80 +0,0 @@
109 -# Copyright 1999-2017 Gentoo Foundation
110 -# Distributed under the terms of the GNU General Public License v2
111 -
112 -EAPI=6
113 -
114 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
115 -
116 -inherit distutils-r1 eutils flag-o-matic toolchain-funcs
117 -
118 -DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
119 -HOMEPAGE="http://lxml.de/ https://pypi.python.org/pypi/lxml/"
120 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
121 -
122 -LICENSE="BSD ElementTree GPL-2 PSF-2"
123 -SLOT="0"
124 -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"
125 -IUSE="doc examples +threads test"
126 -
127 -# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
128 -RDEPEND="
129 - >=dev-libs/libxml2-2.9.2
130 - >=dev-libs/libxslt-1.1.28"
131 -DEPEND="${RDEPEND}
132 - dev-python/setuptools[${PYTHON_USEDEP}]
133 - test? ( dev-python/cssselect[${PYTHON_USEDEP}] )
134 - "
135 -
136 -DISTUTILS_IN_SOURCE_BUILD=1
137 -
138 -PATCHES=(
139 - "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch
140 -
141 - # This patch removes a testcase that fails because of issues
142 - # in libxml2.
143 - #
144 - # Upstream bug: https://bugs.launchpad.net/lxml/+bug/1608479
145 - "${FILESDIR}"/${PN}-3.6.4-fix-test_xmlschema.patch
146 -)
147 -
148 -python_prepare_all() {
149 - # avoid replacing PYTHONPATH in tests.
150 - sed -i '/sys\.path/d' test.py || die
151 -
152 - distutils-r1_python_prepare_all
153 -}
154 -
155 -python_compile() {
156 - if [[ ${EPYTHON} != python3* ]]; then
157 - local -x CFLAGS="${CFLAGS}"
158 - append-cflags -fno-strict-aliasing
159 - fi
160 - tc-export PKG_CONFIG
161 - distutils-r1_python_compile
162 -}
163 -
164 -python_test() {
165 - cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
166 - cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
167 - ln -s "${S}"/doc "${BUILD_DIR}"/ || die
168 -
169 - "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}"
170 -}
171 -
172 -python_install_all() {
173 - if use doc; then
174 - local DOCS=( *.txt doc/*.txt )
175 - local HTML_DOCS=( doc/html/. )
176 - fi
177 - if use examples; then
178 - docinto examples
179 - dodoc -r samples/.
180 - fi
181 -
182 - distutils-r1_python_install_all
183 -}
184 -
185 -pkg_postinst() {
186 - optfeature "Support for BeautifulSoup3 as a parser backend" dev-python/beautifulsoup
187 - optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect
188 -}