diff options
author | 2024-08-03 12:52:31 +0000 | |
---|---|---|
committer | 2024-08-03 13:03:04 +0000 | |
commit | 3cc4377f77e462005b5f68bb1efa69dbbcc43813 (patch) | |
tree | d9d5a90e8dc1daf5dbfce3872a2e22db92a37bcd /app-emacs | |
parent | dev-libs/tree-sitter-gleam: add 1.0.0 (diff) | |
download | gentoo-3cc4377f77e462005b5f68bb1efa69dbbcc43813.tar.gz gentoo-3cc4377f77e462005b5f68bb1efa69dbbcc43813.tar.bz2 gentoo-3cc4377f77e462005b5f68bb1efa69dbbcc43813.zip |
app-emacs/erlang-mode: new package, add 27.0.1
Extract erlang-mode out of dev-lang/erlang package.
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/erlang-mode/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/erlang-mode/erlang-mode-27.0.1.ebuild | 28 | ||||
-rw-r--r-- | app-emacs/erlang-mode/files/50erlang-mode-gentoo.el | 3 | ||||
-rw-r--r-- | app-emacs/erlang-mode/metadata.xml | 16 |
4 files changed, 48 insertions, 0 deletions
diff --git a/app-emacs/erlang-mode/Manifest b/app-emacs/erlang-mode/Manifest new file mode 100644 index 000000000000..04ec6d235edb --- /dev/null +++ b/app-emacs/erlang-mode/Manifest @@ -0,0 +1 @@ +DIST erlang-27.0.1.tar.gz 62055749 BLAKE2B 2cbf74efb6e2bd821b30e9b39d13b5b16899a49eedcbedd171068cb4da5d2f5cd98697a4234387d194aeace3ec1c168d752a2afd5bc52c4c6799dfd68ade6916 SHA512 03bba7f7d8226474b4dba9855e78b59c7cf78973fbb2ed48893a26879dc0dce579336e9cae6870f154bdd48cf3be6398cc1ec4ff52f252017d84edb20d565e71 diff --git a/app-emacs/erlang-mode/erlang-mode-27.0.1.ebuild b/app-emacs/erlang-mode/erlang-mode-27.0.1.ebuild new file mode 100644 index 000000000000..70b48bf303d9 --- /dev/null +++ b/app-emacs/erlang-mode/erlang-mode-27.0.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp + +# Distfile is shared with dev-lang/erlang. +DESCRIPTION="A major mode for editing Erlang" +HOMEPAGE="https://www.erlang. https://github.com/erlang/" +SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> erlang-${PV}.tar.gz" +S="${WORKDIR}"/otp-OTP-${PV}/lib/tools/emacs + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="!dev-lang/erlang[emacs(-)]" + +SITEFILE=50${PN}-gentoo.el + +src_install() { + elisp-install erlang *.el *.elc + + sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \ + "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE} || die + elisp-site-file-install "${T}"/${SITEFILE} +} diff --git a/app-emacs/erlang-mode/files/50erlang-mode-gentoo.el b/app-emacs/erlang-mode/files/50erlang-mode-gentoo.el new file mode 100644 index 000000000000..8dbd920433bc --- /dev/null +++ b/app-emacs/erlang-mode/files/50erlang-mode-gentoo.el @@ -0,0 +1,3 @@ +(add-to-list 'load-path "@SITELISP@") +(require 'erlang-start) +(setq erlang-root-dir "/usr/share") diff --git a/app-emacs/erlang-mode/metadata.xml b/app-emacs/erlang-mode/metadata.xml new file mode 100644 index 000000000000..03f107b69d89 --- /dev/null +++ b/app-emacs/erlang-mode/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>matthew@gentoo.org</email> + <name>Matthew Smith</name> + </maintainer> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="github">erlang/otp</remote-id> + </upstream> +</pkgmetadata> |