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 5/5] (Optionally) deprecate all X* wrappers.
Date: Mon, 11 Feb 2013 22:16:47
Message-Id: 1360620883-22562-6-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [RFC/PATCH] A cleaner API for virtualx.eclass by "Michał Górny"
1 The new syntax seems simple enough that we can think of deprecating all
2 those short-hand forms.
3 ---
4 gx86/eclass/virtualx.eclass | 14 ++++++++++++--
5 1 file changed, 12 insertions(+), 2 deletions(-)
6
7 diff --git a/gx86/eclass/virtualx.eclass b/gx86/eclass/virtualx.eclass
8 index f576335..9d5045d 100644
9 --- a/gx86/eclass/virtualx.eclass
10 +++ b/gx86/eclass/virtualx.eclass
11 @@ -189,8 +189,10 @@ virtualmake() {
12 Xmake() {
13 debug-print-function ${FUNCNAME} "$@"
14
15 - eqawarn "you should not execute make directly"
16 - eqawarn "rather execute Xemake -j1 if you have issues with parallel make"
17 + eqawarn "Using Xmake is considered deprecated."
18 + eqawarn "Please use the new, cleaner API instead:"
19 + eqawarn " virtualx emake -j1 ..."
20 +
21 virtualx emake -j1 "$@"
22 }
23
24 @@ -200,6 +202,10 @@ Xmake() {
25 Xemake() {
26 debug-print-function ${FUNCNAME} "$@"
27
28 + eqawarn "Using Xemake is considered deprecated."
29 + eqawarn "Please use the new, cleaner API instead:"
30 + eqawarn " virtualx emake ..."
31 +
32 virtualx emake "$@"
33 }
34
35 @@ -209,5 +215,9 @@ Xemake() {
36 Xeconf() {
37 debug-print-function ${FUNCNAME} "$@"
38
39 + eqawarn "Using Xeconf is considered deprecated."
40 + eqawarn "Please use the new, cleaner API instead:"
41 + eqawarn " virtualx econf ..."
42 +
43 virtualx econf "$@"
44 }
45 --
46 1.8.1.2