commit: 6116db998e5239605bf659f883186dd6ff749f94
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 13 19:46:09 2023 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Mar 13 19:46:09 2023 +0000
URL:
https://gitweb.gentoo.org/proj/emacs-ebuild-snippets.git/commit/?id=6116db99
ebuild.yas: add SRC corrections; unquoite PV
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
snippets/ebuild-mode/ebuild.yas | 7 ++++---
1 file 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