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.3.ebuild
Date: Sun, 06 Feb 2011 22:49:33
Message-Id: 20110206224923.4D02A20054@flycatcher.gentoo.org
1 arfrever 11/02/06 22:49:23
2
3 Modified: ChangeLog
4 Added: lxml-2.3.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha20/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.95 dev-python/lxml/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/ChangeLog?rev=1.95&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/ChangeLog?rev=1.95&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/ChangeLog?r1=1.94&r2=1.95
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v
20 retrieving revision 1.94
21 retrieving revision 1.95
22 diff -u -r1.94 -r1.95
23 --- ChangeLog 27 Dec 2010 21:01:02 -0000 1.94
24 +++ ChangeLog 6 Feb 2011 22:49:22 -0000 1.95
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/lxml
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.94 2010/12/27 21:01:02 ranger Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.95 2011/02/06 22:49:22 arfrever Exp $
31 +
32 +*lxml-2.3 (06 Feb 2011)
33 +
34 + 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
35 + -lxml-2.2.6.ebuild, -lxml-2.2.7.ebuild, +lxml-2.3.ebuild:
36 + Version bump.
37
38 27 Dec 2010; Brent Baude <ranger@g.o> lxml-2.2.8.ebuild:
39 Marking lxml-2.2.8 ppc64 for bug 341325
40
41
42
43 1.1 dev-python/lxml/lxml-2.3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/lxml-2.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/lxml-2.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lxml-2.3.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/lxml-2.3.ebuild,v 1.1 2011/02/06 22:49:22 arfrever Exp $
53
54 EAPI="3"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="*-jython"
57
58 inherit distutils
59
60 MY_P="${PN}-${PV/_/}"
61
62 DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries"
63 HOMEPAGE="http://codespeak.net/lxml/ http://pypi.python.org/pypi/lxml"
64 SRC_URI="http://codespeak.net/lxml/${MY_P}.tgz"
65 # SRC_URI="http://codespeak.net/lxml/dev/${MY_P}.tgz"
66
67 LICENSE="BSD ElementTree GPL-2 PSF-2.4"
68 SLOT="0"
69 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
70 IUSE="doc examples +threads"
71
72 RDEPEND=">=dev-libs/libxml2-2.7.2
73 >=dev-libs/libxslt-1.1.15
74 >=dev-python/beautifulsoup-3.0.8"
75 DEPEND="${RDEPEND}
76 dev-python/setuptools"
77 # lxml tarball contains files pregenerated by Cython.
78
79 S="${WORKDIR}/${MY_P}"
80
81 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
82
83 # Compiler warnings are suppressed without --warnings option.
84 DISTUTILS_GLOBAL_OPTIONS=("--warnings")
85
86 src_compile() {
87 distutils_src_compile $(use threads || echo --without-threading)
88 }
89
90 src_test() {
91 testing() {
92 # Tests broken with Python 3.
93 [[ "${PYTHON_ABI}" == 3.* ]] && return
94
95 local module
96 for module in lxml/etree lxml/objectify; do
97 ln -fs "../../$(ls -d build-${PYTHON_ABI}/lib.*)/${module}.so" "src/${module}.so" || die "ln -fs src/${module} failed"
98 done
99
100 local exit_status="0" test
101 for test in test.py selftest.py selftest2.py; do
102 einfo "Running ${test}"
103 if ! PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" "${test}"; then
104 eerror "${test} failed with $(python_get_implementation) $(python_get_version)"
105 exit_status="1"
106 fi
107 done
108
109 return "${exit_status}"
110 }
111 python_execute_function testing
112 }
113
114 src_install() {
115 distutils_src_install
116
117 if use doc; then
118 dohtml -r doc/html/* || die "Installation of documentation failed"
119 dodoc *.txt || die "Installation of documentation failed"
120 docinto doc
121 dodoc doc/*.txt || die "Installation of documentation failed"
122 fi
123
124 if use examples; then
125 insinto /usr/share/doc/${PF}/examples
126 doins -r samples/* || die "Installation of examples failed"
127 fi
128 }