Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: ml@g.o, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-dev] [PATCH] oasis.eclass: Add RESTRICT="!test? ( test )"
Date: Thu, 12 Dec 2019 15:51:37
Message-Id: 75f2289b3abcc0e92558a599ec34b282620e15af.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH] oasis.eclass: Add RESTRICT="!test? ( test )" by "Michał Górny"
1 On Thu, 2019-12-12 at 16:18 +0100, Michał Górny wrote:
2 > This fixes 30 cases of MissingTestRestrict.
3 >
4 > Signed-off-by: Michał Górny <mgorny@g.o>
5 > ---
6 > eclass/oasis.eclass | 7 +++++--
7 > 1 file changed, 5 insertions(+), 2 deletions(-)
8 >
9 > diff --git a/eclass/oasis.eclass b/eclass/oasis.eclass
10 > index 53db4b777271..7727253575d4 100644
11 > --- a/eclass/oasis.eclass
12 > +++ b/eclass/oasis.eclass
13 > @@ -1,4 +1,4 @@
14 > -# Copyright 1999-2012 Gentoo Foundation
15 > +# Copyright 1999-2019 Gentoo Authors
16 > # Distributed under the terms of the GNU General Public License v2
17 >
18 > # @ECLASS: oasis.eclass
19 > @@ -60,7 +60,10 @@ esac
20 > IUSE="+ocamlopt"
21 > [ -n "${OASIS_NO_DEBUG}" ] || IUSE="${IUSE} debug"
22 > [ -n "${OASIS_BUILD_DOCS}" ] && IUSE="${IUSE} doc"
23 > -[ -n "${OASIS_BUILD_TESTS}" ] && IUSE="${IUSE} test"
24 > +if [[ -n ${OASIS_BUILD_TESTS} ]]; then
25 > + IUSE+=" test"
26 > + RESTRICT+=" !test? ( test )"
27 > +fi
28 >
29 > DEPEND="${RDEPEND}
30 > dev-ml/ocamlbuild"
31
32 ACK