From: | "Michał Górny" <mgorny@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/ |
Date: | Sun, 06 Feb 2022 11:59:35 |
Message-Id: | 1644148757.7f677946f3243e563782834f55df5f97c36db036.mgorny@gentoo |
1 | commit: 7f677946f3243e563782834f55df5f97c36db036 |
2 | Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 | AuthorDate: Sun Feb 6 11:41:54 2022 +0000 |
4 | Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 | CommitDate: Sun Feb 6 11:59:17 2022 +0000 |
6 | URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=7f677946 |
7 | |
8 | plugin/newebuild.vim: don't match pypi HOMEPAGEs for non-python pkgs |
9 | |
10 | Closes: https://github.com/gentoo/gentoo-syntax/pull/41 |
11 | Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 | Closes: https://github.com/gentoo/gentoo-syntax/pull/42 |
13 | Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 | |
15 | plugin/newebuild.vim | 12 +++++++++--- |
16 | 1 file changed, 9 insertions(+), 3 deletions(-) |
17 | |
18 | diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim |
19 | index bd80712..e704898 100644 |
20 | --- a/plugin/newebuild.vim |
21 | +++ b/plugin/newebuild.vim |
22 | @@ -165,9 +165,15 @@ fun! <SID>MakeNewEbuild() |
23 | " }}} |
24 | |
25 | put ='DESCRIPTION=\"\"' |
26 | - put ='HOMEPAGE=\"' |
27 | - put =' https://pypi.org/project/' . l:package . '/' |
28 | - put ='\"' |
29 | + |
30 | + if l:category ==# "dev-python" |
31 | + put ='HOMEPAGE=\"' |
32 | + put =' https://pypi.org/project/' . l:package . '/' |
33 | + put ='\"' |
34 | + else |
35 | + put ='HOMEPAGE=\"\"' |
36 | + endif |
37 | + |
38 | put ='SRC_URI=\"\"' |
39 | put ='' |
40 | put ='LICENSE=\"\"' |