commit:     ccb80472d4de65cad905112dae26aac022aa24df
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 16 02:05:21 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 16 02:05:21 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccb80472

dev-perl/Coro: add Valgrind annotation support

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

 dev-perl/Coro/Coro-6.570.0.ebuild | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/dev-perl/Coro/Coro-6.570.0.ebuild 
b/dev-perl/Coro/Coro-6.570.0.ebuild
index aa9e751109f4..56269e3a61b3 100644
--- a/dev-perl/Coro/Coro-6.570.0.ebuild
+++ b/dev-perl/Coro/Coro-6.570.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -12,7 +12,7 @@ DESCRIPTION="The only real threads in perl"
 LICENSE="|| ( Artistic GPL-1+ ) LGPL-2.1+ || ( BSD-2 GPL-2+ )"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="+ev event"
+IUSE="+ev event valgrind"
 
 RDEPEND="
        >=dev-perl/AnyEvent-7
@@ -23,17 +23,26 @@ RDEPEND="
        >=virtual/perl-Storable-2.150.0
        dev-perl/common-sense
 "
-BDEPEND="${RDEPEND}
+DEPEND="
+       valgrind? ( dev-util/valgrind )
+"
+BDEPEND="
+       ${RDEPEND}
        dev-perl/Canary-Stability
        >=virtual/perl-ExtUtils-MakeMaker-6.520.0
 "
+
 PATCHES=(
        "${FILESDIR}/6.514.0-ev-config.patch"
 )
+
 src_configure() {
        local myopts=()
        use ev && myopts+=("EV")
        use event && myopts+=( "Event" )
+
+       export CORO_USE_VALGRIND=$(usex valgrind y n)
+
        GENTOO_OPTS="${myopts[@]}" perl-module_src_configure
 }
 src_compile() {

Reply via email to