You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI="5"
|
|
# A few tests fail with python3.3/3.4 :(
|
|
PYTHON_COMPAT=( python3_4 pypy3 )
|
|
|
|
inherit distutils-r1 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/ https://pypi.python.org/pypi/BeautifulSoup"
|
|
SRC_URI="http://www.crummy.com/software/${MY_PN}/download/${MY_P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="python-3"
|
|
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND="!dev-python/beautifulsoup:0"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-python-3.patch"
|
|
"${FILESDIR}/${P}-disable-tests.patch"
|
|
)
|
|
|
|
python_test() {
|
|
"${PYTHON}" BeautifulSoupTests.py || die "Tests fail with ${EPYTHON}"
|
|
}
|
|
|
|
python_install_all() {
|
|
distutils-r1_python_install_all
|
|
# Delete useless files.
|
|
rm -r "${ED%/}/usr/bin" || die
|
|
}
|