diff options
| author | John Turner <jturner.usa+gentoo@gmail.com> | 2025-11-06 13:11:40 -0500 |
|---|---|---|
| committer | John Turner <jturner.usa+gentoo@gmail.com> | 2025-11-06 13:12:07 -0500 |
| commit | c4eb1f5f3b91e12d2ebea97246aed5c4d17014aa (patch) | |
| tree | 109ce0e7bf8ad233ba758a5cea7e5f7d55cd6b98 | |
| parent | 5a6e600f20eacbbeeadbccb17e2225efcb6e6967 (diff) | |
| download | ebuilds-c4eb1f5f3b91e12d2ebea97246aed5c4d17014aa.tar.gz | |
add forked rust-mode.el
| -rw-r--r-- | app-emacs/rust-mode/files/50rust-mode-gentoo.el | 3 | ||||
| -rw-r--r-- | app-emacs/rust-mode/files/rust-mode-1.0.5-tests.patch | 36 | ||||
| -rw-r--r-- | app-emacs/rust-mode/rust-mode-9999.ebuild | 18 |
3 files changed, 57 insertions, 0 deletions
diff --git a/app-emacs/rust-mode/files/50rust-mode-gentoo.el b/app-emacs/rust-mode/files/50rust-mode-gentoo.el new file mode 100644 index 0000000..0df9379 --- /dev/null +++ b/app-emacs/rust-mode/files/50rust-mode-gentoo.el @@ -0,0 +1,3 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'rust-mode "rust-mode" nil t) +(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode)) diff --git a/app-emacs/rust-mode/files/rust-mode-1.0.5-tests.patch b/app-emacs/rust-mode/files/rust-mode-1.0.5-tests.patch new file mode 100644 index 0000000..a7cbe49 --- /dev/null +++ b/app-emacs/rust-mode/files/rust-mode-1.0.5-tests.patch @@ -0,0 +1,36 @@ +From 8e85850cdba5cbe265d974e63b84b54a9bc9133e Mon Sep 17 00:00:00 2001 +From: Philipp Stephani <phst@google.com> +Date: Wed, 26 Apr 2023 10:27:30 +0200 +Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20duplicate=20test=20name.?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Emacs 29 will signal an error in this case in batch mode, and in any case the +first test in the duplicate series will never run. +--- + rust-mode-tests.el | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/rust-mode-tests.el b/rust-mode-tests.el +index c1d0501..3b23046 100644 +--- a/rust-mode-tests.el ++++ b/rust-mode-tests.el +@@ -2797,7 +2797,7 @@ fn foo<T:Fn() -> X<Y>>() -> Z { + ) + )) + +-(ert-deftest rust-test-paren-matching-lt-ops-in-fn-params () ++(ert-deftest rust-test-paren-matching-lt-ops-in-fn-params-1 () + (rust-test-matching-parens + " + fn foo(x:i32) { +@@ -2809,7 +2809,7 @@ fn foo(x:i32) { + ) + )) + +-(ert-deftest rust-test-paren-matching-lt-ops-in-fn-params () ++(ert-deftest rust-test-paren-matching-lt-ops-in-fn-params-2 () + (rust-test-matching-parens + " + fn foo(x:i32) -> bool { diff --git a/app-emacs/rust-mode/rust-mode-9999.ebuild b/app-emacs/rust-mode/rust-mode-9999.ebuild new file mode 100644 index 0000000..cd7ad26 --- /dev/null +++ b/app-emacs/rust-mode/rust-mode-9999.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp verify-sig git-r3 + +DESCRIPTION="A major emacs mode for editing Rust source code" +HOMEPAGE="https://github.com/rust-lang/rust-mode/" +EGIT_REPO_URI="https://jturnerusa.dev/cgit/rust-mode" + +VERIFY_SIG_KEY_PATHS=(/usr/share/ssh-keys/jturnerusa.asc) + +LICENSE="|| ( MIT Apache-2.0 )" +SLOT="0" + +DOCS=( README.md ) +SITEFILE="50${PN}-gentoo.el" |
