1 |
commit: 8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb |
2 |
Author: Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz> |
3 |
AuthorDate: Mon May 2 19:02:05 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 19:05:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8f87dfb9 |
7 |
|
8 |
newebuild: move EAPI guard outside inherit guard |
9 |
|
10 |
The convention is to put the EAPI guard before any inherit guards. |
11 |
|
12 |
Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz> |
13 |
Closes: https://github.com/gentoo/gentoo-syntax/pull/46 |
14 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
15 |
|
16 |
plugin/newebuild.vim | 8 ++++---- |
17 |
1 file changed, 4 insertions(+), 4 deletions(-) |
18 |
|
19 |
diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim |
20 |
index 166713d..fddbc59 100644 |
21 |
--- a/plugin/newebuild.vim |
22 |
+++ b/plugin/newebuild.vim |
23 |
@@ -47,15 +47,15 @@ fun! <SID>MakeNewEbuild() |
24 |
put ='# @BLURB: ' |
25 |
put ='# @DESCRIPTION:' |
26 |
put ='' |
27 |
- let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") |
28 |
- put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then' |
29 |
- put ='_' . l:eclass_ident . '=1' |
30 |
- put ='' |
31 |
put ='case ${EAPI} in' |
32 |
put =' 8) ;;' |
33 |
put =' *) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"' |
34 |
put ='esac' |
35 |
put ='' |
36 |
+ let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") |
37 |
+ put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then' |
38 |
+ put ='_' . l:eclass_ident . '=1' |
39 |
+ put ='' |
40 |
put ='fi' |
41 |
" }}} |