Skip to content

Commit

Permalink
app-emacs/erlang-mode: new package, add 27.0.1
Browse files Browse the repository at this point in the history
Extract erlang-mode out of dev-lang/erlang package.

Signed-off-by: Matthew Smith <[email protected]>
  • Loading branch information
MatthewGentoo committed Aug 3, 2024
1 parent 90b5330 commit 3cc4377
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-emacs/erlang-mode/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST erlang-27.0.1.tar.gz 62055749 BLAKE2B 2cbf74efb6e2bd821b30e9b39d13b5b16899a49eedcbedd171068cb4da5d2f5cd98697a4234387d194aeace3ec1c168d752a2afd5bc52c4c6799dfd68ade6916 SHA512 03bba7f7d8226474b4dba9855e78b59c7cf78973fbb2ed48893a26879dc0dce579336e9cae6870f154bdd48cf3be6398cc1ec4ff52f252017d84edb20d565e71
28 changes: 28 additions & 0 deletions app-emacs/erlang-mode/erlang-mode-27.0.1.ebuild
Original file line number Diff line number Diff line change
@@ -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}
}
3 changes: 3 additions & 0 deletions app-emacs/erlang-mode/files/50erlang-mode-gentoo.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(add-to-list 'load-path "@SITELISP@")
(require 'erlang-start)
(setq erlang-root-dir "/usr/share")
16 changes: 16 additions & 0 deletions app-emacs/erlang-mode/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 3cc4377

Please sign in to comment.