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