public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/compat/
Date: Tue, 21 Jun 2022 19:36:14 +0000 (UTC)	[thread overview]
Message-ID: <1655840171.98307eefb98e8ec4fa76501aa3bfb877ff59de96.xgqt@gentoo> (raw)

commit:     98307eefb98e8ec4fa76501aa3bfb877ff59de96
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 21 19:35:49 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Jun 21 19:36:11 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98307eef

app-emacs/compat: check for native JSON parsing support

Closes: https://bugs.gentoo.org/853322
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/compat/compat-28.1.1.3.ebuild | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/app-emacs/compat/compat-28.1.1.3.ebuild b/app-emacs/compat/compat-28.1.1.3.ebuild
index c220c6ceb7a3..e373d5d8f507 100644
--- a/app-emacs/compat/compat-28.1.1.3.ebuild
+++ b/app-emacs/compat/compat-28.1.1.3.ebuild
@@ -29,3 +29,19 @@ ELISP_TEXINFO="${PN}.texi"
 src_compile() {
 	emake compile ${PN}.info
 }
+
+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}.
+		Use "eselect emacs" to select an Emacs version with such feature.
+		EOF
+	else
+		emake test
+	fi
+}


             reply	other threads:[~2022-06-21 19:36 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21 19:36 Maciej Barć [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-03 18:32 [gentoo-commits] repo/gentoo:master commit in: app-emacs/compat/ Jakov Smolić
2024-07-12 12:35 Maciej Barć
2024-05-14 22:21 Maciej Barć
2024-04-23  1:31 Sam James
2024-03-20 19:30 Maciej Barć
2024-01-15 21:20 Maciej Barć
2024-01-03  8:10 Sam James
2023-12-15  2:33 Sam James
2023-11-13 12:38 Maciej Barć
2023-09-10 15:35 Maciej Barć
2023-09-02 15:35 Sam James
2023-08-02 14:11 Maciej Barć
2023-06-24 22:39 Sam James
2023-05-13 14:51 Jakov Smolić
2023-05-13 10:57 Maciej Barć
2023-05-13 10:57 Maciej Barć
2023-04-27 23:32 Sam James
2023-04-02  1:45 Sam James
2023-03-28  0:57 Maciej Barć
2023-03-13 22:48 Sam James
2023-03-13 12:01 Maciej Barć
2023-03-13 12:01 Maciej Barć
2023-03-06 15:33 Maciej Barć
2023-03-06 15:33 Maciej Barć
2023-02-12  0:48 Maciej Barć
2023-02-10 20:36 Sam James
2023-02-08 15:01 Maciej Barć
2023-02-08 15:01 Maciej Barć
2023-02-08 15:01 Maciej Barć
2023-02-02 17:46 Maciej Barć
2023-01-27 13:02 Maciej Barć
2023-01-27 13:02 Maciej Barć
2023-01-27 13:02 Maciej Barć
2023-01-23  7:57 Maciej Barć
2023-01-18 10:30 Maciej Barć
2023-01-16 14:32 Sam James
2023-01-16 12:20 Maciej Barć
2023-01-16 12:20 Maciej Barć
2023-01-09 21:16 Maciej Barć
2023-01-09 21:16 Maciej Barć
2023-01-09 21:16 Maciej Barć
2023-01-06 19:17 Maciej Barć
2023-01-03 23:25 Sam James
2023-01-03 23:25 Sam James
2022-10-17 19:23 Sam James
2022-10-17 17:30 Arthur Zamarin
2022-10-15 14:28 Arthur Zamarin
2022-10-08 20:29 Maciej Barć
2022-10-08 20:29 Maciej Barć
2022-08-27  1:27 Maciej Barć
2022-08-14 20:06 Sam James
2022-07-24 10:52 Matthew Smith
2022-07-24 10:52 Matthew Smith
2022-06-21 20:38 Ulrich Müller
2022-06-21 20:02 Ulrich Müller
2022-06-21 19:47 Maciej Barć
2022-06-21 17:48 Maciej Barć
2022-06-21 13:36 Maciej Barć
2022-05-29 14:47 Matthew Smith
2022-05-29  7:41 Matthew Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1655840171.98307eefb98e8ec4fa76501aa3bfb877ff59de96.xgqt@gentoo \
    --to=xgqt@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox