commit: 4cf20807eb1f8074e8b11e42f9df4a8c01fcb129
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 20 08:37:09 2023 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Oct 20 08:37:09 2023 +0000
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=4cf20807
ebuild.yas: change key, update live template
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
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