From 4cf20807eb1f8074e8b11e42f9df4a8c01fcb129 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Fri, 20 Oct 2023 10:37:09 +0200 Subject: ebuild.yas: change key, update live template 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/snippets/ebuild-mode/ebuild.yas b/snippets/ebuild-mode/ebuild.yas index 27dbf3e..77df6bb 100644 --- a/snippets/ebuild-mode/ebuild.yas +++ b/snippets/ebuild-mode/ebuild.yas @@ -19,7 +19,7 @@ # name: ebuild -# key: /ebuild +# key: ebuild= # -- @@ -31,12 +31,14 @@ EAPI=${1:8} DESCRIPTION="$2" HOMEPAGE="$3" -if [[ \${PV} == *9999* ]] ; then +if [[ "\${PV}" == *9999* ]] ; then inherit git-r3 + EGIT_REPO_URI="$3.git" else SRC_URI="$3/archive/\${PV}.tar.gz -> \${P}.tar.gz" + KEYWORDS="${4:~amd64 ~x86}" fi -- cgit v1.2.3-65-gdbad