From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-dev+bounces-87237-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BFBE9138334 for <garchives@archives.gentoo.org>; Wed, 29 May 2019 18:51:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D075EE0887; Wed, 29 May 2019 18:51:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 78B4FE087A for <gentoo-dev@lists.gentoo.org>; Wed, 29 May 2019 18:51:34 +0000 (UTC) Received: from sf (trofi-1-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:a0f::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: slyfox) by smtp.gentoo.org (Postfix) with ESMTPSA id 2757A345260; Wed, 29 May 2019 18:51:31 +0000 (UTC) Date: Wed, 29 May 2019 19:51:28 +0100 From: Sergei Trofimovich <slyfox@gentoo.org> To: Michael Haubenwallner <haubi@gentoo.org> Cc: gentoo-dev@lists.gentoo.org, haskell@gentoo.org Subject: [gentoo-dev] Re: [PATCH-r1] darcs.eclass: use BDEPEND with EAPI >= 7 Message-ID: <20190529195128.6af04213@sf> In-Reply-To: <20190529100119.2389-1-haubi@gentoo.org> References: <w6gy32pa9ot.fsf@kph.uni-mainz.de> <20190529100119.2389-1-haubi@gentoo.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 800afbcf-3c8d-4116-aabe-a20ae67d9de2 X-Archives-Hash: 92e4e1ede33a62a408f372d85edb1c47 On Wed, 29 May 2019 12:01:20 +0200 Michael Haubenwallner <haubi@gentoo.org> wrote: > --- > eclass/darcs.eclass | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass > index 489008a87f1..09b71882367 100644 > --- a/eclass/darcs.eclass > +++ b/eclass/darcs.eclass > @@ -85,8 +85,16 @@ SRC_URI="" > > # --- end ebuild-configurable settings --- > > -DEPEND="dev-vcs/darcs > - net-misc/rsync" > +case ${EAPI:-0} in > + [0-6]) # no need to care about 5-HDEPEND and similar > + DEPEND="dev-vcs/darcs > + net-misc/rsync" > + ;; > + *) > + BDEPEND="dev-vcs/darcs > + net-misc/rsync" > + ;; > +esac > > # @FUNCTION: darcs_patchcount > # @DESCRIPTION: > -- > 2.19.2 > Looks good! -- Sergei