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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 46A0A158090 for ; Mon, 2 May 2022 19:06:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68900E0B54; Mon, 2 May 2022 19:06:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 43FCCE0B58 for ; Mon, 2 May 2022 19:06:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4F9F4341638 for ; Mon, 2 May 2022 19:06:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E567243B for ; Mon, 2 May 2022 19:06:02 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1651518301.8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: plugin/newebuild.vim X-VCS-Directories: plugin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb X-VCS-Branch: master Date: Mon, 2 May 2022 19:06:02 +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: daa068c0-1dda-41ee-9169-5242b9ccac0a X-Archives-Hash: 5d2d96e560720c8f21d363f44729bba0 commit: 8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb Author: Thomas Bracht Laumann Jespersen laumann xyz> AuthorDate: Mon May 2 19:02:05 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon May 2 19:05:01 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8f87dfb9 newebuild: move EAPI guard outside inherit guard The convention is to put the EAPI guard before any inherit guards. Signed-off-by: Thomas Bracht Laumann Jespersen laumann.xyz> Closes: https://github.com/gentoo/gentoo-syntax/pull/46 Signed-off-by: Michał Górny gentoo.org> plugin/newebuild.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim index 166713d..fddbc59 100644 --- a/plugin/newebuild.vim +++ b/plugin/newebuild.vim @@ -47,15 +47,15 @@ fun! MakeNewEbuild() put ='# @BLURB: ' put ='# @DESCRIPTION:' put ='' - let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") - put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then' - put ='_' . l:eclass_ident . '=1' - put ='' put ='case ${EAPI} in' put =' 8) ;;' put =' *) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"' put ='esac' put ='' + let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") + put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then' + put ='_' . l:eclass_ident . '=1' + put ='' put ='fi' " }}}