FreeBSD Bugzilla – Attachment 247666 Details for
Bug 276340
[NEW PORT] devel/rust-mode: A major-mode for editing Rust source code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
new port
0002-devel-rust-mode-new-port.patch (text/plain), 4.10 KB, created by
Pat Maddox
on 2024-01-15 01:18:34 UTC
(
hide
)
Description:
new port
Filename:
MIME Type:
Creator:
Pat Maddox
Created:
2024-01-15 01:18:34 UTC
Size:
4.10 KB
patch
obsolete
>From 31987af1cd7bfcfbc0245afe214fabda3635e731 Mon Sep 17 00:00:00 2001 >From: Pat Maddox <pat@patmaddox.com> >Date: Sun, 14 Jan 2024 15:51:04 -0800 >Subject: [PATCH 2/3] devel/rust-mode: new port > >rust-mode makes editing Rust code with Emacs enjoyable. It requires >Emacs 25 or later, and is included in both Emacs Prelude and Spacemacs >by default. > >This mode provides: >- Syntax highlighting (for Font Lock Mode) >- Indentation >- Integration with Cargo, clippy and rustfmt > >This mode does not provide auto completion, or jumping to function / >trait definitions. See Auto-completion below for tips on how to enable >this. > >If you are missing features in rust-mode, please check out rustic >before you open a feature request. It depends on rust-mode and >provides additional features. This allows us to keep rust-mode >light-weight for users that are happy with basic functionality. > >PR: 276340 >--- > devel/Makefile | 2 ++ > devel/rust-mode/Makefile | 27 +++++++++++++++++++++++++++ > devel/rust-mode/distinfo | 3 +++ > devel/rust-mode/pkg-descr | 17 +++++++++++++++++ > devel/rust-mode/pkg-plist | 6 ++++++ > 5 files changed, 55 insertions(+) > create mode 100644 devel/rust-mode/Makefile > create mode 100644 devel/rust-mode/distinfo > create mode 100644 devel/rust-mode/pkg-descr > create mode 100644 devel/rust-mode/pkg-plist > >diff --git a/devel/Makefile b/devel/Makefile >index b38ec447df4b..a39ec76e693e 100644 >--- a/devel/Makefile >+++ b/devel/Makefile >@@ -7604,6 +7604,8 @@ > SUBDIR += rust-analyzer > SUBDIR += rust-bindgen-cli > SUBDIR += rust-cbindgen >+ SUBDIR += rust-mode >+ SUBDIR += rust-script > SUBDIR += rustc-demangle > SUBDIR += rvi > SUBDIR += rvm >diff --git a/devel/rust-mode/Makefile b/devel/rust-mode/Makefile >new file mode 100644 >index 000000000000..5595a0cf1e73 >--- /dev/null >+++ b/devel/rust-mode/Makefile >@@ -0,0 +1,27 @@ >+PORTNAME= rust-mode >+PORTVERSION= 20230805.1558 >+CATEGORIES= devel >+ >+MAINTAINER= pat@patmaddox.com >+COMMENT= Emacs major-mode for editing Rust source code >+WWW= https://github.com/rust-lang/ >+ >+LICENSE= APACHE20 >+ >+USES= emacs >+EMACS_NO_DEPENDS= yes >+ >+USE_GITHUB= yes >+GH_ACCOUNT= rust-lang >+GH_PROJECT= rust-mode >+GH_TAGNAME= fac7d28 >+ >+NO_ARCH= yes >+NO_BUILD= yes >+ >+do-install: >+ @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR} >+ ${INSTALL_DATA} ${WRKSRC}/*.el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR} >+ @${RM} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/rust-mode-tests.el >+ >+.include <bsd.port.mk> >diff --git a/devel/rust-mode/distinfo b/devel/rust-mode/distinfo >new file mode 100644 >index 000000000000..8788cd6b3bdc >--- /dev/null >+++ b/devel/rust-mode/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1705275324 >+SHA256 (rust-lang-rust-mode-20230805.1558-fac7d28_GH0.tar.gz) = bb100bea0792102d626b0f682df5dfdba2ce5be1b8e46595ef3161f0c74cd433 >+SIZE (rust-lang-rust-mode-20230805.1558-fac7d28_GH0.tar.gz) = 53065 >diff --git a/devel/rust-mode/pkg-descr b/devel/rust-mode/pkg-descr >new file mode 100644 >index 000000000000..ae7830fc5ad6 >--- /dev/null >+++ b/devel/rust-mode/pkg-descr >@@ -0,0 +1,17 @@ >+rust-mode makes editing Rust code with Emacs enjoyable. It requires >+Emacs 25 or later, and is included in both Emacs Prelude and Spacemacs >+by default. >+ >+This mode provides: >+- Syntax highlighting (for Font Lock Mode) >+- Indentation >+- Integration with Cargo, clippy and rustfmt >+ >+This mode does not provide auto completion, or jumping to function / >+trait definitions. See Auto-completion below for tips on how to enable >+this. >+ >+If you are missing features in rust-mode, please check out rustic >+before you open a feature request. It depends on rust-mode and >+provides additional features. This allows us to keep rust-mode >+light-weight for users that are happy with basic functionality. >diff --git a/devel/rust-mode/pkg-plist b/devel/rust-mode/pkg-plist >new file mode 100644 >index 000000000000..f28fe3568ea2 >--- /dev/null >+++ b/devel/rust-mode/pkg-plist >@@ -0,0 +1,6 @@ >+%%EMACS_SITE_LISPDIR%%/rust-cargo.el >+%%EMACS_SITE_LISPDIR%%/rust-compile.el >+%%EMACS_SITE_LISPDIR%%/rust-mode.el >+%%EMACS_SITE_LISPDIR%%/rust-playpen.el >+%%EMACS_SITE_LISPDIR%%/rust-rustfmt.el >+%%EMACS_SITE_LISPDIR%%/rust-utils.el >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pat
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 276340
: 247666