blob: 6084e7d5128e12c168ee69938970ffcbc95b9447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/beautifulsoup/beautifulsoup-3.1.0.1-r1.ebuild,v 1.3 2010/01/26 18:30:10 grobian Exp $
EAPI="2"
NEED_PYTHON="3.0"
SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils
MY_PN="BeautifulSoup"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="HTML/XML parser for quick-turnaround applications like screen-scraping."
HOMEPAGE="http://www.crummy.com/software/BeautifulSoup/"
SRC_URI="http://www.crummy.com/software/${MY_PN}/download/${MY_P}.tar.gz"
LICENSE="PSF-2.3"
SLOT="3.1"
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
IUSE=""
DEPEND=""
RDEPEND="!dev-python/beautifulsoup:0
dev-python/beautifulsoup:3.0"
# Avoid collisions with 3.0 slot.
RESTRICT_PYTHON_ABIS="2.*"
S="${WORKDIR}/${MY_P}"
PYTHON_MODNAME="BeautifulSoup.py BeautifulSoupTests.py"
src_prepare() {
distutils_src_prepare
epatch "${FILESDIR}/${P}-python-3.patch"
}
src_test() {
testing() {
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" BeautifulSoupTests.py
}
python_execute_function testing
}
src_install() {
distutils_src_install
# Delete useless files.
rm -fr "${D%/}${EPREFIX}/usr/bin"
}
|