diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-10-20 10:37:09 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-10-20 10:37:09 +0200 |
commit | 4cf20807eb1f8074e8b11e42f9df4a8c01fcb129 (patch) | |
tree | ca397a503fc104d86acd8ed5e237f199a57a9354 | |
parent | live.yas: change key (diff) | |
download | emacs-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.yas | 6 |
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 |