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