From 1f2dd05a7ee5857dd45ffbc4700cfa5ad3b7bc97 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Thu, 7 Apr 2022 14:56:24 +0200 Subject: app-emacs/rainbow-delimiters: new package; add version 2.1.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- app-emacs/rainbow-delimiters/Manifest | 1 + .../files/50rainbow-delimiters-gentoo.el | 3 ++ app-emacs/rainbow-delimiters/metadata.xml | 13 ++++++++ .../rainbow-delimiters-2.1.5.ebuild | 37 ++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 app-emacs/rainbow-delimiters/Manifest create mode 100644 app-emacs/rainbow-delimiters/files/50rainbow-delimiters-gentoo.el create mode 100644 app-emacs/rainbow-delimiters/metadata.xml create mode 100644 app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild (limited to 'app-emacs/rainbow-delimiters') 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 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + https://github.com/Fanael/rainbow-delimiters/issues/ + Fanael/rainbow-delimiters + + 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 +} -- cgit v1.2.3-65-gdbad