commit: 7f677946f3243e563782834f55df5f97c36db036 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> AuthorDate: Sun Feb 6 11:41:54 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Feb 6 11:59:17 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=7f677946
plugin/newebuild.vim: don't match pypi HOMEPAGEs for non-python pkgs Closes: https://github.com/gentoo/gentoo-syntax/pull/41 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/42 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> plugin/newebuild.vim | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim index bd80712..e704898 100644 --- a/plugin/newebuild.vim +++ b/plugin/newebuild.vim @@ -165,9 +165,15 @@ fun! <SID>MakeNewEbuild() " }}} put ='DESCRIPTION=\"\"' - put ='HOMEPAGE=\"' - put =' https://pypi.org/project/' . l:package . '/' - put ='\"' + + if l:category ==# "dev-python" + put ='HOMEPAGE=\"' + put =' https://pypi.org/project/' . l:package . '/' + put ='\"' + else + put ='HOMEPAGE=\"\"' + endif + put ='SRC_URI=\"\"' put ='' put ='LICENSE=\"\"'
