diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-11-18 22:57:04 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-11-28 20:09:06 +0100 |
commit | 35486c204403152df48ee25c05b35764952efe40 (patch) | |
tree | a489cd621ef3bb58d5ad77c0a245edd2fec2fa6c /eclass/distutils-r1.eclass | |
parent | distutils-r1.eclass: Make pypy/share QA error fatal in EAPI 6 (diff) | |
download | gentoo-35486c204403152df48ee25c05b35764952efe40.tar.gz gentoo-35486c204403152df48ee25c05b35764952efe40.tar.bz2 gentoo-35486c204403152df48ee25c05b35764952efe40.zip |
distutils-r1.eclass: Ban EXAMPLES in EAPI 6
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index e6322021e99f..1cf2a499d2ad 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -150,6 +150,8 @@ fi # @ECLASS-VARIABLE: EXAMPLES # @DEFAULT_UNSET # @DESCRIPTION: +# OBSOLETE: this variable is deprecated and banned in EAPI 6 +# # An array containing examples installed into 'examples' doc # subdirectory. The files and directories listed there must exist # in the directory from which distutils-r1_python_install_all() is run @@ -583,6 +585,8 @@ distutils-r1_python_install_all() { einstalldocs if declare -p EXAMPLES &>/dev/null; then + [[ ${EAPI} != [45] ]] && die "EXAMPLES are banned in EAPI ${EAPI}" + local INSDESTTREE=/usr/share/doc/${PF}/examples doins -r "${EXAMPLES[@]}" docompress -x "${INSDESTTREE}" |