commit:     e74f0208753fdb6868b70a7ebda11b4773720d8e
Author:     Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Tue Mar 14 16:24:10 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 17:39:48 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=e74f0208

newebuild: Do not use *.zip SRC_URI in dev-java ebuild template

Many Java packages' source archives are available in tarball formats
like .tar.gz already, and tarballs are more preferable than Zip archives
for SRC_URI (pkgcheck has a check for this).

However, instead of replacing '.zip' with '.tar.gz', it could be better
to just leave the value of SRC_URI in the template empty, just like in
the dev-python ebuild template.

Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo-syntax/pull/58
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 plugin/newebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index e5a54e4..2fa7acb 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -128,7 +128,7 @@ fun! <SID>MakeNewEbuild()
             put =''
             put ='DESCRIPTION=\"\"'
             put ='HOMEPAGE=\"\"'
-            put ='SRC_URI=\"${P}.zip\"'
+            put ='SRC_URI=\"\"'
             put =''
             put ='LICENSE=\"\"'
             put ='SLOT=\"0\"'

Reply via email to