Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/lxml/
Date: Fri, 01 Mar 2019 16:38:03
Message-Id: 1551458265.69b5100488125e20deddc62bb8b3f2e5b5eedf07.vdupras@gentoo
1 commit: 69b5100488125e20deddc62bb8b3f2e5b5eedf07
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 1 16:37:45 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 1 16:37:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69b51004
7
8 dev-python/lxml: remove old
9
10 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-python/lxml/Manifest | 2 -
14 dev-python/lxml/lxml-4.3.0.ebuild | 83 ---------------------------------------
15 dev-python/lxml/lxml-4.3.1.ebuild | 83 ---------------------------------------
16 3 files changed, 168 deletions(-)
17
18 diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest
19 index 61ef21fed78..8bbd08eb2c9 100644
20 --- a/dev-python/lxml/Manifest
21 +++ b/dev-python/lxml/Manifest
22 @@ -1,4 +1,2 @@
23 DIST lxml-4.2.5.tar.gz 4414081 BLAKE2B c1c75a0a0c33011e2becb729de2c15dd786dd12bddeba4f2f26032d0d17104f258b471f5f961cbf96340df66cbce3e874d7a16c59731af280a309132b669d1b9 SHA512 4cf336d3e1471e8a26492760a143881517d12eb1c2dad82f8786540471bfabd68f8c795d97b7362166418c2be3c7996816638fdbd5a594536b9981478b90fdfe
24 -DIST lxml-4.3.0.tar.gz 2483162 BLAKE2B 3f3646a47a0344af22bfb567a0985a27e8a46051850e99b5e82d0bc59c94c0e9b19ca93cf6d5d790599e81c9513686c3462ad6544ad658d0efd77ad431b07014 SHA512 49d122c8a6dafe50195bc8cfb3ea52780054a57762132c000cd976fdbdbabaab6bc8b95b77d124ae144f33c24d71793a2debbebf789d5ca866734a984edac8bb
25 -DIST lxml-4.3.1.tar.gz 4380082 BLAKE2B 112b75dc05fa11e1506bd07f717bb7bf4ca73d587fb7f36ea49ce734251504c42ebb62c3b86bcf620e9a0fe5e03e6c47bd7c69024ce4aa3bb8af82b8d44ddd28 SHA512 ab82bb5af330cbb15da73184b7a24f55be9271751bd1dfdff26f75c5e0c92a771c5de0e935bc9675513d4c871fe199071137cdafac3ecd7da6a896ede02093b0
26 DIST lxml-4.3.2.tar.gz 4380761 BLAKE2B f65cdf49d5b9b9eb2add5c1ae6d83f583212b038315d43483fec015fa91a45ee705131f11a9e418ed8e490da4e71c70ccdbb16b4f53554c068235fa9eee607c5 SHA512 9536e0dd58f43c3760b57d8e2f2ec7e365e6c27f3bc7276fac4877f7665ffd19a4f9613c9e55d6b295c3045a89cc7f62f35c4dcd6a7b61f46f85d14d1a4f0283
27
28 diff --git a/dev-python/lxml/lxml-4.3.0.ebuild b/dev-python/lxml/lxml-4.3.0.ebuild
29 deleted file mode 100644
30 index 38415295fbb..00000000000
31 --- a/dev-python/lxml/lxml-4.3.0.ebuild
32 +++ /dev/null
33 @@ -1,83 +0,0 @@
34 -# Copyright 1999-2019 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy )
40 -
41 -inherit distutils-r1 eutils toolchain-funcs
42 -
43 -DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
44 -HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml"
45 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 -
47 -LICENSE="BSD ElementTree GPL-2 PSF-2"
48 -SLOT="0"
49 -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"
50 -IUSE="doc examples +threads test"
51 -
52 -# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
53 -RDEPEND="
54 - >=dev-libs/libxml2-2.9.5
55 - >=dev-libs/libxslt-1.1.28"
56 -DEPEND="${RDEPEND}"
57 -BDEPEND="
58 - virtual/pkgconfig
59 - $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' python2_7 'python3*')
60 - dev-python/setuptools[${PYTHON_USEDEP}]
61 - test? ( dev-python/cssselect[${PYTHON_USEDEP}] )
62 - "
63 -
64 -DISTUTILS_IN_SOURCE_BUILD=1
65 -
66 -PATCHES=(
67 - "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch
68 -)
69 -
70 -python_prepare_all() {
71 - # avoid replacing PYTHONPATH in tests.
72 - sed -i -e '/sys\.path/d' test.py || die
73 -
74 - # apparently logs have changed with libxslt upgrade
75 - # https://bugs.launchpad.net/lxml/+bug/1782078
76 - sed -i -e '/assertEqual(4, len(log)/d' src/lxml/tests/test_threading.py || die
77 -
78 - # don't use some random SDK on Darwin
79 - sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \
80 - setupinfo.py || die
81 -
82 - distutils-r1_python_prepare_all
83 -}
84 -
85 -python_compile() {
86 - if ! python_is_python3; then
87 - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
88 - fi
89 - tc-export PKG_CONFIG
90 - distutils-r1_python_compile
91 -}
92 -
93 -python_test() {
94 - cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
95 - cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
96 - ln -s "${S}"/doc "${BUILD_DIR}"/ || die
97 -
98 - "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}"
99 -}
100 -
101 -python_install_all() {
102 - if use doc; then
103 - local DOCS=( README.rst *.txt doc/*.txt )
104 - local HTML_DOCS=( doc/html/. )
105 - fi
106 - if use examples; then
107 - dodoc -r samples
108 - fi
109 -
110 - distutils-r1_python_install_all
111 -}
112 -
113 -pkg_postinst() {
114 - optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup
115 - optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect
116 -}
117
118 diff --git a/dev-python/lxml/lxml-4.3.1.ebuild b/dev-python/lxml/lxml-4.3.1.ebuild
119 deleted file mode 100644
120 index 38415295fbb..00000000000
121 --- a/dev-python/lxml/lxml-4.3.1.ebuild
122 +++ /dev/null
123 @@ -1,83 +0,0 @@
124 -# Copyright 1999-2019 Gentoo Authors
125 -# Distributed under the terms of the GNU General Public License v2
126 -
127 -EAPI=7
128 -
129 -PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy )
130 -
131 -inherit distutils-r1 eutils toolchain-funcs
132 -
133 -DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
134 -HOMEPAGE="https://lxml.de/ https://pypi.org/project/lxml/ https://github.com/lxml/lxml"
135 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
136 -
137 -LICENSE="BSD ElementTree GPL-2 PSF-2"
138 -SLOT="0"
139 -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"
140 -IUSE="doc examples +threads test"
141 -
142 -# Note: lib{xml2,xslt} are used as C libraries, not Python modules.
143 -RDEPEND="
144 - >=dev-libs/libxml2-2.9.5
145 - >=dev-libs/libxslt-1.1.28"
146 -DEPEND="${RDEPEND}"
147 -BDEPEND="
148 - virtual/pkgconfig
149 - $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' python2_7 'python3*')
150 - dev-python/setuptools[${PYTHON_USEDEP}]
151 - test? ( dev-python/cssselect[${PYTHON_USEDEP}] )
152 - "
153 -
154 -DISTUTILS_IN_SOURCE_BUILD=1
155 -
156 -PATCHES=(
157 - "${FILESDIR}"/${PN}-3.5.0-cross-compile.patch
158 -)
159 -
160 -python_prepare_all() {
161 - # avoid replacing PYTHONPATH in tests.
162 - sed -i -e '/sys\.path/d' test.py || die
163 -
164 - # apparently logs have changed with libxslt upgrade
165 - # https://bugs.launchpad.net/lxml/+bug/1782078
166 - sed -i -e '/assertEqual(4, len(log)/d' src/lxml/tests/test_threading.py || die
167 -
168 - # don't use some random SDK on Darwin
169 - sed -i -e '/_ldflags =/s/=.*isysroot.*darwin.*None/= None/' \
170 - setupinfo.py || die
171 -
172 - distutils-r1_python_prepare_all
173 -}
174 -
175 -python_compile() {
176 - if ! python_is_python3; then
177 - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
178 - fi
179 - tc-export PKG_CONFIG
180 - distutils-r1_python_compile
181 -}
182 -
183 -python_test() {
184 - cp -r -l src/lxml/tests "${BUILD_DIR}"/lib/lxml/ || die
185 - cp -r -l src/lxml/html/tests "${BUILD_DIR}"/lib/lxml/html/ || die
186 - ln -s "${S}"/doc "${BUILD_DIR}"/ || die
187 -
188 - "${EPYTHON}" test.py -vv --all-levels -p || die "Test ${test} fails with ${EPYTHON}"
189 -}
190 -
191 -python_install_all() {
192 - if use doc; then
193 - local DOCS=( README.rst *.txt doc/*.txt )
194 - local HTML_DOCS=( doc/html/. )
195 - fi
196 - if use examples; then
197 - dodoc -r samples
198 - fi
199 -
200 - distutils-r1_python_install_all
201 -}
202 -
203 -pkg_postinst() {
204 - optfeature "Support for BeautifulSoup as a parser backend" dev-python/beautifulsoup
205 - optfeature "Translates CSS selectors to XPath 1.0 expressions" dev-python/cssselect
206 -}