Gentoo Archives: gentoo-dev

From: "Marty E. Plummer" <hanetzer@×××××××××.com>
To: gentoo-dev@l.g.o
Cc: "Marty E. Plummer" <hanetzer@×××××××××.com>
Subject: [gentoo-dev] [PATCH 05/10] xdg.eclass: make EAPI 7 ready
Date: Wed, 27 Jun 2018 01:30:41
Message-Id: 20180627012734.1319-6-hanetzer@startmail.com
In Reply to: [gentoo-dev] [PATCH 00/10] {gnome2,xdg}{,-utils}.eclass: EAPI 7 work by "Marty E. Plummer"
1 Add dev-util/desktop-file-utils and x11-misc/shared-mime-info to BDEPEND
2 as a number of executables which will need to be executed on the build
3 host are included in them.
4
5 Package-Manager: Portage-2.3.40, Repoman-2.3.9
6 ---
7 eclass/xdg.eclass | 3 ++-
8 1 file changed, 2 insertions(+), 1 deletion(-)
9
10 diff --git a/eclass/xdg.eclass b/eclass/xdg.eclass
11 index 2a4e1f81abf..fc4bee30ca5 100644
12 --- a/eclass/xdg.eclass
13 +++ b/eclass/xdg.eclass
14 @@ -26,6 +26,7 @@ DEPEND="
15 dev-util/desktop-file-utils
16 x11-misc/shared-mime-info
17 "
18 +[[ ${EAPI:-0} == [0123456] ]] || BDEPEND="${DEPEND}"
19 fi
20
21 # @FUNCTION: xdg_src_prepare
22 @@ -34,7 +35,7 @@ fi
23 xdg_src_prepare() {
24 xdg_environment_reset
25
26 - has ${EAPI:-0} 6 && default
27 + [[ ${EAPI:-0} == [012345] ]] || default
28 }
29
30 # @FUNCTION: xdg_pkg_preinst
31 --
32 2.17.1

Replies

Subject Author
Re: [gentoo-dev] [PATCH 05/10] xdg.eclass: make EAPI 7 ready Ulrich Mueller <ulm@g.o>