commit:     d1b845e00a8b9f547be3e0db6ae30a805f245f06
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 12 22:20:49 2026 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Mar 12 22:23:54 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1b845e0

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

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/elm-mode/Manifest                        |  1 +
 .../elm-mode/elm-mode-0.22.0_p20250401.ebuild      | 54 ++++++++++++++++++++++
 app-emacs/elm-mode/files/50elm-mode-gentoo.el      |  2 +
 app-emacs/elm-mode/metadata.xml                    | 13 ++++++
 4 files changed, 70 insertions(+)

diff --git a/app-emacs/elm-mode/Manifest b/app-emacs/elm-mode/Manifest
new file mode 100644
index 000000000000..5eaf95c879e1
--- /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 000000000000..30f4868b60b2
--- /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 000000000000..fb7f3a597c73
--- /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 000000000000..e8f3c7352ea1
--- /dev/null
+++ b/app-emacs/elm-mode/metadata.xml
@@ -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>[email protected]</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>

Reply via email to