commit:     4a8f32ac52e2963a4afaaf165f261e43005e271e
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 27 08:12:03 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Jul 27 08:28:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a8f32ac

app-emacs/rust-mode: enable live

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/rust-mode/rust-mode-1.0.5.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/app-emacs/rust-mode/rust-mode-1.0.5.ebuild 
b/app-emacs/rust-mode/rust-mode-1.0.5.ebuild
index 70637f21a50c..32ca2edbbb59 100644
--- a/app-emacs/rust-mode/rust-mode-1.0.5.ebuild
+++ b/app-emacs/rust-mode/rust-mode-1.0.5.ebuild
@@ -7,11 +7,18 @@ inherit elisp
 
 DESCRIPTION="A major emacs mode for editing Rust source code"
 HOMEPAGE="https://github.com/rust-lang/rust-mode";
-SRC_URI="https://github.com/rust-lang/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+if [[ ${PV} == *9999* ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/rust-lang/${PN}.git";
+else
+       SRC_URI="https://github.com/rust-lang/${PN}/archive/${PV}.tar.gz
+               -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
 
 PATCHES=( "${FILESDIR}"/${P}-tests.patch )
 

Reply via email to