eclass/docs: small fixes

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2020-04-06 20:44:36 +02:00
parent 86aaf69951
commit fc93a7a89a

View File

@@ -93,7 +93,7 @@ esac
# because these eclasses are incompatible.
# We also need to set 'something' to be able
# to inherit python-any-r1 at all
if [[ ! ${PYTHON_COMPAT} ]]; then
if [[ -z "${PYTHON_COMPAT}" ]]; then
PYTHON_COMPAT=( python3_{6,7,8} )
inherit python-any-r1
else
@@ -299,7 +299,7 @@ fi
# If this is a python package using distutils-r1
# then put the compile function in the specific
# python function, else just put it in src_compile
if [[ ${DISTUTILS_USE_SETUPTOOLS} ]]; then
if [[ -n "${DISTUTILS_USE_SETUPTOOLS}" ]]; then
python_compile_all() { docs_compile; }
else
src_compile() { docs_compile; }