aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-03-13 20:46:09 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-03-13 20:46:09 +0100
commit6116db998e5239605bf659f883186dd6ff749f94 (patch)
treea115c3426085985ba32452bcff588533d6887bb4
parentsnippets/ebuild-mode: change assignment key (diff)
downloademacs-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.yas7
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