forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-emacs/erlang-mode: new package, add 27.0.1
Extract erlang-mode out of dev-lang/erlang package. Signed-off-by: Matthew Smith <[email protected]>
- Loading branch information
1 parent
90b5330
commit 3cc4377
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |