diff --git a/app-emacs/elm-mode/Manifest b/app-emacs/elm-mode/Manifest new file mode 100644 index 0000000000000..5eaf95c879e1d --- /dev/null +++ b/app-emacs/elm-mode/Manifest @@ -0,0 +1 @@ +DIST elm-mode-0.22.0_p20250401.gh.tar.gz 43218 BLAKE2B fa159ca2f1e9049d8a53fcafe4b5766ad0ccf943b3841305c496b4e38166dbd397fa72af197666f5b22d647be04b6bcd86c639514b4b5bb72bfe918d687c05b7 SHA512 1aea717470214acaaa9a66b32180735acffc2601a0a293baff8024f02b29ba2edab03220c21ecc30ba6c86f58b08bede09ca3011a85415cecc814c9378fed0f6 diff --git a/app-emacs/elm-mode/elm-mode-0.22.0_p20250401.ebuild b/app-emacs/elm-mode/elm-mode-0.22.0_p20250401.ebuild new file mode 100644 index 0000000000000..30f4868b60b23 --- /dev/null +++ b/app-emacs/elm-mode/elm-mode-0.22.0_p20250401.ebuild @@ -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 +} diff --git a/app-emacs/elm-mode/files/50elm-mode-gentoo.el b/app-emacs/elm-mode/files/50elm-mode-gentoo.el new file mode 100644 index 0000000000000..fb7f3a597c73a --- /dev/null +++ b/app-emacs/elm-mode/files/50elm-mode-gentoo.el @@ -0,0 +1,2 @@ +(add-to-list 'load-path "@SITELISP@") +(load "@SITELISP@/elm-mode-autoloads.el" nil t) diff --git a/app-emacs/elm-mode/metadata.xml b/app-emacs/elm-mode/metadata.xml new file mode 100644 index 0000000000000..e8f3c7352ea19 --- /dev/null +++ b/app-emacs/elm-mode/metadata.xml @@ -0,0 +1,13 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + https://github.com/jcollard/elm-mode/issues/ + jcollard/elm-mode + +