diff options
author | 2023-03-13 20:46:09 +0100 | |
---|---|---|
committer | 2023-03-13 20:46:09 +0100 | |
commit | 6116db998e5239605bf659f883186dd6ff749f94 (patch) | |
tree | a115c3426085985ba32452bcff588533d6887bb4 | |
parent | snippets/ebuild-mode: change assignment key (diff) | |
download | emacs-ebuild-snippets-6116db998e5239605bf659f883186dd6ff749f94.tar.gz emacs-ebuild-snippets-6116db998e5239605bf659f883186dd6ff749f94.tar.bz2 emacs-ebuild-snippets-6116db998e5239605bf659f883186dd6ff749f94.zip |
ebuild.yas: add SRC corrections; unquoite PV
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r-- | snippets/ebuild-mode/ebuild.yas | 7 |
1 files 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 |