From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 39FCA1381F3 for ; Tue, 18 Jun 2013 22:36:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F691E0993; Tue, 18 Jun 2013 22:36:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9F849E0993 for ; Tue, 18 Jun 2013 22:36:42 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8868333E3CC for ; Tue, 18 Jun 2013 22:36:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 3B912E468F for ; Tue, 18 Jun 2013 22:36:40 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1371594690.08a2f610138b5a336fceb283d602b892e2fae1c6.radhermit@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: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: 08a2f610138b5a336fceb283d602b892e2fae1c6 X-VCS-Branch: master Date: Tue, 18 Jun 2013 22:36:40 +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-Archives-Salt: 268d7938-e751-42a6-b145-be58a9777518 X-Archives-Hash: 777a526364bb129f2ba12245a96d8979 commit: 08a2f610138b5a336fceb283d602b892e2fae1c6 Author: Tim Harder gentoo org> AuthorDate: Tue Jun 18 22:31:30 2013 +0000 Commit: Tim Harder gentoo org> CommitDate: Tue Jun 18 22:31:30 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-syntax.git;a=commit;h=08a2f610 use empty keywords for live ebuilds --- plugin/newebuild.vim | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim index 530a851..2d4c928 100644 --- a/plugin/newebuild.vim +++ b/plugin/newebuild.vim @@ -21,6 +21,14 @@ fun! MakeNewEbuild() let l:filename = expand("%:p") let l:category = substitute(l:filename, \ "^.*/\\([^/]\\+\\)/[^/]\\+/[^/]\\+\\.ebuild", "\\1", "g") + + " use empty keywords for live ebuilds + if l:filename =~# "-9999\\+.ebuild\$" + let l:keywords = "" + else + let l:keywords = "~" . l:arch + endif + " }}} call GentooHeader() @@ -52,7 +60,7 @@ fun! MakeNewEbuild() put ='DESCRIPTION=\"vim plugin: \"' put ='HOMEPAGE=\"http://www.vim.org/scripts/script.php?script_id=\"' put ='LICENSE=\"\"' - put ='KEYWORDS=\"~' . l:arch . '\"' + put ='KEYWORDS=\"' . l:keywords . '\"' put ='IUSE=\"\"' put ='' put ='VIM_PLUGIN_HELPFILES=\"\"' @@ -69,7 +77,7 @@ fun! MakeNewEbuild() put ='HOMEPAGE=\"\"' put ='LICENSE=\"\"' put ='' - put ='KEYWORDS=\"~' . l:arch . '\"' + put ='KEYWORDS=\"' . l:keywords . '\"' put ='IUSE=\"\"' put ='SLOT=\"0\"' put ='' @@ -91,7 +99,7 @@ fun! MakeNewEbuild() put ='' put ='LICENSE=\"\"' put ='SLOT=\"0\"' - put ='KEYWORDS=\"~' . l:arch .'\"' + put ='KEYWORDS=\"' . l:keywords . '\"' put ='' put ='IUSE=\"\"' put ='' @@ -120,7 +128,7 @@ fun! MakeNewEbuild() put ='' put ='#LICENSE=\"\|\| ( Artistic GPL-1 GPL-2 GPL-3 )\"' put ='SLOT=\"0\"' - put ='KEYWORDS=\"~' . l:arch . '\"' + put ='KEYWORDS=\"' . l:keywords . '\"' put ='IUSE=\"\"' put ='' put ='RDEPEND=\"\"' @@ -149,7 +157,7 @@ fun! MakeNewEbuild() put ='' put ='LICENSE=\"\"' put ='SLOT=\"0\"' - put ='KEYWORDS=\"~' . l:arch . '\"' + put ='KEYWORDS=\"' . l:keywords . '\"' put ='IUSE=\"\"' put =''