app-emacs/elm-mode: new package; add version 0.22.0_p20250401

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2026-03-12 23:23:54 +01:00
parent 8191e9812d
commit d1b845e00a
4 changed files with 70 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST elm-mode-0.22.0_p20250401.gh.tar.gz 43218 BLAKE2B fa159ca2f1e9049d8a53fcafe4b5766ad0ccf943b3841305c496b4e38166dbd397fa72af197666f5b22d647be04b6bcd86c639514b4b5bb72bfe918d687c05b7 SHA512 1aea717470214acaaa9a66b32180735acffc2601a0a293baff8024f02b29ba2edab03220c21ecc30ba6c86f58b08bede09ca3011a85415cecc814c9378fed0f6
@@ -0,0 +1,54 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
[[ "${PV}" == *_p20250401 ]] && COMMIT="90b72cd2c9bc4506f531bcdcd73fa2530d9f4f7c"
inherit elisp
DESCRIPTION="Major mode for the Elm programming language"
HOMEPAGE="https://github.com/jcollard/elm-mode/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jcollard/${PN}"
else
SRC_URI="https://github.com/jcollard/${PN}/archive/${COMMIT}.tar.gz
-> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3+"
SLOT="0"
RDEPEND="
app-emacs/f
app-emacs/reformatter
app-emacs/s
"
BDEPEND="
${RDEPEND}
"
DOCS=( README.md )
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
sed -i elm-tags.el -e "s|(f-dirname load-file-name)|\"${SITEETC}/${PN}\"|g" || die
elisp_src_prepare
}
src_compile() {
elisp_src_compile
elisp-make-autoload-file
}
src_install() {
elisp_src_install
insinto "${SITEETC}/${PN}"
doins elm.tags
}
@@ -0,0 +1,2 @@
(add-to-list 'load-path "@SITELISP@")
(load "@SITELISP@/elm-mode-autoloads.el" nil t)
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>gnu-emacs@gentoo.org</email>
<name>Gentoo GNU Emacs project</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/jcollard/elm-mode/issues/</bugs-to>
<remote-id type="github">jcollard/elm-mode</remote-id>
</upstream>
</pkgmetadata>