From 7b5306e0d287565138e8b051e32f57e6af6ae0ed Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 13 Oct 2024 04:04:07 +0100 Subject: gentoo auto-resync : 13:10:2024 - 04:04:06 --- app-emacs/rnc-mode/Manifest | 4 ++- .../rnc-mode/files/rnc-mode-1.0.6-flymake.patch | 30 ++++++++++++++++++++ .../rnc-mode/files/rnc-mode-1.0.6-font-lock.patch | 33 ++++++++++++++++++++++ app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild | 22 +++++++++++++++ app-emacs/rnc-mode/rnc-mode-1.0.6.ebuild | 18 ------------ 5 files changed, 88 insertions(+), 19 deletions(-) create mode 100644 app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch create mode 100644 app-emacs/rnc-mode/files/rnc-mode-1.0.6-font-lock.patch create mode 100644 app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild delete mode 100644 app-emacs/rnc-mode/rnc-mode-1.0.6.ebuild (limited to 'app-emacs/rnc-mode') diff --git a/app-emacs/rnc-mode/Manifest b/app-emacs/rnc-mode/Manifest index 1b83305921ad..ae0ce977285b 100644 --- a/app-emacs/rnc-mode/Manifest +++ b/app-emacs/rnc-mode/Manifest @@ -1,4 +1,6 @@ AUX 50rnc-mode-gentoo.el 127 BLAKE2B 250c927e7042ce2b1fae586c6b0bb0fee43d2ea6ee8d4a8d2ecd265a750c79a6e92e3017072baf27c234e3b06d4c6d056308dc78a55786b454903956a5619422 SHA512 b64dd174e9fc21accf1d9d1abb8302af72b3c0278f3fa7236ed5079c15668df3f148daed952b9c9a77cf71ff1399e15db6e446046fd4e73f7b76c1b5fdca4893 +AUX rnc-mode-1.0.6-flymake.patch 1246 BLAKE2B 19bc83b8c7090fa1d18ed8be3665ac5e63065dd26024e69fa102246333d6555037b7e4c6581a54598864aec8bdde15a2da3cb878ad4782140326f89918c4a86d SHA512 2c98b5e28f841ace4334f33a4c1877bcd20bbd65d5677f9cd12e9b93156949c276546644ad03f2ec8f584320a88d02fc0b3386eeb167e17026e868505edb6d9b +AUX rnc-mode-1.0.6-font-lock.patch 1393 BLAKE2B 9d59a30ca938b980ea6c4395af0a358978c3cbbc0ddf4eef9f5858c480232bc42b2a0c57e01022e9aba25999c387a89ee820278c14768f33909aa7c89d860834 SHA512 306fe47e5876b93702f320864f1a930edb850544c1b22ab2f7b9a1b117389d66223688def1a97c69a86d372a3526faf9335472704ad9843b96b7835c36b8be20 DIST rnc-mode-1.0.6.tar.gz 5438 BLAKE2B 7c14f7e7c0db9f85a2bfab5d6fe064529416333d421658ded4284ab4513e037b930e89cc0ad74a00371374b4a7a0ceec3a81a121ac5688a18af17ed611b367aa SHA512 18dcf594bb12f8152578be85a36047d55bf407fb8ed086c03d7a7a69028f6616f651a5485e69aa1df30df6fda6fb742de05c8b54bd1b3c5c4e65021a83d63e30 -EBUILD rnc-mode-1.0.6.ebuild 472 BLAKE2B f36dc7bb0ca593ad0974757092e6a5784c33293beaa32a6f346319e5fb07913b910d4a2d700f49263804fd0e188fc939cf9cdc59a6859902b0d98c7b67f7c9ab SHA512 d343f7be47b34f8afe7572736f8b1e7dac75d8786953468295a9338d62fc135f004e82cb1dcaf2a8abdaf5b367f4ead93d51ab7c9dd3fd4ec55ebfab01ea3eef +EBUILD rnc-mode-1.0.6-r1.ebuild 554 BLAKE2B e8694ff6e866f1a5c8ba3a95dfc04f234f9d93104a00bb9410ca3f3ec32176a1204cfd93afbcf5869e126b9ff4cc8ac90839319d5069d1241796d4181e06e387 SHA512 d898f30406ce8d276413a56e7b5008f0f77ef151b25cb7479f971b700451c256a06c87b652d6f2d6766dfdd12cf2509757fd3954dd6a4eec96b7a33129240ea8 MISC metadata.xml 362 BLAKE2B d8584a92e600058e6e54a3a928c756afcd08cd95338b76bc131cb2f764f25d32d6f4b779140aa0fb19970d6f56cdedcaade5b94f7967bcff835c2aaa08a71db2 SHA512 aff2146e8adda4a06b2423742c00659482221d9a59a97fecd187b9e3eb1765a1d3eb31d26018b6b3786b4074ecf211b03091045a16fb555382994b95cba70138 diff --git a/app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch b/app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch new file mode 100644 index 000000000000..6904a063c682 --- /dev/null +++ b/app-emacs/rnc-mode/files/rnc-mode-1.0.6-flymake.patch @@ -0,0 +1,30 @@ +Update function and variable names that are obsolete since Emacs 26 + +--- rnc-mode-1.0.6/rnc-mode.el ++++ rnc-mode-1.0.6/rnc-mode.el +@@ -113,8 +113,8 @@ + + (defun rnc-flymake-init () + "Flymake init function for running Jing on the schema." +- (let* ((temp-file (flymake-init-create-temp-buffer-copy +- 'flymake-create-temp-inplace)) ++ (let* ((temp-file (flymake-proc-init-create-temp-buffer-copy ++ 'flymake-proc-create-temp-inplace)) + (local-file (file-relative-name + temp-file + (file-name-directory buffer-file-name)))) +@@ -123,11 +123,11 @@ + (defun rnc-configure-flymake () + (if (and (stringp rnc-jing-jar-file) + (file-exists-p rnc-jing-jar-file)) +- (add-to-list 'flymake-allowed-file-name-masks ++ (add-to-list 'flymake-proc-allowed-file-name-masks + '(".+\\.rnc$" + rnc-flymake-init +- flymake-simple-cleanup +- flymake-get-real-file-name)) ++ flymake-proc-simple-cleanup ++ flymake-proc-get-real-file-name)) + (message "RNC flymake not enabled because the Jing jar could not be found"))) + + ;;; Imenu support diff --git a/app-emacs/rnc-mode/files/rnc-mode-1.0.6-font-lock.patch b/app-emacs/rnc-mode/files/rnc-mode-1.0.6-font-lock.patch new file mode 100644 index 000000000000..5f615468ed11 --- /dev/null +++ b/app-emacs/rnc-mode/files/rnc-mode-1.0.6-font-lock.patch @@ -0,0 +1,33 @@ +Remove indirection for face names + +--- rnc-mode-1.0.6/rnc-mode.el ++++ rnc-mode-1.0.6/rnc-mode.el +@@ -156,24 +156,17 @@ + (concat (substring result 0 -2) "\\)")) + (setq result (concat result op "\\|"))))) + +-;; Font lock treats face names differently in GNU Emacs and XEmacs +-;; The following defvars is a workaround +- +-(defvar italic 'italic) +-(defvar default 'default) +-(defvar font-lock-preprocessor-face 'font-lock-preprocessor-face) +- + (defvar rnc-font-lock-keywords + (list + '("\\b\\(attribute\\|element\\)\\b\\([^{]+\\){" 2 + font-lock-variable-name-face) +- '("[a-zA-Z][-a-zA-Z0-9._]*:[a-zA-Z][-a-zA-Z0-9._]*" . italic) ++ '("[a-zA-Z][-a-zA-Z0-9._]*:[a-zA-Z][-a-zA-Z0-9._]*" . 'italic) + '("\\b\\(default\\(\\s +namespace\\)?\\|namespace\\|datatypes\\)\\(\\s +[a-zA-Z][-a-zA-Z0-9._]*\\)?\\s *=" 1 font-lock-preprocessor-face) + '("\\([a-zA-Z][-a-zA-Z0-9._]*\\)\\(\\s \\|\n\\)*[|&]?=" 1 + font-lock-function-name-face) +- '("[a-zA-Z][a-zA-Z0-9._]*\\(-[a-zA-Z][a-zA-Z0-9._]*\\)+" . default) +- (cons (rnc-make-regexp-choice rnc-atoms) 'italic) +- (cons (rnc-make-regexp-choice rnc-keywords) font-lock-keyword-face) ++ '("[a-zA-Z][a-zA-Z0-9._]*\\(-[a-zA-Z][a-zA-Z0-9._]*\\)+" . 'default) ++ (cons (rnc-make-regexp-choice rnc-atoms) ''italic) ++ (cons (rnc-make-regexp-choice rnc-keywords) 'font-lock-keyword-face) + ) + "RNC Highlighting") + diff --git a/app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild b/app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild new file mode 100644 index 000000000000..820aaf70cc00 --- /dev/null +++ b/app-emacs/rnc-mode/rnc-mode-1.0.6-r1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp + +DESCRIPTION="An Emacs mode for editing Relax NG compact schema files" +HOMEPAGE="https://github.com/TreeRex/rnc-mode + https://www.emacswiki.org/emacs/RELAX_NG" +SRC_URI="https://github.com/TreeRex/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +PATCHES=( + "${FILESDIR}/${P}-flymake.patch" + "${FILESDIR}/${P}-font-lock.patch" +) +SITEFILE="50${PN}-gentoo.el" +DOCS="README.md" diff --git a/app-emacs/rnc-mode/rnc-mode-1.0.6.ebuild b/app-emacs/rnc-mode/rnc-mode-1.0.6.ebuild deleted file mode 100644 index 6dd83e053d79..000000000000 --- a/app-emacs/rnc-mode/rnc-mode-1.0.6.ebuild +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit elisp - -DESCRIPTION="An Emacs mode for editing Relax NG compact schema files" -HOMEPAGE="https://github.com/TreeRex/rnc-mode - https://www.emacswiki.org/emacs/RELAX_NG" -SRC_URI="https://github.com/TreeRex/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" - -SITEFILE="50${PN}-gentoo.el" -DOCS="README.md" -- cgit v1.2.3