summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-07 14:56:24 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-07 14:56:44 +0200
commit1f2dd05a7ee5857dd45ffbc4700cfa5ad3b7bc97 (patch)
treeb4224f58d23d8d1c0f7ebe0fc9f57f2910d387c4 /app-emacs
parentdev-util/maturin: add 0.12.12 (diff)
downloadgentoo-1f2dd05a7ee5857dd45ffbc4700cfa5ad3b7bc97.tar.gz
gentoo-1f2dd05a7ee5857dd45ffbc4700cfa5ad3b7bc97.tar.bz2
gentoo-1f2dd05a7ee5857dd45ffbc4700cfa5ad3b7bc97.zip
app-emacs/rainbow-delimiters: new package; add version 2.1.5
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/rainbow-delimiters/Manifest1
-rw-r--r--app-emacs/rainbow-delimiters/files/50rainbow-delimiters-gentoo.el3
-rw-r--r--app-emacs/rainbow-delimiters/metadata.xml13
-rw-r--r--app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild37
4 files changed, 54 insertions, 0 deletions
diff --git a/app-emacs/rainbow-delimiters/Manifest b/app-emacs/rainbow-delimiters/Manifest
new file mode 100644
index 000000000000..dc3c8f2bfe15
--- /dev/null
+++ b/app-emacs/rainbow-delimiters/Manifest
@@ -0,0 +1 @@
+DIST rainbow-delimiters-2.1.5.tar.gz 8201 BLAKE2B 61b3f33cdacf87bcef26c42cfde2d5cdae0c2958b73bd181aae11fe774f8b29efce8ceaf8b28df24626a76e81f5f20ee3ceb9f1f565c988fa7729160104ee113 SHA512 e7d734ad255bbcab17d14dbe0af8430df3ccb094415d19721eb08969b168773e58834f654948bd776215c6c62209d3ccb800cd410a739d35f9f720103f4ed076
diff --git a/app-emacs/rainbow-delimiters/files/50rainbow-delimiters-gentoo.el b/app-emacs/rainbow-delimiters/files/50rainbow-delimiters-gentoo.el
new file mode 100644
index 000000000000..b92fdc1fd114
--- /dev/null
+++ b/app-emacs/rainbow-delimiters/files/50rainbow-delimiters-gentoo.el
@@ -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)
diff --git a/app-emacs/rainbow-delimiters/metadata.xml b/app-emacs/rainbow-delimiters/metadata.xml
new file mode 100644
index 000000000000..2ad483954046
--- /dev/null
+++ b/app-emacs/rainbow-delimiters/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/Fanael/rainbow-delimiters/issues/</bugs-to>
+ <remote-id type="github">Fanael/rainbow-delimiters</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild b/app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild
new file mode 100644
index 000000000000..aba0b74e0ccf
--- /dev/null
+++ b/app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild
@@ -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
+}