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 3FD2A138334 for ; Sat, 17 Aug 2019 06:53:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5ED45E08B0; Sat, 17 Aug 2019 06:52:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 48C13E08B0 for ; Sat, 17 Aug 2019 06:52:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 E30AC349C95 for ; Sat, 17 Aug 2019 06:52:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E449E751 for ; Sat, 17 Aug 2019 06:52:55 +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: <1566024752.50323c29c07bb23db971ce34846c607ddd440fe3.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: 50323c29c07bb23db971ce34846c607ddd440fe3 X-VCS-Branch: master Date: Sat, 17 Aug 2019 06:52:55 +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: ab7245b6-49cb-4d99-a7f6-cdea546e772f X-Archives-Hash: 31c51e83aa5633986eae13634046e7b3 commit: 50323c29c07bb23db971ce34846c607ddd440fe3 Author: Michał Górny gentoo org> AuthorDate: Sat Aug 17 06:52:32 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Aug 17 06:52:32 2019 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=50323c29 newebuild: Support acct-{group,user} categories Signed-off-by: Michał Górny gentoo.org> plugin/newebuild.vim | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim index dd195ee..26d5a9f 100644 --- a/plugin/newebuild.vim +++ b/plugin/newebuild.vim @@ -58,7 +58,25 @@ fun! MakeNewEbuild() else put ='EAPI=7' put ='' - if l:category ==# "app-vim" + if l:category ==# "acct-group" + " {{{ acct-group special setup + put ='inherit acct-group' + put ='' + put ='ACCT_GROUP_ID=' + " }}} + elseif l:category ==# "acct-user" + " {{{ acct-user special setup + let l:username=substitute(expand("%:t:r"), + \ "\\(.*\\)-[0-9]*.*", "\\1", "") + put ='inherit acct-user' + put ='' + put ='DESCRIPTION=\"\"' + put ='ACCT_USER_ID=' + put ='ACCT_USER_GROUPS=( ' . l:username . ' )' + put ='' + put ='acct-user_add_deps' + " }}} + elseif l:category ==# "app-vim" " {{{ app-vim special setup put ='#VIM_PLUGIN_VIM_VERSION=\"7.0\"' put ='inherit vim-plugin' @@ -159,8 +177,8 @@ fun! MakeNewEbuild() " {{{ go to the first thing to edit 0 - /^\(DIST_AUTHOR\|DESCRIPTION\)=/ - exec "normal 2f\"" + /^\(ACCT_GROUP_ID\|DIST_AUTHOR\|DESCRIPTION\)=/ + exec "normal f=ll" nohls " }}} endif