diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-08-31 15:57:15 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-08-31 15:58:28 +0200 |
commit | 7ad37a806ef0f38c81a5a5a466a01ff23d9e4414 (patch) | |
tree | 7cbe37181233b1a22cee95b26a60903a055c250b /app-emacs | |
parent | sys-libs/pam_wrapper: Stabilize 1.1.4-r1 ppc64, #867586 (diff) | |
download | gentoo-7ad37a806ef0f38c81a5a5a466a01ff23d9e4414.tar.gz gentoo-7ad37a806ef0f38c81a5a5a466a01ff23d9e4414.tar.bz2 gentoo-7ad37a806ef0f38c81a5a5a466a01ff23d9e4414.zip |
app-emacs/rescript-mode: new package; add version 0.1.0_p20220613
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/rescript-mode/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/rescript-mode/files/50rescript-mode-gentoo.el | 4 | ||||
-rw-r--r-- | app-emacs/rescript-mode/metadata.xml | 13 | ||||
-rw-r--r-- | app-emacs/rescript-mode/rescript-mode-0.1.0_p20220613.ebuild | 29 |
4 files changed, 47 insertions, 0 deletions
diff --git a/app-emacs/rescript-mode/Manifest b/app-emacs/rescript-mode/Manifest new file mode 100644 index 000000000000..14c343aa6c95 --- /dev/null +++ b/app-emacs/rescript-mode/Manifest @@ -0,0 +1 @@ +DIST rescript-mode-0.1.0_p20220613.tar.gz 111284 BLAKE2B 9c10024ebb5a46be418576d37eb39401ea99be42993add431a4628e64c27d34f1a801a79a3fb64635cdcdb9b2d20346d5ffa71968cadb6ee239099e5bcc39dd0 SHA512 93da6da0abf9bb537c6bc441e350a2b5047726b460083aaccdb1cfb0efd8a845f46d30e7ad85901ffded9d9e5f15846ba181009012ab3dc9c1a7e8982f50e385 diff --git a/app-emacs/rescript-mode/files/50rescript-mode-gentoo.el b/app-emacs/rescript-mode/files/50rescript-mode-gentoo.el new file mode 100644 index 000000000000..dde7c87052d9 --- /dev/null +++ b/app-emacs/rescript-mode/files/50rescript-mode-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'rescript-mode "rescript-mode" + "Major mode for ReScript code." t) +(add-to-list 'auto-mode-alist '("\\.resi?\\'" . rescript-mode)) diff --git a/app-emacs/rescript-mode/metadata.xml b/app-emacs/rescript-mode/metadata.xml new file mode 100644 index 000000000000..6f223c0b4058 --- /dev/null +++ b/app-emacs/rescript-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/jjlee/rescript-mode/issues/</bugs-to> + <remote-id type="github">jjlee/rescript-mode</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-emacs/rescript-mode/rescript-mode-0.1.0_p20220613.ebuild b/app-emacs/rescript-mode/rescript-mode-0.1.0_p20220613.ebuild new file mode 100644 index 000000000000..bf64acbbe06f --- /dev/null +++ b/app-emacs/rescript-mode/rescript-mode-0.1.0_p20220613.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=2aae2fbd4971dff965c758ec19688780ed7bff21 +NEED_EMACS=26.1 + +inherit elisp + +DESCRIPTION="Emacs major mode for ReScript" +HOMEPAGE="https://github.com/jjlee/rescript-mode/" +SRC_URI="https://github.com/jjlee/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${H} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( app-emacs/ert-runner )" + +DOCS=( README.md error.png typeinfo.png ) +SITEFILE="50${PN}-gentoo.el" + +src_test() { + ert-runner -L . -L test --reporter ert+duration --script test || die +} |