blob: 2b386da86f0cdc0f3a42a734a4b2cef48700b35a (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/scrapy-0.19.0.ebuild,v 1.1 2014/06/09 08:50:30 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite(+)"
inherit vcs-snapshot distutils-r1
DESCRIPTION="A high-level Python Screen Scraping framework"
HOMEPAGE="http://scrapy.org http://pypi.python.org/pypi/Scrapy/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="boto doc ibl test ssl"
RDEPEND="dev-python/six[${PYTHON_USEDEP}]
dev-libs/libxml2[python,${PYTHON_USEDEP}]
virtual/python-imaging[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
ibl? ( dev-python/numpy[${PYTHON_USEDEP}] )
ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
boto? ( dev-python/boto[${PYTHON_USEDEP}] )
>=dev-python/twisted-core-8.0[${PYTHON_USEDEP}]
>=dev-python/twisted-conch-8.0[${PYTHON_USEDEP}]
>=dev-python/twisted-mail-8.0[${PYTHON_USEDEP}]
>=dev-python/twisted-web-8.0[${PYTHON_USEDEP}]
>=dev-python/w3lib-1.2[${PYTHON_USEDEP}]
dev-python/queuelib[${PYTHON_USEDEP}]"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( ${RDEPEND}
dev-python/boto[${PYTHON_USEDEP}]
dev-python/django[${PYTHON_USEDEP}]
net-ftp/vsftpd
dev-python/pillow[${PYTHON_USEDEP}] )"
REQUIRED_USE="test? ( ssl boto )"
python_prepare_all() {
# Skip failing tests; https://github.com/scrapy/scrapy/issues/725
sed -e s':test_process_parallel_failure:_&:' \
-i scrapy/tests/test_utils_defer.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
if use doc; then
PYTHONPATH="${S}" emake -C docs html || die "emake html failed"
fi
}
python_test() {
PYTHONPATH="${PWD}" bin/runtests.sh || die
}
python_install_all() {
use doc && local HTML_DOCS=( docs/build/html/. )
distutils-r1_python_install_all
}
|