app-emacs/rainbow-delimiters: new package; add version 2.1.5

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2022-04-07 14:56:24 +02:00
parent 446b49c191
commit 1f2dd05a7e
4 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST rainbow-delimiters-2.1.5.tar.gz 8201 BLAKE2B 61b3f33cdacf87bcef26c42cfde2d5cdae0c2958b73bd181aae11fe774f8b29efce8ceaf8b28df24626a76e81f5f20ee3ceb9f1f565c988fa7729160104ee113 SHA512 e7d734ad255bbcab17d14dbe0af8430df3ccb094415d19721eb08969b168773e58834f654948bd776215c6c62209d3ccb800cd410a739d35f9f720103f4ed076

View File

@@ -0,0 +1,3 @@
(add-to-list 'load-path "@SITELISP@")
(autoload 'rainbow-delimiters-mode "rainbow-delimiters"
"Highlight nested parentheses, brackets, and braces according to their depth." t)

View File

@@ -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/Fanael/rainbow-delimiters/issues/</bugs-to>
<remote-id type="github">Fanael/rainbow-delimiters</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
NEED_EMACS=24.1 # needs ERT for tests
inherit elisp readme.gentoo-r1
DESCRIPTION="Highlight nested parentheses, brackets, and braces according to their depth"
HOMEPAGE="https://github.com/Fanael/rainbow-delimiters/"
SRC_URI="https://github.com/Fanael/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
SITEFILE="50${PN}-gentoo.el"
DOC_CONTENTS="To start the mode automatically in foo-mode,
add the following to your init file:
\n\t(add-hook 'foo-mode-hook #'rainbow-delimiters-mode)
\nTo start the mode automatically in most programming modes
(Emacs 24 and above):
\n\t(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)"
src_test() {
# EMACS_VERSION is for GitHub CI, it can be left blank
EMACS_VERSION="" sh ./run-tests.sh || die
}
src_install() {
elisp-install ${PN} ${PN}.el{,c}
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
einstalldocs
readme.gentoo_create_doc
}