1 |
On Sat, Nov 28, 2015 at 2:24 PM, Justin Lecher <jlec@g.o> wrote: |
2 |
> Signed-off-by: Justin Lecher <jlec@g.o> |
3 |
> --- |
4 |
> eclass/virtualx.eclass | 14 ++++++++++++-- |
5 |
> 1 file changed, 12 insertions(+), 2 deletions(-) |
6 |
> |
7 |
> diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass |
8 |
> index 5d27ed9..584fb29 100644 |
9 |
> --- a/eclass/virtualx.eclass |
10 |
> +++ b/eclass/virtualx.eclass |
11 |
> @@ -1,4 +1,4 @@ |
12 |
> -# Copyright 1999-2012 Gentoo Foundation |
13 |
> +# Copyright 1999-2015 Gentoo Foundation |
14 |
> # Distributed under the terms of the GNU General Public License v2 |
15 |
> # $Id$ |
16 |
> |
17 |
> @@ -9,6 +9,17 @@ |
18 |
> # Original author: Martin Schlemmer <azarah@g.o> |
19 |
> # @BLURB: This eclass can be used for packages that needs a working X environment to build. |
20 |
> |
21 |
> +case "${EAPI:-0}" in |
22 |
> + 0|1) |
23 |
> + die "virtualx eclass require EAPI=2 or newer." |
24 |
|
25 |
require -> requires |
26 |
|
27 |
[nitpicking, feel free to ignore] Technically "2 or newer" is not |
28 |
correct and not future-proof. You can rephrase to something like |
29 |
"virtualx.eclass: EAPI ${EAPI} is too old". |