aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-10-20 10:37:09 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-10-20 10:37:09 +0200
commit4cf20807eb1f8074e8b11e42f9df4a8c01fcb129 (patch)
treeca397a503fc104d86acd8ed5e237f199a57a9354
parentlive.yas: change key (diff)
downloademacs-ebuild-snippets-4cf20807eb1f8074e8b11e42f9df4a8c01fcb129.tar.gz
emacs-ebuild-snippets-4cf20807eb1f8074e8b11e42f9df4a8c01fcb129.tar.bz2
emacs-ebuild-snippets-4cf20807eb1f8074e8b11e42f9df4a8c01fcb129.zip
ebuild.yas: change key, update live template
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r--snippets/ebuild-mode/ebuild.yas6
1 files 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