From 6116db998e5239605bf659f883186dd6ff749f94 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Mon, 13 Mar 2023 20:46:09 +0100 Subject: ebuild.yas: add SRC corrections; unquoite PV MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- snippets/ebuild-mode/ebuild.yas | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/snippets/ebuild-mode/ebuild.yas b/snippets/ebuild-mode/ebuild.yas index 5823db8..1c16d3e 100644 --- a/snippets/ebuild-mode/ebuild.yas +++ b/snippets/ebuild-mode/ebuild.yas @@ -31,11 +31,12 @@ EAPI=${1:8} DESCRIPTION="$2" HOMEPAGE="$3" -if [[ "\${PV}" == *9999* ]] ; then +if [[ \${PV} == *9999* ]] ; then inherit git-r3 - EGIT_REPO_URI="$3" + EGIT_REPO_URI="$3.git" else - SRC_URI="$3" + SRC_URI="$3/archive/${PV}.tar.gz + -> ${P}.tar.gz" KEYWORDS="${4:~amd64 ~x86}" fi -- cgit v1.2.3-65-gdbad