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.2.ebuild |
Date: | Wed, 30 Nov 2011 15:30:53 |
Message-Id: | 20111130153033.59B9A2004B@flycatcher.gentoo.org |
1 | djc 11/11/30 15:30:33 |
2 | |
3 | Modified: ChangeLog |
4 | Added: lxml-2.3.2.ebuild |
5 | Log: |
6 | Version bump lxml to 2.3.2. |
7 | |
8 | (Portage version: 2.1.10.39/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.106 dev-python/lxml/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/ChangeLog?rev=1.106&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/ChangeLog?rev=1.106&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/ChangeLog?r1=1.105&r2=1.106 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v |
20 | retrieving revision 1.105 |
21 | retrieving revision 1.106 |
22 | diff -u -r1.105 -r1.106 |
23 | --- ChangeLog 11 Oct 2011 15:07:58 -0000 1.105 |
24 | +++ ChangeLog 30 Nov 2011 15:30:33 -0000 1.106 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-python/lxml |
27 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.105 2011/10/11 15:07:58 djc Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/ChangeLog,v 1.106 2011/11/30 15:30:33 djc Exp $ |
30 | + |
31 | +*lxml-2.3.2 (30 Nov 2011) |
32 | + |
33 | + 30 Nov 2011; Dirkjan Ochtman <djc@g.o> +lxml-2.3.2.ebuild: |
34 | + Version bump to 2.3.2. |
35 | |
36 | *lxml-2.3.1 (11 Oct 2011) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 dev-python/lxml/lxml-2.3.2.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/lxml-2.3.2.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/lxml/lxml-2.3.2.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: lxml-2.3.2.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2011 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.2.ebuild,v 1.1 2011/11/30 15:30:33 djc Exp $ |
51 | |
52 | EAPI="3" |
53 | SUPPORT_PYTHON_ABIS="1" |
54 | RESTRICT_PYTHON_ABIS="*-jython" |
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="~amd64 ~arm ~hppa ~ia64 ~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 | } |