public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergey Popov" <pinkbyte@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/shc/
Date: Mon,  4 Apr 2022 12:10:50 +0000 (UTC)	[thread overview]
Message-ID: <1649074246.41ea1f45ef8603a287ff4723df43dac0103843ce.pinkbyte@gentoo> (raw)

commit:     41ea1f45ef8603a287ff4723df43dac0103843ce
Author:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  4 12:09:21 2022 +0000
Commit:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
CommitDate: Mon Apr  4 12:10:46 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41ea1f45

dev-util/shc-4.0.3: fix tests

Closes: https://bugs.gentoo.org/836761
Reported-by: Agostino Sarubbo <ago <AT> gentoo.org>
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org>

 dev-util/shc/shc-4.0.3.ebuild | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/dev-util/shc/shc-4.0.3.ebuild b/dev-util/shc/shc-4.0.3.ebuild
index 4bc77efcd7a9..818f2d0868eb 100644
--- a/dev-util/shc/shc-4.0.3.ebuild
+++ b/dev-util/shc/shc-4.0.3.ebuild
@@ -11,6 +11,30 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
 
+IUSE="test"
+
+DEPEND="test? (
+	app-shells/bash:0
+	app-shells/dash
+	app-shells/ksh
+	app-shells/tcsh
+	app-shells/zsh
+)"
+RDEPEND=""
+
+src_prepare() {
+	# ash requires sys-apps/busybox[make-symlinks], so exclude it too
+	# Exclude app-shells/rc from tests
+	# Fix path for app-shells/tcsh
+	sed -i \
+		-e "s:'/bin/ash'::" \
+		-e "s:'/usr/bin/rc'::" \
+		-e "s:/usr/bin/tcsh:/bin/tcsh:" \
+		test/ttest.sh || die
+
+	default
+}
+
 src_install() {
 	dobin src/shc
 	doman shc.1


             reply	other threads:[~2022-04-04 12:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-04 12:10 Sergey Popov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-09 11:50 [gentoo-commits] repo/gentoo:master commit in: dev-util/shc/ Andreas Sturmlechner
2024-11-09  9:58 Arthur Zamarin
2024-11-07  8:53 Sam James
2024-11-07  8:53 Sam James
2024-11-07  7:52 Petr Vaněk
2024-11-07  7:52 Petr Vaněk
2022-04-04 12:29 Sergey Popov
2022-04-04 11:02 Sergey Popov
2018-12-18 13:22 Sergey Popov
2018-12-18 13:22 Sergey Popov
2018-11-06  7:52 Sergey Popov

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=1649074246.41ea1f45ef8603a287ff4723df43dac0103843ce.pinkbyte@gentoo \
    --to=pinkbyte@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