From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1518340-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 4587B158164
	for <garchives@archives.gentoo.org>; Sun, 14 May 2023 07:27:02 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 1F0E0E0866;
	Sun, 14 May 2023 07:27:01 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id E8035E0866
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 May 2023 07:27:00 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C8D00340DE6
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 May 2023 07:26:59 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 35668A5B
	for <gentoo-commits@lists.gentoo.org>; Sun, 14 May 2023 07:26:58 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1684049200.5086fec5beec7570a9b9944998170df04f6c589a.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/zsh/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-shells/zsh/metadata.xml app-shells/zsh/zsh-5.9-r4.ebuild
X-VCS-Directories: app-shells/zsh/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 5086fec5beec7570a9b9944998170df04f6c589a
X-VCS-Branch: master
Date: Sun, 14 May 2023 07:26:58 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: bb6f64bc-7150-4c7f-a59c-a3de63a8086b
X-Archives-Hash: c81efbffea3b1a5c38544ab7f4e94a69

commit:     5086fec5beec7570a9b9944998170df04f6c589a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May 14 07:24:45 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 14 07:26:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5086fec5

app-shells/zsh: add Valgrind annotation support

The headers are needed to get Valgrind annotations.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-shells/zsh/metadata.xml      | 3 +++
 app-shells/zsh/zsh-5.9-r4.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/app-shells/zsh/metadata.xml b/app-shells/zsh/metadata.xml
index b9eedff38fba..e61b8484dfcf 100644
--- a/app-shells/zsh/metadata.xml
+++ b/app-shells/zsh/metadata.xml
@@ -11,6 +11,9 @@
 		and tcsh were incorporated into zsh; many original features were
 		added.
 	</longdescription>
+	<use>
+		<flag name="valgrind">Support Valgrind (<pkg>dev-util/valgrind</pkg>) with annotations to improve results for memcheck.</flag>
+	</use>
 	<upstream>
 		<remote-id type="sourceforge">zsh</remote-id>
 	</upstream>

diff --git a/app-shells/zsh/zsh-5.9-r4.ebuild b/app-shells/zsh/zsh-5.9-r4.ebuild
index a97542cb1bca..6d24edfd9cd9 100644
--- a/app-shells/zsh/zsh-5.9-r4.ebuild
+++ b/app-shells/zsh/zsh-5.9-r4.ebuild
@@ -20,7 +20,7 @@ HOMEPAGE="https://www.zsh.org/"
 
 LICENSE="ZSH gdbm? ( GPL-2 )"
 SLOT="0"
-IUSE="caps debug doc examples gdbm maildir pcre static"
+IUSE="caps debug doc examples gdbm maildir pcre static valgrind"
 
 RDEPEND="
 	>=sys-libs/ncurses-5.1:0=
@@ -36,6 +36,7 @@ RDEPEND="
 	)
 "
 DEPEND="sys-apps/groff
+	valgrind? ( dev-util/valgrind )
 	${RDEPEND}"
 PDEPEND="
 	examples? ( app-doc/zsh-lovers )
@@ -92,6 +93,7 @@ src_configure() {
 		$(use_enable pcre)
 		$(use_enable caps cap)
 		$(use_enable gdbm)
+		$(use_enable valgrind zsh-valgrind)
 	)
 
 	if use static ; then