From 7f677946f3243e563782834f55df5f97c36db036 Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Sun, 6 Feb 2022 13:41:54 +0200 Subject: plugin/newebuild.vim: don't match pypi HOMEPAGEs for non-python pkgs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://github.com/gentoo/gentoo-syntax/pull/41 Signed-off-by: Joonas Niilola Closes: https://github.com/gentoo/gentoo-syntax/pull/42 Signed-off-by: Michał Górny --- 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! 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=\"\"' -- cgit v1.2.3-65-gdbad