summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-05-13 09:26:12 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-05-13 09:37:20 +0200
commit6a06f74c6939d759abffab42b2fa762deadbad0c (patch)
treec314a1d8e232953e5ced12fd5504a053507e4a11 /app-emacs
parentapp-emacs/flycheck-nimsuggest: new package; add 0.8.1_p20171027 (diff)
downloadgentoo-6a06f74c6939d759abffab42b2fa762deadbad0c.tar.gz
gentoo-6a06f74c6939d759abffab42b2fa762deadbad0c.tar.bz2
gentoo-6a06f74c6939d759abffab42b2fa762deadbad0c.zip
app-emacs/nim-mode: new package; add version 0.4.2_p20211102
2021.11.02 snapshot Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/nim-mode/Manifest1
-rw-r--r--app-emacs/nim-mode/files/50nim-mode-gentoo.el13
-rw-r--r--app-emacs/nim-mode/metadata.xml13
-rw-r--r--app-emacs/nim-mode/nim-mode-0.4.2_p20211102.ebuild29
4 files changed, 56 insertions, 0 deletions
diff --git a/app-emacs/nim-mode/Manifest b/app-emacs/nim-mode/Manifest
new file mode 100644
index 000000000000..0ef9cc057cac
--- /dev/null
+++ b/app-emacs/nim-mode/Manifest
@@ -0,0 +1 @@
+DIST nim-mode-0.4.2_p20211102.tar.gz 77240 BLAKE2B 54e3acc5f4bbfe5b921a44b71a423aa2bed704ed08075c893d277eaa8922c96b08087abaef0e4999f6dd237041a06593d11bf09299b1e56edc985fbddb43d6ff SHA512 09385e9413832deb86bbe223301c99366a86e81c7ec43b2add559337184ee93ded1f6d1ed9018bcd25b870d60ff4d302c11d10b55d734ef3463432ceef186601
diff --git a/app-emacs/nim-mode/files/50nim-mode-gentoo.el b/app-emacs/nim-mode/files/50nim-mode-gentoo.el
new file mode 100644
index 000000000000..6c4e00cec245
--- /dev/null
+++ b/app-emacs/nim-mode/files/50nim-mode-gentoo.el
@@ -0,0 +1,13 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'nim-mode "nim-mode"
+ "A major mode for the Nim programming language." t)
+(autoload 'nimscript-mode "nim-mode"
+ "A major-mode for NimScript files." t)
+(autoload 'nimscript-mode-maybe "nim-mode"
+ "Most likely turn on ‘nimscript-mode’." t)
+(autoload 'nimsuggest-mode "nim-suggest"
+ "Minor mode for nimsuggest." t)
+(add-to-list 'auto-mode-alist '("\\.nim\\'" . nim-mode))
+(add-to-list 'auto-mode-alist '("\\.nim\\(ble\\|s\\)\\'" . nimscript-mode-maybe))
+(add-hook 'nim-mode-hook 'nimsuggest-mode)
+(add-hook 'nimsuggest-mode-hook 'flycheck-mode)
diff --git a/app-emacs/nim-mode/metadata.xml b/app-emacs/nim-mode/metadata.xml
new file mode 100644
index 000000000000..13434a3dcb26
--- /dev/null
+++ b/app-emacs/nim-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>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/nim-lang/nim-mode/issues/</bugs-to>
+ <remote-id type="github">nim-lang/nim-mode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emacs/nim-mode/nim-mode-0.4.2_p20211102.ebuild b/app-emacs/nim-mode/nim-mode-0.4.2_p20211102.ebuild
new file mode 100644
index 000000000000..afa42d5ff7b6
--- /dev/null
+++ b/app-emacs/nim-mode/nim-mode-0.4.2_p20211102.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+H=744e076f0bea1c5ddc49f92397d9aa98ffa7eff8
+NEED_EMACS=24.4
+
+inherit elisp
+
+DESCRIPTION="Emacs major mode for the Nim programming language support"
+HOMEPAGE="https://github.com/nim-lang/nim-mode/"
+SRC_URI="https://github.com/nim-lang/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${H}
+
+LICENSE="GPL-3+"
+KEYWORDS="~amd64"
+SLOT="0"
+RESTRICT="test" # some test are broken
+
+RDEPEND="
+ app-emacs/commenter
+ app-emacs/epc
+"
+BDEPEND="${RDEPEND}"
+PDEPEND="app-emacs/flycheck-nimsuggest"
+
+DOCS=( README.md starterKit.nims )
+SITEFILE="50${PN}-gentoo.el"