Lines 4-9
Link Here
|
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
|
|
7 |
DISTUTILS_SINGLE_IMPL=1 |
7 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
8 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
8 |
|
9 |
|
9 |
inherit distutils-r1 |
10 |
inherit distutils-r1 |
Lines 19-38
Link Here
|
19 |
|
20 |
|
20 |
RDEPEND=" |
21 |
RDEPEND=" |
21 |
dev-python/numpy[${PYTHON_USEDEP}] |
22 |
dev-python/numpy[${PYTHON_USEDEP}] |
22 |
sci-physics/root[${PYTHON_USEDEP}]" |
23 |
sci-physics/root[python,${PYTHON_USEDEP}]" |
23 |
|
24 |
|
24 |
DEPEND="${RDEPEND} |
25 |
DEPEND="${RDEPEND} |
25 |
test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
26 |
test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
26 |
|
27 |
|
27 |
python_test() { |
28 |
python_test() { |
28 |
cd ${BUILD_DIR} || die |
29 |
cd ${BUILD_DIR} || die |
29 |
nosetests-${EPYTHON} -v || die "Testing failed with ${EPYTHON}" |
30 |
nosetests -v || die "Testing failed with ${EPYTHON}" |
30 |
} |
31 |
} |
31 |
|
32 |
|
32 |
python_install_all() { |
33 |
python_install_all() { |
|
|
34 |
use examples && local EXAMPLES=( tutorial/. ) |
33 |
distutils-r1_python_install_all |
35 |
distutils-r1_python_install_all |
34 |
if use examples; then |
|
|
35 |
insinto /usr/share/doc/${PF}/examples |
36 |
doins -r tutorial/* |
37 |
fi |
38 |
} |
36 |
} |