Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH 09/10] domo: force /usr prefix in EAPI 7
Date: Mon, 26 Feb 2018 16:01:32
Message-Id: 20180226155942.9148-10-mgorny@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 00/10] EAPI 7, part one by "Michał Górny"
1 Bug: https://bugs.gentoo.org/595924
2 ---
3 bin/eapi.sh | 4 ++++
4 bin/ebuild-helpers/domo | 7 ++++++-
5 2 files changed, 10 insertions(+), 1 deletion(-)
6
7 diff --git a/bin/eapi.sh b/bin/eapi.sh
8 index b8b493f45..d8c487b69 100644
9 --- a/bin/eapi.sh
10 +++ b/bin/eapi.sh
11 @@ -186,6 +186,10 @@ ___eapi_die_can_respect_nonfatal() {
12 [[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-hdepend|5-progress)$ ]]
13 }
14
15 +___eapi_domo_respects_into() {
16 + [[ ${1-${EAPI-0}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-hdepend|5-progress|6)$ ]]
17 +}
18 +
19 # OTHERS
20
21 ___eapi_enables_failglob_in_global_scope() {
22 diff --git a/bin/ebuild-helpers/domo b/bin/ebuild-helpers/domo
23 index 9742173ac..e08e55a3a 100755
24 --- a/bin/ebuild-helpers/domo
25 +++ b/bin/ebuild-helpers/domo
26 @@ -1,5 +1,5 @@
27 #!/bin/bash
28 -# Copyright 1999-2012 Gentoo Foundation
29 +# Copyright 1999-2018 Gentoo Foundation
30 # Distributed under the terms of the GNU General Public License v2
31
32 source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1
33 @@ -14,6 +14,11 @@ if ! ___eapi_has_prefix_variables; then
34 ED=${D}
35 fi
36
37 +# newer EAPIs force /usr consistently with other /usr/share helpers
38 +if ! ___eapi_domo_respects_into; then
39 + DESTTREE=/usr
40 +fi
41 +
42 if [ ! -d "${ED}${DESTTREE}/share/locale" ] ; then
43 install -d "${ED}${DESTTREE}/share/locale/"
44 fi
45 --
46 2.16.2