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: lxml-2.2.3.ebuild ChangeLog
Date: Fri, 30 Oct 2009 21:11:38
Message-Id: E1N3yky-0001gF-87@stork.gentoo.org
1 arfrever 09/10/30 21:11:36
2
3 Modified: ChangeLog
4 Added: lxml-2.2.3.ebuild
5 Log:
6 Version bump. Add dependency on dev-python/beautifulsoup (bug #285482).
7 (Portage version: 14746-svn/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.66 dev-python/lxml/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/ChangeLog?rev=1.66&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/ChangeLog?rev=1.66&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/ChangeLog?r1=1.65&r2=1.66
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v
19 retrieving revision 1.65
20 retrieving revision 1.66
21 diff -u -r1.65 -r1.66
22 --- ChangeLog 10 Oct 2009 17:35:47 -0000 1.65
23 +++ ChangeLog 30 Oct 2009 21:11:35 -0000 1.66
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-python/lxml
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.65 2009/10/10 17:35:47 grobian Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.66 2009/10/30 21:11:35 arfrever Exp $
29 +
30 +*lxml-2.2.3 (30 Oct 2009)
31 +
32 + 30 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
33 + +lxml-2.2.3.ebuild:
34 + Version bump. Add dependency on dev-python/beautifulsoup (bug #285482).
35
36 10 Oct 2009; Fabian Groffen <grobian@g.o> lxml-2.2.2.ebuild:
37 Merge from Prefix
38
39
40
41 1.1 dev-python/lxml/lxml-2.2.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/lxml-2.2.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/lxml/lxml-2.2.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lxml-2.2.3.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.3.ebuild,v 1.1 2009/10/30 21:11:35 arfrever Exp $
51
52 EAPI="2"
53 SUPPORT_PYTHON_ABIS="1"
54
55 inherit distutils 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 ~ppc ~ppc64 ~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"
69 DEPEND="${RDEPEND}
70 >=dev-python/cython-0.9.8
71 >=dev-python/setuptools-0.6_rc5"
72 RESTRICT_PYTHON_ABIS="3.*"
73
74 pkg_setup() {
75 # Tests fail with some optimizations.
76 replace-flags -O[2-9s]* -O1
77 }
78
79 src_prepare() {
80 # Use Cython instead of own bundled version of Pyrex.
81 epatch "${FILESDIR}/${PN}-2.0.3-no-fake-pyrex.patch"
82 }
83
84 src_compile() {
85 local myconf
86 use threads || myconf+=" --without-threading"
87 distutils_src_compile ${myconf}
88 }
89
90 src_test() {
91 testing() {
92 local module
93 for module in lxml/etree lxml/objectify; do
94 ln -fs "../../$(ls -d build-${PYTHON_ABI}/lib.*)/${module}.so" "src/${module}.so" || die "ln -fs src/${module} failed"
95 done
96
97 einfo "Running test"
98 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" test.py || die "test.py failed with Python ${PYTHON_ABI}"
99 einfo "Running selftest"
100 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" selftest.py || die "selftest.py failed with Python ${PYTHON_ABI}"
101 einfo "Running selftest2"
102 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" selftest2.py || die "selftest2.py failed with Python ${PYTHON_ABI}"
103 }
104 python_execute_function testing
105 }
106
107 src_install() {
108 distutils_src_install
109
110 if use doc; then
111 dohtml doc/html/*
112 dodoc *.txt
113 docinto doc
114 dodoc doc/*.txt
115 fi
116
117 if use examples; then
118 insinto /usr/share/doc/${PF}/examples
119 doins -r samples/*
120 fi
121 }