From: | "Mike Gilbert (floppym)" <floppym@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/feedparser: feedparser-5.1.ebuild ChangeLog |
Date: | Tue, 03 Jan 2012 04:18:25 |
Message-Id: | 20120103041813.5C8182004C@flycatcher.gentoo.org |
1 | floppym 12/01/03 04:18:13 |
2 | |
3 | Modified: ChangeLog |
4 | Added: feedparser-5.1.ebuild |
5 | Log: |
6 | Version bump for bug 393639. Thanks to Johan Bergström and Arfrever. Includes patch by sping. Fails tests. |
7 | |
8 | (Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.33 dev-python/feedparser/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/feedparser/ChangeLog?rev=1.33&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/feedparser/ChangeLog?rev=1.33&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/feedparser/ChangeLog?r1=1.32&r2=1.33 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-python/feedparser/ChangeLog,v |
20 | retrieving revision 1.32 |
21 | retrieving revision 1.33 |
22 | diff -u -r1.32 -r1.33 |
23 | --- ChangeLog 2 Jan 2012 05:28:20 -0000 1.32 |
24 | +++ ChangeLog 3 Jan 2012 04:18:13 -0000 1.33 |
25 | @@ -1,6 +1,13 @@ |
26 | # ChangeLog for dev-python/feedparser |
27 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/ChangeLog,v 1.32 2012/01/02 05:28:20 floppym Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/ChangeLog,v 1.33 2012/01/03 04:18:13 floppym Exp $ |
30 | + |
31 | +*feedparser-5.1 (03 Jan 2012) |
32 | + |
33 | + 03 Jan 2012; Mike Gilbert <floppym@g.o> +feedparser-5.1.ebuild, |
34 | + +files/feedparser-5.1-sgmllib.patch: |
35 | + Version bump for bug 393639. Thanks to Johan Bergström and Arfrever. Includes |
36 | + patch by sping. Fails tests. |
37 | |
38 | 02 Jan 2012; Mike Gilbert <floppym@g.o> Manifest: |
39 | Fix manifest |
40 | |
41 | |
42 | |
43 | 1.1 dev-python/feedparser/feedparser-5.1.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/feedparser/feedparser-5.1.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/feedparser/feedparser-5.1.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: feedparser-5.1.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2012 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/feedparser-5.1.ebuild,v 1.1 2012/01/03 04:18:13 floppym Exp $ |
53 | |
54 | EAPI="4" |
55 | SUPPORT_PYTHON_ABIS="1" |
56 | PYTHON_TESTS_RESTRICTED_ABIS="*-jython" |
57 | PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*" |
58 | |
59 | inherit distutils eutils |
60 | |
61 | DESCRIPTION="Parse RSS and Atom feeds in Python" |
62 | HOMEPAGE="http://code.google.com/p/feedparser/ http://pypi.python.org/pypi/feedparser" |
63 | SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2" |
64 | |
65 | # sgmllib is licensed under PSF-2. |
66 | LICENSE="BSD-2 PSF-2" |
67 | SLOT="0" |
68 | KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" |
69 | IUSE="" |
70 | |
71 | DEPEND="dev-python/setuptools" |
72 | RDEPEND="" |
73 | |
74 | DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" |
75 | PYTHON_MODNAME="feedparser.py _feedparser_sgmllib.py" |
76 | |
77 | src_prepare() { |
78 | mv feedparser/sgmllib3.py feedparser/_feedparser_sgmllib.py || die "Renaming sgmllib3.py failed" |
79 | epatch "${FILESDIR}/${P}-sgmllib.patch" |
80 | |
81 | sed -e "/import feedparser/isys.path.insert(0, '../build/lib')" -i feedparser/feedparsertest.py |
82 | |
83 | distutils_src_prepare |
84 | |
85 | preparation() { |
86 | if [[ "${PYTHON_ABI}" == 3.* ]]; then |
87 | 2to3-${PYTHON_ABI} -nw --no-diffs feedparser/feedparsertest.py |
88 | else |
89 | # Avoid SyntaxErrors with Python 2. |
90 | echo "raise ImportError" > feedparser/_feedparser_sgmllib.py |
91 | fi |
92 | } |
93 | python_execute_function -s preparation |
94 | } |
95 | |
96 | src_test() { |
97 | testing() { |
98 | cd feedparser || return 1 |
99 | "$(PYTHON)" feedparsertest.py |
100 | } |
101 | python_execute_function -s testing |
102 | } |