From 61d5f30bff79d725a02660bafe72d8a5187b564b Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Fri, 21 Jan 2022 17:41:31 +0100 Subject: app-emacs/lean-mode: new package; add version 20211220 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Maciej Barć --- app-emacs/lean-mode/Manifest | 1 + app-emacs/lean-mode/files/50lean-mode-gentoo.el | 4 +++ app-emacs/lean-mode/lean-mode-20211220.ebuild | 38 +++++++++++++++++++++++++ app-emacs/lean-mode/metadata.xml | 22 ++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 app-emacs/lean-mode/Manifest create mode 100644 app-emacs/lean-mode/files/50lean-mode-gentoo.el create mode 100644 app-emacs/lean-mode/lean-mode-20211220.ebuild create mode 100644 app-emacs/lean-mode/metadata.xml (limited to 'app-emacs/lean-mode') diff --git a/app-emacs/lean-mode/Manifest b/app-emacs/lean-mode/Manifest new file mode 100644 index 000000000000..628e448dfb9f --- /dev/null +++ b/app-emacs/lean-mode/Manifest @@ -0,0 +1 @@ +DIST lean-mode-20211220.tar.gz 46406 BLAKE2B ff7663ae41befed9ce30aeeb0462e6877b827367823e97330b18c741db76162f49b0ce0dca58585892d173e91e290d155320f97416ff4306958dd38f1e452e83 SHA512 23f1d24a4ffdcbff0266cf6e3fd6ddefcd6f380ecab6e21a73cfcbb2a281200f3c22482a19b97988af316a3e206ab3069abf4eb3d45a9ccff7e0f18018b1dab5 diff --git a/app-emacs/lean-mode/files/50lean-mode-gentoo.el b/app-emacs/lean-mode/files/50lean-mode-gentoo.el new file mode 100644 index 000000000000..8c6a9a2894ac --- /dev/null +++ b/app-emacs/lean-mode/files/50lean-mode-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'lean-mode "lean-mode" + "Major mode for editing Lean 3 source files." t) +(add-to-list 'auto-mode-alist '("\\.lean\\'" . lean-mode)) diff --git a/app-emacs/lean-mode/lean-mode-20211220.ebuild b/app-emacs/lean-mode/lean-mode-20211220.ebuild new file mode 100644 index 000000000000..c7be99f3162a --- /dev/null +++ b/app-emacs/lean-mode/lean-mode-20211220.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=a4205749d20a09871f0951c34f919d4ee5fbdb55 +NEED_EMACS=24.3 + +inherit elisp + +DESCRIPTION="Emacs mode for the Lean 3 theorem prover" +HOMEPAGE="https://github.com/leanprover/lean-mode/" +SRC_URI="https://github.com/leanprover/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${H}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + >=app-emacs/dash-2.18.1 + >=app-emacs/f-0.19.0 + >=app-emacs/flycheck-32 + >=app-emacs/s-1.10.0 +" +RDEPEND=" + ${DEPEND} + sci-mathematics/lean:0/3 +" + +DOCS=( README.md ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + rm {company,helm}-lean.el || die + + elisp_src_prepare +} diff --git a/app-emacs/lean-mode/metadata.xml b/app-emacs/lean-mode/metadata.xml new file mode 100644 index 000000000000..679365cf3709 --- /dev/null +++ b/app-emacs/lean-mode/metadata.xml @@ -0,0 +1,22 @@ + + + + + + xgqt@gentoo.org + Maciej Barć + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + Provides a major mode for the Lean 3 programming language. + Provides highlighting, diagnostics, goal visualization and many other + useful features for Lean users. + + + https://github.com/leanprover/lean-mode/issues + leanprover/lean-mode + + -- cgit v1.2.3-65-gdbad