public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/emacs:master commit in: app-xemacs/ebuild-mode/
Date: Sun, 25 Aug 2024 16:13:45 +0000 (UTC)	[thread overview]
Message-ID: <1724602293.9dfefe999455c8c29de495bd250b89066de11ec0.ulm@gentoo> (raw)

commit:     9dfefe999455c8c29de495bd250b89066de11ec0
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 25 16:11:33 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 25 16:11:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=9dfefe99

app-xemacs/ebuild-mode: Enable tests

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-xemacs/ebuild-mode/ebuild-mode-9999.ebuild | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/app-xemacs/ebuild-mode/ebuild-mode-9999.ebuild b/app-xemacs/ebuild-mode/ebuild-mode-9999.ebuild
index e8a7b29..08028ad 100644
--- a/app-xemacs/ebuild-mode/ebuild-mode-9999.ebuild
+++ b/app-xemacs/ebuild-mode/ebuild-mode-9999.ebuild
@@ -17,31 +17,39 @@ S="${WORKDIR}/${PN}"
 
 LICENSE="GPL-2+"
 SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
 
-RDEPEND=">=app-editors/xemacs-21.4.20-r5
+RDEPEND=">=app-editors/xemacs-21.4.24-r9
 	app-xemacs/sh-script"
-BDEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}
+	test? ( || (
+		>=app-editors/xemacs-21.5.35
+		app-xemacs/test-harness
+	) )"
 
 src_compile() {
-	local XEMACS="${EPREFIX}/usr/bin/xemacs"
+	local EMACS="${EPREFIX}/usr/bin/xemacs"
 
-	"${XEMACS}" -batch -q --no-site-file \
+	"${EMACS}" -batch -q --no-site-file \
 		-eval "(add-to-list 'load-path nil)" \
 		-f batch-byte-compile \
 		ebuild-mode.el gentoo-newsitem-mode.el || die
 
-	"${XEMACS}" -batch -q --no-site-file \
+	"${EMACS}" -batch -q --no-site-file \
 		-eval "(setq autoload-package-name \"${PN}\")" \
 		-eval "(setq generated-autoload-file \"${S}/auto-autoloads.el\")" \
 		-l autoload -f batch-update-autoloads \
 		ebuild-mode.el gentoo-newsitem-mode.el || die
 }
 
-src_test() { :; }  # ERT is not yet available for XEmacs
+src_test() {
+	emake check EMACS="${EPREFIX}/usr/bin/xemacs"
+}
 
 src_install() {
 	insinto /usr/share/xemacs/site-packages/lisp/${PN}
-	doins *.el *.elc
+	doins ebuild-mode.{el,elc} gentoo-newsitem-mode.{el,elc} auto-autoloads.el
 	# XEmacs 21.4 compatibility
 	dosym -r /usr/{share,lib}/xemacs/site-packages/lisp/${PN}
 }


             reply	other threads:[~2024-08-25 16:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-25 16:13 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-03 18:42 [gentoo-commits] repo/proj/emacs:master commit in: app-xemacs/ebuild-mode/ Ulrich Müller
2024-11-03 17:54 Ulrich Müller
2024-09-07 15:15 Ulrich Müller
2024-08-28 17:16 Ulrich Müller
2024-08-26  4:41 Ulrich Müller
2024-08-25 13:09 Ulrich Müller
2024-08-15 17:31 Ulrich Müller
2024-08-10 17:19 Ulrich Müller
2022-12-27 13:21 Ulrich Müller
2021-04-07 15:14 Ulrich Müller

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=1724602293.9dfefe999455c8c29de495bd250b89066de11ec0.ulm@gentoo \
    --to=ulm@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