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/beautifulsoup: ChangeLog beautifulsoup-3.1.0.1.ebuild
Date: Tue, 08 Sep 2009 19:57:06
Message-Id: E1Ml6oK-00059A-CR@stork.gentoo.org
1 arfrever 09/09/08 19:57:04
2
3 Modified: ChangeLog beautifulsoup-3.1.0.1.ebuild
4 Log:
5 Add patch for compatibility with Python 3 (upstream patches don't apply cleanly). Set SUPPORT_PYTHON_ABIS.
6 (Portage version: 14218-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.21 dev-python/beautifulsoup/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/beautifulsoup/ChangeLog?rev=1.21&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/beautifulsoup/ChangeLog?rev=1.21&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/beautifulsoup/ChangeLog?r1=1.20&r2=1.21
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/ChangeLog,v
18 retrieving revision 1.20
19 retrieving revision 1.21
20 diff -u -r1.20 -r1.21
21 --- ChangeLog 7 Sep 2009 19:12:39 -0000 1.20
22 +++ ChangeLog 8 Sep 2009 19:57:04 -0000 1.21
23 @@ -1,6 +1,11 @@
24 # ChangeLog for dev-python/beautifulsoup
25 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/ChangeLog,v 1.20 2009/09/07 19:12:39 patrick Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/ChangeLog,v 1.21 2009/09/08 19:57:04 arfrever Exp $
28 +
29 + 08 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
30 + beautifulsoup-3.1.0.1.ebuild, +files/beautifulsoup-3.1.0.1-python-3.patch:
31 + Add patch for compatibility with Python 3 (upstream patches don't apply
32 + cleanly). Set SUPPORT_PYTHON_ABIS.
33
34 *beautifulsoup-3.1.0.1 (07 Sep 2009)
35
36
37
38
39 1.2 dev-python/beautifulsoup/beautifulsoup-3.1.0.1.ebuild
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-3.1.0.1.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-3.1.0.1.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-3.1.0.1.ebuild?r1=1.1&r2=1.2
44
45 Index: beautifulsoup-3.1.0.1.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-3.1.0.1.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- beautifulsoup-3.1.0.1.ebuild 7 Sep 2009 19:12:39 -0000 1.1
52 +++ beautifulsoup-3.1.0.1.ebuild 8 Sep 2009 19:57:04 -0000 1.2
53 @@ -1,24 +1,50 @@
54 # Copyright 1999-2009 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-3.1.0.1.ebuild,v 1.1 2009/09/07 19:12:39 patrick Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-3.1.0.1.ebuild,v 1.2 2009/09/08 19:57:04 arfrever Exp $
58 +
59 +EAPI="2"
60
61 NEED_PYTHON="2.3"
62 +SUPPORT_PYTHON_ABIS="1"
63
64 -inherit distutils
65 +inherit distutils eutils
66
67 -MY_PN=BeautifulSoup
68 -MY_P=${MY_PN}-${PV}
69 +MY_PN="BeautifulSoup"
70 +MY_P="${MY_PN}-${PV}"
71
72 DESCRIPTION="HTML/XML parser for quick-turnaround applications like screen-scraping."
73 HOMEPAGE="http://www.crummy.com/software/BeautifulSoup/"
74 SRC_URI="http://www.crummy.com/software/${MY_PN}/download/${MY_P}.tar.gz"
75 +
76 LICENSE="PSF-2.3"
77 SLOT="0"
78 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
79 IUSE=""
80
81 -S=${WORKDIR}/${MY_P}
82 +DEPEND=""
83 +RDEPEND=""
84 +
85 +S="${WORKDIR}/${MY_P}"
86 +
87 +DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
88 +
89 +src_prepare() {
90 + python_copy_sources --no-link
91 +
92 + conversion() {
93 + [[ "${PYTHON_ABI}" == 2.* ]] && return
94 + epatch "${FILESDIR}/${P}-python-3.patch"
95 + }
96 + python_execute_function --action-message 'Applying patches for Python ${PYTHON_ABI}' --failure-message 'Applying patches for Python ${PYTHON_ABI} failed' -s conversion
97 +}
98
99 src_test() {
100 - PYTHONPATH="." "${python}" BeautifulSoupTests.py || die "tests failed"
101 + testing() {
102 + PYTHONPATH="build/lib" "$(PYTHON)" BeautifulSoupTests.py
103 + }
104 + python_execute_function -s testing
105 +}
106 +
107 +pkg_postinst() {
108 + python_mod_optimize BeautifulSoup.py BeautifulSoupTests.py
109 }