Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 28 Nov 2015 19:10:20
Message-Id: 1448737746.35486c204403152df48ee25c05b35764952efe40.mgorny@gentoo
1 commit: 35486c204403152df48ee25c05b35764952efe40
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 18 21:57:04 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 28 19:09:06 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35486c20
7
8 distutils-r1.eclass: Ban EXAMPLES in EAPI 6
9
10 eclass/distutils-r1.eclass | 4 ++++
11 1 file changed, 4 insertions(+)
12
13 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
14 index e632202..1cf2a49 100644
15 --- a/eclass/distutils-r1.eclass
16 +++ b/eclass/distutils-r1.eclass
17 @@ -150,6 +150,8 @@ fi
18 # @ECLASS-VARIABLE: EXAMPLES
19 # @DEFAULT_UNSET
20 # @DESCRIPTION:
21 +# OBSOLETE: this variable is deprecated and banned in EAPI 6
22 +#
23 # An array containing examples installed into 'examples' doc
24 # subdirectory. The files and directories listed there must exist
25 # in the directory from which distutils-r1_python_install_all() is run
26 @@ -583,6 +585,8 @@ distutils-r1_python_install_all() {
27 einstalldocs
28
29 if declare -p EXAMPLES &>/dev/null; then
30 + [[ ${EAPI} != [45] ]] && die "EXAMPLES are banned in EAPI ${EAPI}"
31 +
32 local INSDESTTREE=/usr/share/doc/${PF}/examples
33 doins -r "${EXAMPLES[@]}"
34 docompress -x "${INSDESTTREE}"