Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/lxml: ChangeLog lxml-2.2.6.ebuild
Date: Tue, 02 Mar 2010 17:35:55
Message-Id: E1NmW0d-0005EC-Bq@stork.gentoo.org
1 arfrever 10/03/02 17:35:51
2
3 Modified: ChangeLog
4 Added: lxml-2.2.6.ebuild
5 Log:
6 Version bump.
7 (Portage version: 15515-svn/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.77 dev-python/lxml/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/ChangeLog?rev=1.77&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/ChangeLog?rev=1.77&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/ChangeLog?r1=1.76&r2=1.77
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v
19 retrieving revision 1.76
20 retrieving revision 1.77
21 diff -u -r1.76 -r1.77
22 --- ChangeLog 10 Feb 2010 04:15:22 -0000 1.76
23 +++ ChangeLog 2 Mar 2010 17:35:50 -0000 1.77
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/lxml
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.76 2010/02/10 04:15:22 josejx Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.77 2010/03/02 17:35:50 arfrever Exp $
29 +
30 +*lxml-2.2.6 (02 Mar 2010)
31 +
32 + 02 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
33 + +lxml-2.2.6.ebuild:
34 + Version bump.
35
36 10 Feb 2010; Joseph Jezak <josejx@g.o> lxml-2.2.4.ebuild:
37 Marked ppc stable for bug #301955.
38
39
40
41 1.1 dev-python/lxml/lxml-2.2.6.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/lxml-2.2.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/lxml-2.2.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lxml-2.2.6.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/lxml-2.2.6.ebuild,v 1.1 2010/03/02 17:35:50 arfrever Exp $
51
52 EAPI="2"
53 SUPPORT_PYTHON_ABIS="1"
54
55 inherit distutils eutils flag-o-matic
56
57 DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
58 HOMEPAGE="http://codespeak.net/lxml/ http://pypi.python.org/pypi/lxml"
59 SRC_URI="http://codespeak.net/lxml/${P}.tgz"
60
61 LICENSE="BSD ElementTree GPL-2 PSF-2.4"
62 SLOT="0"
63 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
64 IUSE="doc examples +threads"
65
66 RDEPEND=">=dev-libs/libxml2-2.7.2
67 >=dev-libs/libxslt-1.1.15
68 >=dev-python/beautifulsoup-3.0.8"
69 DEPEND="${RDEPEND}
70 >=dev-python/setuptools-0.6_rc5"
71 # lxml tarball contains files pregenerated by Cython.
72
73 pkg_setup() {
74 # Tests fail with some optimizations.
75 replace-flags -O[2-9s]* -O1
76 }
77
78 src_prepare() {
79 distutils_src_prepare
80
81 # Disable broken tests.
82 sed -e "/elementsoup\.txt/d" -i src/lxml/html/tests/test_elementsoup.py || die "sed failed"
83
84 epatch "${FILESDIR}/${PN}-2.2.4-python-3.patch"
85 }
86
87 src_compile() {
88 local myconf
89 use threads || myconf+=" --without-threading"
90 distutils_src_compile ${myconf}
91 }
92
93 src_test() {
94 testing() {
95 # Tests are broken with Python 3.
96 [[ "${PYTHON_ABI}" == 3.* ]] && return
97
98 local module
99 for module in lxml/etree lxml/objectify; do
100 ln -fs "../../$(ls -d build-${PYTHON_ABI}/lib.*)/${module}.so" "src/${module}.so" || die "ln -fs src/${module} failed"
101 done
102
103 local return_status="0" test
104 for test in test.py selftest.py selftest2.py; do
105 einfo "Running ${test}"
106 if ! PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" "${test}"; then
107 eerror "${test} failed with Python ${PYTHON_ABI}"
108 return_status="1"
109 fi
110 done
111
112 return "${return_status}"
113 }
114 python_execute_function testing
115 }
116
117 src_install() {
118 distutils_src_install
119
120 if use doc; then
121 dohtml -r doc/html/*
122 dodoc *.txt
123 docinto doc
124 dodoc doc/*.txt
125 fi
126
127 if use examples; then
128 insinto /usr/share/doc/${PF}/examples
129 doins -r samples/*
130 fi
131 }