commit:     bbde7cbb98fa98bce4220537f58c594e58e2940e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 18 21:57:04 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 25 11:56:45 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbde7cbb

distutils-r1.eclass: Ban EXAMPLES in EAPI 6

 eclass/distutils-r1.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index e632202..1cf2a49 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}"

Reply via email to