summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-16 03:05:21 +0100
committerSam James <sam@gentoo.org>2023-05-16 03:05:21 +0100
commitccb80472d4de65cad905112dae26aac022aa24df (patch)
tree5004f9f572f58aa50829b6f01b50271734c663ad /dev-perl/Coro
parentnet-misc/lldpd: add Valgrind annotation support (diff)
downloadgentoo-ccb80472d4de65cad905112dae26aac022aa24df.tar.gz
gentoo-ccb80472d4de65cad905112dae26aac022aa24df.tar.bz2
gentoo-ccb80472d4de65cad905112dae26aac022aa24df.zip
dev-perl/Coro: add Valgrind annotation support
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl/Coro')
-rw-r--r--dev-perl/Coro/Coro-6.570.0.ebuild15
1 files 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() {