From 35486c204403152df48ee25c05b35764952efe40 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 18 Nov 2015 22:57:04 +0100 Subject: distutils-r1.eclass: Ban EXAMPLES in EAPI 6 --- eclass/distutils-r1.eclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'eclass/distutils-r1.eclass') 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}" -- cgit v1.2.3-65-gdbad