From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2DFA6158003 for ; Sun, 6 Feb 2022 11:59:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4976B2BC004; Sun, 6 Feb 2022 11:59:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD6642BC004 for ; Sun, 6 Feb 2022 11:59:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4004D342D6C for ; Sun, 6 Feb 2022 11:59:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C3E929 for ; Sun, 6 Feb 2022 11:59:30 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1644148757.7f677946f3243e563782834f55df5f97c36db036.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: plugin/newebuild.vim X-VCS-Directories: plugin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7f677946f3243e563782834f55df5f97c36db036 X-VCS-Branch: master Date: Sun, 6 Feb 2022 11:59:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 173b6281-8e83-4c5d-b174-08a09cd7bcaf X-Archives-Hash: 3258afba4b8ea90deeef89426c201938 commit: 7f677946f3243e563782834f55df5f97c36db036 Author: Joonas Niilola gentoo org> AuthorDate: Sun Feb 6 11:41:54 2022 +0000 Commit: Michał Górny gentoo 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 gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/42 Signed-off-by: Michał Górny 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! 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=\"\"'