commit:     520752f630685720be380686f2cff10d6068f9d0
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 16 07:37:46 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Apr 16 08:16:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=520752f6

app-emacs/compat: bump to 30.1.0.0

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/compat/Manifest               |  1 +
 app-emacs/compat/compat-30.1.0.0.ebuild | 67 +++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/app-emacs/compat/Manifest b/app-emacs/compat/Manifest
index 838a0f160142..cd71486300e6 100644
--- a/app-emacs/compat/Manifest
+++ b/app-emacs/compat/Manifest
@@ -1 +1,2 @@
 DIST compat-30.0.2.0.tar.gz 142328 BLAKE2B 
aed05c7b352076a455185760e2a90515f15e4606d2845791ec7e77e89724bc6177cca6669d5f7955b6d1c728824502e634340b0db12cd800b6e61c567e20ae73
 SHA512 
4706d161e352987897cf23bd50c9afdb4e861e39f829031a0f5c4693c8c0b84a181ec1a21023438d0d3b85d2164edcdd839bacb11ef158ec60d4a945d7b1d436
+DIST compat-30.1.0.0.tar.gz 143888 BLAKE2B 
095e3a85278d5b212e54ad39d027333a03bb176fe599f49160e1286c322318c0d46b6a80f70f7b0a58426300c1fdc0b4bfaf2ad790ac8b716e87f525ad10257f
 SHA512 
e95f159d69446d2ea0a21a3a993343de4b38f1f754a2fbc742ac53507baca45000476c6f3385d5b2ab107596ae501b8da3467a10db62465fa00e8c4ce620d4cc

diff --git a/app-emacs/compat/compat-30.1.0.0.ebuild 
b/app-emacs/compat/compat-30.1.0.0.ebuild
new file mode 100644
index 000000000000..1997dd5aeb02
--- /dev/null
+++ b/app-emacs/compat/compat-30.1.0.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp
+
+DESCRIPTION="Compatibility libraries for Emacs"
+HOMEPAGE="https://github.com/emacs-compat/compat/
+       https://git.sr.ht/~pkal/compat/";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/emacs-compat/${PN}.git";
+else
+       SRC_URI="https://github.com/emacs-compat/${PN}/archive/${PV}.tar.gz
+               -> ${P}.tar.gz"
+
+       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+BDEPEND="
+       sys-apps/texinfo
+"
+
+ELISP_TEXINFO="${PN}.texi"
+
+src_prepare() {
+       elisp_src_prepare
+
+       # Skip failing test.
+       local -a skip_tests=(
+               compat-read-answer
+               compat-read-multiple-choice
+       )
+       local skip_test=""
+       for skip_test in "${skip_tests[@]}"; do
+               sed -i "/${skip_test}/a (ert-skip nil)" ./compat-tests.el || die
+       done
+}
+
+src_test() {
+       local has_json="$("${EMACS}" ${EMACSFLAGS} --eval "(princ (fboundp 
'json-parse-string))")"
+       if [[ "${has_json}" != t ]] ; then
+               local line
+               while read line ; do
+                       ewarn "${line}"
+               done <<-EOF
+               Your current Emacs version does not support native JSON parsing,
+               which is required for running tests of ${CATEGORY}/${PN}.
+               Emerge >=app-editors/emacs-27 with USE="json" and use "eselect 
emacs"
+               to select that version.
+               EOF
+       else
+               emake test
+       fi
+}
+
+src_install() {
+       rm ./compat-tests.el || die
+
+       elisp_src_install
+}

Reply via email to