|
Lines 2-15
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/scrapy-0.14.2.ebuild,v 1.1 2012/02/21 13:01:03 maksbotan Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/scrapy/scrapy-0.14.2.ebuild,v 1.1 2012/02/21 13:01:03 maksbotan Exp $ |
| 4 |
|
4 |
|
| 5 |
EAPI="3" |
5 |
EAPI="4" |
| 6 |
|
6 |
|
| 7 |
PYTHON_DEPEND="2:2.5" |
7 |
PYTHON_DEPEND="2:2.5" |
| 8 |
PYTHON_USE_WITH="sqlite" |
8 |
PYTHON_USE_WITH="sqlite" |
| 9 |
SUPPORT_PYTHON_ABIS="1" |
9 |
SUPPORT_PYTHON_ABIS="1" |
| 10 |
RESTRICT_PYTHON_ABIS="3.*" |
10 |
RESTRICT_PYTHON_ABIS="3.* *-pypy-*" |
| 11 |
|
11 |
DISTUTILS_SRC_TEST="setup.py" |
| 12 |
inherit distutils python |
12 |
inherit distutils |
| 13 |
|
13 |
|
| 14 |
MY_PN="Scrapy" |
14 |
MY_PN="Scrapy" |
| 15 |
MY_P="${MY_PN}-${PV}" |
15 |
MY_P="${MY_PN}-${PV}" |
|
Lines 22-27
Link Here
|
| 22 |
SLOT="0" |
22 |
SLOT="0" |
| 23 |
KEYWORDS="~amd64 ~x86" |
23 |
KEYWORDS="~amd64 ~x86" |
| 24 |
IUSE="boto doc examples ibl ssl" |
24 |
IUSE="boto doc examples ibl ssl" |
|
|
25 |
# New found test script has failures |
| 26 |
RESTRICT="test" |
| 25 |
|
27 |
|
| 26 |
DEPEND="dev-python/setuptools |
28 |
DEPEND="dev-python/setuptools |
| 27 |
doc? ( dev-python/sphinx )" |
29 |
doc? ( dev-python/sphinx )" |
|
Lines 37-62
Link Here
|
| 37 |
dev-python/twisted-conch |
39 |
dev-python/twisted-conch |
| 38 |
dev-python/twisted-mail |
40 |
dev-python/twisted-mail |
| 39 |
dev-python/twisted-web |
41 |
dev-python/twisted-web |
| 40 |
dev-python/w3lib" |
42 |
dev-python/w3lib |
|
|
43 |
test? ( dev-python/django )" |
| 41 |
|
44 |
|
| 42 |
S="${WORKDIR}/${MY_P}" |
45 |
S="${WORKDIR}/${MY_P}" |
| 43 |
|
46 |
|
|
|
47 |
src_prepare() { |
| 48 |
sed -e s':decs = "1000.12":decs = 1000.12:' \ |
| 49 |
-i scrapy/tests/test_utils_serialize.py || die |
| 50 |
} |
| 51 |
|
| 44 |
src_compile() { |
52 |
src_compile() { |
| 45 |
distutils_src_compile |
53 |
distutils_src_compile |
|
|
54 |
|
| 46 |
if use doc; then |
55 |
if use doc; then |
| 47 |
cd docs |
56 |
emake -C docs html || die "emake html failed" |
| 48 |
emake html || die "emake html failed" |
|
|
| 49 |
cd "${S}" |
| 50 |
fi |
57 |
fi |
| 51 |
} |
58 |
} |
| 52 |
|
59 |
|
|
|
60 |
src_test() { |
| 61 |
testing() { |
| 62 |
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" bin/runtests.sh || die |
| 63 |
} |
| 64 |
python_execute_function testing |
| 65 |
} |
| 66 |
|
| 53 |
src_install() { |
67 |
src_install() { |
| 54 |
distutils_src_install |
68 |
distutils_src_install |
| 55 |
if use doc; then |
69 |
if use doc; then |
| 56 |
dohtml -r "${S}"/docs/build/html/ || die "dohtml failed" |
70 |
dohtml -r "${S}"/docs/build/html/ |
| 57 |
fi |
71 |
fi |
| 58 |
if use examples; then |
72 |
if use examples; then |
| 59 |
insinto /usr/share/doc/"${PF}"/examples |
73 |
insinto /usr/share/doc/"${PF}"/examples |
| 60 |
doins -r "${S}"/examples/* || die "doins failed" |
74 |
doins -r "${S}"/examples/* |
| 61 |
fi |
75 |
fi |
| 62 |
} |
76 |
} |