summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2022-02-06 13:41:54 +0200
committerMichał Górny <mgorny@gentoo.org>2022-02-06 12:59:17 +0100
commit7f677946f3243e563782834f55df5f97c36db036 (patch)
tree86096564e11c6e2f98d13e51dc1bcc27e00d2abe
parentgentoo-common: Use eval() more consistently (diff)
downloadgentoo-syntax-20220206.tar.gz
gentoo-syntax-20220206.tar.bz2
gentoo-syntax-20220206.zip
plugin/newebuild.vim: don't match pypi HOMEPAGEs for non-python pkgsgentoo-syntax-20220206
Closes: https://github.com/gentoo/gentoo-syntax/pull/41 Signed-off-by: Joonas Niilola <juippis@gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/42 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--plugin/newebuild.vim12
1 files 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=\"\"'