From afcb9236a72cf602364c28b9bde6648e4a7f1ca5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 21 Jan 2024 02:09:25 +0000 Subject: gentoo auto-resync : 21:01:2024 - 02:09:25 --- app-emacs/rainbow-delimiters/Manifest | 3 ++- .../files/rainbow-delimiters-2.1.5-test.patch | 26 ++++++++++++++++++++++ .../rainbow-delimiters-2.1.5.ebuild | 24 +++++++++++++------- 3 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 app-emacs/rainbow-delimiters/files/rainbow-delimiters-2.1.5-test.patch (limited to 'app-emacs/rainbow-delimiters') diff --git a/app-emacs/rainbow-delimiters/Manifest b/app-emacs/rainbow-delimiters/Manifest index 00ca5871454e..5f83c4caeade 100644 --- a/app-emacs/rainbow-delimiters/Manifest +++ b/app-emacs/rainbow-delimiters/Manifest @@ -1,4 +1,5 @@ AUX 50rainbow-delimiters-gentoo.el 178 BLAKE2B 707854419da2bd4d1923d52505f5b77fe574cd01b066e701d76b0c19b0336b1f5e42cd8f08cff33a02c7aa29ea79928b0213d5b8bab04dabe0be35671761533b SHA512 49d1a3ce227c34ac3152fc5bde204e62cdd98d29323ab2bf4b0e85a474ee328f1964024670ebecbc98087a522ef587133c6f11b1992f97009227e21c0396722a +AUX rainbow-delimiters-2.1.5-test.patch 1099 BLAKE2B 86dc7d01273d1697a6d712d397729932124ca781331052e2f0aca996047d4d31382ff93fbe38595fc198baa48af7ec624dd5e255c7f77bd338b2ef7853f752a6 SHA512 17f798be0d5984e838be849fca8718b311a809d0fefc295ce71ca72aafda9f1ebb56eeba3dd23c3f140764fbe1509c9d29d77e44a2faeca5e774225c88ba24d5 DIST rainbow-delimiters-2.1.5.tar.gz 8201 BLAKE2B 61b3f33cdacf87bcef26c42cfde2d5cdae0c2958b73bd181aae11fe774f8b29efce8ceaf8b28df24626a76e81f5f20ee3ceb9f1f565c988fa7729160104ee113 SHA512 e7d734ad255bbcab17d14dbe0af8430df3ccb094415d19721eb08969b168773e58834f654948bd776215c6c62209d3ccb800cd410a739d35f9f720103f4ed076 -EBUILD rainbow-delimiters-2.1.5.ebuild 1006 BLAKE2B 69742cf2a307af9129d6be2ebeae47e65984155929dd36770db2b87fcfc16792ed9cfcfd50adb47386f5465b7682e4621c654907d6335308a7b9294765c25869 SHA512 58d6d5c667560e90c15af9c4b946cd9ffb4b7bcb71c5e5b6a6d1f28f1483a6219289bcc9ce15b5e3f3f5790022333c65c432542a50afd5ff02ecc71a84cfa3db +EBUILD rainbow-delimiters-2.1.5.ebuild 1088 BLAKE2B 41a98542089490cb907a2484fb4aeeafb5f94641ca782ab786c42e654c43f602a2e0f725757ef0ed3a16062f1dd8484b8e51c8ecb040ec555ddd526e046e7f45 SHA512 4f06b6a427ea849e5950aa8d46913df9541f0e4e0835851dcac95b91e9b4c808991b8160c0dc7f66daa8e5f9afa92554b0e34144a2a02dd238991192d936cb5a MISC metadata.xml 439 BLAKE2B adfa3bf55ef25ec2f0c959c6a8e4974378d1827f34a5d5ac9b839af74e278d40e7be0a333033dd899a6e2276f80fdadea4a6eb36e29fc4798f1c1971155f4ccc SHA512 bc1dafb4f6a74d1b78a311bcc0c9c88d3c53d6d0408d32cae5c2936b248155e20ce37c0c163f816ba47fab725fe3942c33f18f96d96355865dcde439fb55c826 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 000000000000..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}" == *9999* ]] ; 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 -- cgit v1.2.3