commit: 3cc4377f77e462005b5f68bb1efa69dbbcc43813 Author: Matthew Smith <matthew <AT> gentoo <DOT> org> AuthorDate: Sat Aug 3 12:52:31 2024 +0000 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> CommitDate: Sat Aug 3 13:03:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cc4377f
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 <AT> gentoo.org> app-emacs/erlang-mode/Manifest | 1 + app-emacs/erlang-mode/erlang-mode-27.0.1.ebuild | 28 ++++++++++++++++++++++ .../erlang-mode/files/50erlang-mode-gentoo.el | 3 +++ app-emacs/erlang-mode/metadata.xml | 16 +++++++++++++ 4 files changed, 48 insertions(+) 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>[email protected]</email> + <name>Matthew Smith</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="github">erlang/otp</remote-id> + </upstream> +</pkgmetadata>
