From ccb80472d4de65cad905112dae26aac022aa24df Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 16 May 2023 03:05:21 +0100 Subject: dev-perl/Coro: add Valgrind annotation support Signed-off-by: Sam James --- dev-perl/Coro/Coro-6.570.0.ebuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'dev-perl/Coro') 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() { -- cgit v1.2.3-65-gdbad