Lines 15-28
SLOT="0"
Link Here
|
15 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" |
15 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" |
16 |
IUSE="doc" |
16 |
IUSE="doc" |
17 |
|
17 |
|
|
|
18 |
# USE=doc has a circular reference. Like sphinx itself (sphinx[doc] |
19 |
# requires jinja, and jinja[doc] requires sphinx), it is best to install |
20 |
# once with USE=-doc before installing with USE=doc. |
21 |
# See: https://bugs.gentoo.org/show_bug.cgi?id=759643 |
18 |
DEPEND=" |
22 |
DEPEND=" |
19 |
dev-python/setuptools[${PYTHON_USEDEP}] |
23 |
dev-python/setuptools[${PYTHON_USEDEP}] |
20 |
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
24 |
doc? ( |
|
|
25 |
dev-python/sphinx[${PYTHON_USEDEP}] |
26 |
dev-python/sphinxcontrib-asyncio:=[${PYTHON_USEDEP}] |
27 |
) |
21 |
" |
28 |
" |
22 |
RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]" |
29 |
RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]" |
23 |
|
30 |
|
|
|
31 |
PATCHES=( |
32 |
# See: https://bugs.gentoo.org/show_bug.cgi?id=759643 |
33 |
"${FILESDIR}/${PN}-remove-parent-ref.patch" |
34 |
) |
35 |
|
24 |
python_compile_all() { |
36 |
python_compile_all() { |
25 |
use doc && emake -C docs html |
37 |
if use doc ; then |
|
|
38 |
# distutils might add ${BUILD_DIR}/lib to the beginning of |
39 |
# PYTHONPATH. This may make it difficult for python to determine |
40 |
# whether to import sphinxcontrib submodules from the system or |
41 |
# from ${BUILD_DIR}/lib/sphinxcontrib, resulting in errors. There |
42 |
# is nothing necessary in ${BUILD_DIR}/lib, so remove it. |
43 |
# See: https://bugs.gentoo.org/show_bug.cgi?id=759643 |
44 |
local PYPATH="${PYTHONPATH#${BUILD_DIR}/lib:}" |
45 |
PYTHONPATH="$PYPATH" emake -C docs html |
46 |
fi |
26 |
} |
47 |
} |
27 |
|
48 |
|
28 |
python_install() { |
49 |
python_install() { |