summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-06-03 01:52:11 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-06-03 01:53:32 +0200
commit972736260b6d90cdef60ffc40c778bf37602ed0a (patch)
tree7f434201246aa1ffe02577c6b095f2965c9b5f5c /app-emacs/raku-mode
parentapp-emacs/flycheck-nimsuggest: fix runtime deps (diff)
downloadgentoo-972736260b6d90cdef60ffc40c778bf37602ed0a.tar.gz
gentoo-972736260b6d90cdef60ffc40c778bf37602ed0a.tar.bz2
gentoo-972736260b6d90cdef60ffc40c778bf37602ed0a.zip
app-emacs/raku-mode: new package; add version 0.2.1_p20211121
2021.11.21 snapshot Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/raku-mode')
-rw-r--r--app-emacs/raku-mode/Manifest1
-rw-r--r--app-emacs/raku-mode/files/50raku-mode-gentoo.el7
-rw-r--r--app-emacs/raku-mode/metadata.xml13
-rw-r--r--app-emacs/raku-mode/raku-mode-0.2.1_p20211121.ebuild29
4 files changed, 50 insertions, 0 deletions
diff --git a/app-emacs/raku-mode/Manifest b/app-emacs/raku-mode/Manifest
new file mode 100644
index 000000000000..14ec5f78bbd8
--- /dev/null
+++ b/app-emacs/raku-mode/Manifest
@@ -0,0 +1 @@
+DIST raku-mode-0.2.1_p20211121.tar.gz 31506 BLAKE2B 7faa69740ea882482bf8462b4fa1da497bcce1ab46f19b7c54520d53c5e7e8f29f55204fc6f41b6ba4059503efe3057b3b901ec41d4d635975f81e6d90e2ba9a SHA512 ee2bce5ce585d2cdb7c3ca8f387dfa5acc774a5923d53567d655f9a15cefe322f486ba32e9ae4ff9105116a15cc948bc0eb9e7a30fd1b2e57ab90cd741386526
diff --git a/app-emacs/raku-mode/files/50raku-mode-gentoo.el b/app-emacs/raku-mode/files/50raku-mode-gentoo.el
new file mode 100644
index 000000000000..49f659e0ab11
--- /dev/null
+++ b/app-emacs/raku-mode/files/50raku-mode-gentoo.el
@@ -0,0 +1,7 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'raku-mode "raku-mode"
+ "Major mode for editing Raku code." t)
+(add-to-list 'auto-mode-alist '("\\.nqp\\'" . raku-mode))
+(add-to-list 'auto-mode-alist '("\\.p[lm]?6\\'" . raku-mode))
+(add-to-list 'auto-mode-alist '("\\.raku\\(?:mod\\|test\\)?\\'" . raku-mode))
+(add-to-list 'interpreter-mode-alist '("perl6\\|raku" . raku-mode))
diff --git a/app-emacs/raku-mode/metadata.xml b/app-emacs/raku-mode/metadata.xml
new file mode 100644
index 000000000000..8835f758ecaa
--- /dev/null
+++ b/app-emacs/raku-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/Raku/raku-mode/issues/</bugs-to>
+ <remote-id type="github">Raku/raku-mode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emacs/raku-mode/raku-mode-0.2.1_p20211121.ebuild b/app-emacs/raku-mode/raku-mode-0.2.1_p20211121.ebuild
new file mode 100644
index 000000000000..0f07259a9572
--- /dev/null
+++ b/app-emacs/raku-mode/raku-mode-0.2.1_p20211121.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+H=977b14a7c1295ebf2aad2f807d3f8e7c27aeb47f
+NEED_EMACS=24.4
+
+inherit elisp
+
+DESCRIPTION="Major mode for editing Raku code"
+HOMEPAGE="https://github.com/Raku/raku-mode/"
+SRC_URI="https://github.com/Raku/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${H}
+
+LICENSE="GPL-3+"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( app-emacs/ert-runner )"
+
+DOCS=( CHANGELOG.md README.md README.tmp-imenu-notes )
+SITEFILE="50${PN}-gentoo.el"
+
+src_test() {
+ ert-runner -L . -L test --reporter ert+duration --script test || die
+}