[gentoo-commits] repo/gentoo:master commit in: app-emacs/rainbow-delimiters/files/, app-emacs/rainbow-delimiters/
commit: 1f2dd05a7ee5857dd45ffbc4700cfa5ad3b7bc97 Author: Maciej Barć gentoo org> AuthorDate: Thu Apr 7 12:56:24 2022 + Commit: Maciej Barć gentoo org> CommitDate: Thu Apr 7 12:56:44 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f2dd05a app-emacs/rainbow-delimiters: new package; add version 2.1.5 Signed-off-by: Maciej Barć gentoo.org> 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(+) diff --git a/app-emacs/rainbow-delimiters/Manifest b/app-emacs/rainbow-delimiters/Manifest new file mode 100644 index ..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 ..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 ..2ad483954046 --- /dev/null +++ b/app-emacs/rainbow-delimiters/metadata.xml @@ -0,0 +1,13 @@ + +https://www.gentoo.org/dtd/metadata.dtd";> + + + +gnu-em...@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 ..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 +}
[gentoo-commits] repo/gentoo:master commit in: app-emacs/rainbow-delimiters/files/, app-emacs/rainbow-delimiters/
commit: b7df8cd59988ffaa1827918fd959674f768c631c Author: Maciej Barć gentoo org> AuthorDate: Sat Jan 20 20:40:48 2024 + Commit: Maciej Barć gentoo org> CommitDate: Sat Jan 20 20:45:13 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7df8cd5 app-emacs/rainbow-delimiters: remove failing test Closes: https://bugs.gentoo.org/911301 Signed-off-by: Maciej Barć gentoo.org> .../files/rainbow-delimiters-2.1.5-test.patch | 26 ++ .../rainbow-delimiters-2.1.5.ebuild| 24 +--- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/app-emacs/rainbow-delimiters/files/rainbow-delimiters-2.1.5-test.patch b/app-emacs/rainbow-delimiters/files/rainbow-delimiters-2.1.5-test.patch new file mode 100644 index ..43f1cd566f2e --- /dev/null +++ b/app-emacs/rainbow-delimiters/files/rainbow-delimiters-2.1.5-test.patch @@ -0,0 +1,26 @@ +diff --git a/rainbow-delimiters-test.el.orig b/rainbow-delimiters-test.el +index 4683a9e..6a6f677 100644 +--- a/rainbow-delimiters-test.el.orig b/rainbow-delimiters-test.el +@@ -141,21 +141,6 @@ + 9 10 (face (rainbow-delimiters-depth-2-face)) + 10 11 (face (rainbow-delimiters-depth-1-face + +-(ert-deftest highlights-all-delimiters () +- (with-temp-buffer-in-mode 'c++-mode +-(with-string (str "foo x;") +- (should (ert-equal-including-properties +- (progn +- (remove-list-of-text-properties +- (point-min) (point-max) '(category c-type syntax-table)) +- (buffer-string)) +- #("foo x;" +- 0 3 (face font-lock-type-face) +- 3 4 (face (rainbow-delimiters-depth-1-face)) +- 4 7 (face font-lock-type-face) +- 7 8 (face (rainbow-delimiters-depth-1-face)) +- 9 10 (face font-lock-variable-name-face))) +- + (ert-deftest doesnt-higlight-nondelimiters-1 () + (should-do-nothing 'text-mode "foo")) + diff --git a/app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild b/app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild index 79817d9fb51f..de3e3f172a3c 100644 --- a/app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild +++ b/app-emacs/rainbow-delimiters/rainbow-delimiters-2.1.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -7,11 +7,22 @@ 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" + +if [[ "${PV}" == ** ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/Fanael/${PN}.git"; +else + SRC_URI="https://github.com/Fanael/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="amd64 ~x86" +fi LICENSE="GPL-3+" SLOT="0" -KEYWORDS="amd64 ~x86" + +PATCHES=( "${FILESDIR}/${PN}-2.1.5-test.patch" ) SITEFILE="50${PN}-gentoo.el" DOC_CONTENTS="To start the mode automatically in foo-mode, @@ -21,13 +32,10 @@ DOC_CONTENTS="To start the mode automatically in foo-mode, (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 -} +elisp-enable-tests ert . src_install() { - elisp-install ${PN} ${PN}.el{,c} + elisp-install "${PN}" ${PN}.el{,c} elisp-site-file-install "${FILESDIR}/${SITEFILE}" einstalldocs