aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-01-27 13:29:09 +0100
committerTim Harder <radhermit@gentoo.org>2016-03-05 18:31:09 -0500
commit9a96cf916a8d7994b8823928f57f550943d5ae1e (patch)
treea7b51e0416d3ab2ef1da31352d77aec07f151099 /plugin/newmetadata.vim
parentnewmetadata: Add type="" to <maintainer/> per GLEP67 (diff)
downloadgentoo-syntax-9a96cf916a8d7994b8823928f57f550943d5ae1e.tar.gz
gentoo-syntax-9a96cf916a8d7994b8823928f57f550943d5ae1e.tar.bz2
gentoo-syntax-9a96cf916a8d7994b8823928f57f550943d5ae1e.zip
newmetadata: Replace herds with projects per GLEP67
Diffstat (limited to 'plugin/newmetadata.vim')
-rw-r--r--plugin/newmetadata.vim20
1 files changed, 11 insertions, 9 deletions
diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 905d5d3..7128a4e 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -49,18 +49,18 @@ fun! <SID>MakeNewMetadata()
else
" {{{ pkgmetadata
- " {{{ herd
- let l:herd = ""
+ " {{{ project
+ let l:project = ""
if l:category ==# "app-vim"
- let l:herd = "vim"
+ let l:project = "vim"
elseif l:category ==# "dev-perl"
- let l:herd = "perl"
+ let l:project = "perl"
elseif l:category ==# "dev-ruby"
- let l:herd = "ruby"
+ let l:project = "ruby"
elseif l:category ==# "dev-tex"
- let l:herd = "tex"
+ let l:project = "tex"
elseif l:category ==# "dev-java"
- let l:herd = "java"
+ let l:project = "java"
endif
" }}}
@@ -68,8 +68,10 @@ fun! <SID>MakeNewMetadata()
0 put ='<?xml version=\"1.0\" encoding=\"UTF-8\"?>'
put ='<!DOCTYPE pkgmetadata SYSTEM \"http://www.gentoo.org/dtd/metadata.dtd\">'
put ='<pkgmetadata>'
- if l:herd != ""
- put ='<herd>' . l:herd . '</herd>'
+ if l:project != ""
+ put ='<maintainer type=\"project\">'
+ put ='<email>' . l:project . '@gentoo.org</email>'
+ put ='</maintainer>'
endif
if l:email != "" || l:name != ""
put ='<maintainer type=\"person\">'