From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 79C501580B3 for ; Sat, 4 Sep 2021 10:33:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A437DE0887; Sat, 4 Sep 2021 10:33:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 8C8BBE0887 for ; Sat, 4 Sep 2021 10:33:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D27A33D3CF for ; Sat, 4 Sep 2021 10:33:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B5CD198 for ; Sat, 4 Sep 2021 10:33:06 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1630596043.81542270c8ea07743b9d2b72ba410209919a4a6a.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: eclass-writing/ X-VCS-Repository: proj/devmanual X-VCS-Files: eclass-writing/text.xml X-VCS-Directories: eclass-writing/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 81542270c8ea07743b9d2b72ba410209919a4a6a X-VCS-Branch: master Date: Sat, 4 Sep 2021 10:33:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 384df9f7-e8f7-48ff-864b-61210a81e586 X-Archives-Hash: 9ce63121e4997cc8bbe5fa7cc29f6a2b commit: 81542270c8ea07743b9d2b72ba410209919a4a6a Author: Ulrich Müller gentoo org> AuthorDate: Thu Sep 2 15:20:43 2021 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Thu Sep 2 15:20:43 2021 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=81542270 eclass-writing: Update example for EAPI conditional Signed-off-by: Ulrich Müller gentoo.org> eclass-writing/text.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml index 84599cb..09b41d2 100644 --- a/eclass-writing/text.xml +++ b/eclass-writing/text.xml @@ -803,11 +803,12 @@ for an eclass to invoke die from the global scope. For example: # @ECLASS: eapi-die.eclass # @MAINTAINER: # Gentoo Devmanual Project <devmanual@gentoo.org> +# @SUPPORTED_EAPIS: 7 8 # @BLURB: Calls die when used with an invalid EAPI. -case ${EAPI:-0} in - 0) die "this eclass doesn't support EAPI 0" ;; - *) ;; +case ${EAPI} in + 7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac