From nobody Wed Jan 24 01:37:30 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TKRQy4gp2z576NP; Wed, 24 Jan 2024 01:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TKRQy4B1gz4DGj; Wed, 24 Jan 2024 01:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706060250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+lnI/Ati8EjZvnydKa/2tGuA7EMGBWLaSzYFYZYY8qk=; b=mFDBc815m/EQEjZV/NuWbpiOQEEMLBMxBXu0TH3W7F3Ydjbd5/40mahJCh5LXZiK4psJiZ bhJybqozj/L1EmwWdkkeHW3tPsVfBTVy7B0qB2ixKWls9ygiQcPslyoZxVLcC1pcIB9EE8 jGltWCJMqYSKAodABLEHZQaW2+H1YPwJl3v0qp8MKyRSbtUvSxrNu8bMTGWv6pPODw0iFM gczBNKVaAqh8UublpC6XduvfCnDec8kSOSp1FCMeDg8ixdUuMTvfYsZqBzxtKsWmaVxvGN t33Cpy7PfpAny2cLP95vLjh6n+gU7l6QWqsXjUhm712rzF79u2G4+3YdwrfFVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706060250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+lnI/Ati8EjZvnydKa/2tGuA7EMGBWLaSzYFYZYY8qk=; b=ngVM0pgshtFj+LQTwFwtmWzxem0xxn8VJadMtynTLWWByR5aax+K2bAJsngMNKFxpGpUxF qrm9l+bsojWyOKZZ76w8y2fSSq1yZyBT9iVju4MqlbaYjQjKMvlIEPxf+oySnnJ3/iUZmA w8T06+RCWoaum1BX9iOEKYctGvswEWcSa3Bb9eoSEklaGMwLccsublAUaLkORXG44i0ERc Rxc2H9ga0zNsQWoOjiT6wjyroh1jkBiYG2iALgozE42zn3G29lyZqgtzGqjZlbzRJyR+Iw Dtd9jycLwof/cd/GFPuKDfAG4p4vGWmhNr8dHXB+ZfgsGGl8eEscN2q3nSkZRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706060250; a=rsa-sha256; cv=none; b=mPDtDTPYN5zjPKsZ5dddQxyQEJRiDzwz9+sTCDdVnJY7E8UlSw+7/syabBFlqsf+Wvftuo UwIbh6Y3rpeWdFoLw451urZnq9Sdfn+fzAJwXgP8YJW0fTywYUgtaEh9KSuiNaNmYiY6n0 +dCd+XvYGX0M95If4rhaQDug73HgsUY7akX6m3cLjPwUfYgGmUmw3OkJq3Iyt9sBJs2g9z 1w66RkANFEiJQze39zmZFcnZYIr508AFyDOa+ATwuu9YsTSWn8Dlbixgi8owDx5D+rZisd Ij75PFbHHXu1xPTBieNtHRB6P/s5cz2kaRlnQ5+AvgMEp57yebd3JN66zNDllg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TKRQy3FwZzvNk; Wed, 24 Jan 2024 01:37:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40O1bUpd069286; Wed, 24 Jan 2024 01:37:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40O1bUqJ069283; Wed, 24 Jan 2024 01:37:30 GMT (envelope-from git) Date: Wed, 24 Jan 2024 01:37:30 GMT Message-Id: <202401240137.40O1bUqJ069283@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8099c6d33d76 - main - devel/rust-mode: New port: Emacs major-mode for editing Rust source code List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8099c6d33d7690d53b135eedab5043fb9589a1ea Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8099c6d33d7690d53b135eedab5043fb9589a1ea commit 8099c6d33d7690d53b135eedab5043fb9589a1ea Author: Yuri Victorovich AuthorDate: 2024-01-24 01:35:30 +0000 Commit: Yuri Victorovich CommitDate: 2024-01-24 01:37:28 +0000 devel/rust-mode: New port: Emacs major-mode for editing Rust source code PR: 276340 Submitted by: Pat Maddox --- devel/Makefile | 1 + 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, 54 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f1b85fdd2810..bdc5c098fb12 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7606,6 +7606,7 @@ SUBDIR += rust-analyzer SUBDIR += rust-bindgen-cli SUBDIR += rust-cbindgen + SUBDIR += rust-mode 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..2a2272bbf6f2 --- /dev/null +++ b/devel/rust-mode/Makefile @@ -0,0 +1,27 @@ +PORTNAME= rust-mode +DISTVERSION= 1.0.5-58 +DISTVERSIONSUFFIX= -g9c26dc1 +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 + +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 diff --git a/devel/rust-mode/distinfo b/devel/rust-mode/distinfo new file mode 100644 index 000000000000..cc8b6ecbfff6 --- /dev/null +++ b/devel/rust-mode/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1706059992 +SHA256 (rust-lang-rust-mode-1.0.5-58-g9c26dc1_GH0.tar.gz) = e8a9e84045b0cafd6db65417f3499f4edcb5964d53672af8b487e9d283b0009c +SIZE (rust-lang-rust-mode-1.0.5-58-g9c26dc1_GH0.tar.gz) = 53202 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