Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: x11@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH virtualx.eclass 4/5] Deprecate virtualmake in favor of the new syntax.
Date: Mon, 11 Feb 2013 22:16:03
Message-Id: 1360620883-22562-5-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [RFC/PATCH] A cleaner API for virtualx.eclass by "Michał Górny"
1 ---
2 gx86/eclass/virtualx.eclass | 7 ++++---
3 1 file changed, 4 insertions(+), 3 deletions(-)
4
5 diff --git a/gx86/eclass/virtualx.eclass b/gx86/eclass/virtualx.eclass
6 index 096c37a..f576335 100644
7 --- a/gx86/eclass/virtualx.eclass
8 +++ b/gx86/eclass/virtualx.eclass
9 @@ -172,12 +172,13 @@ virtualmake() {
10
11 # backcompat for maketype
12 if [[ -n ${maketype} ]]; then
13 - eqawarn "ebuild is exporting \$maketype=${maketype}"
14 - eqawarn "Ebuild should be migrated to use VIRTUALX_COMMAND=${maketype} instead."
15 - eqawarn "Setting VIRTUALX_COMMAND to \$maketype conveniently for now."
16 VIRTUALX_COMMAND=${maketype}
17 fi
18
19 + eqawarn "Using virtualmake is considered deprecated."
20 + eqawarn "Please use the new, cleaner API instead:"
21 + eqawarn " virtualx ${VIRTUALX_COMMAND}"
22 +
23 virtualx ${VIRTUALX_COMMAND} "$@"
24 }
25
26 --
27 1.8.1.2