blob: dbac614b88f992936a80e1eaf288226811a1ea17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=MLEHMANN
DIST_VERSION=6.57
DIST_EXAMPLES=( "eg/*" )
inherit perl-module
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 valgrind"
RDEPEND="
>=dev-perl/AnyEvent-7
ev? ( >=dev-perl/EV-4.0.0 )
event? ( >=dev-perl/Event-1.80.0 )
>=dev-perl/Guard-0.500.0
virtual/perl-Scalar-List-Utils
>=virtual/perl-Storable-2.150.0
dev-perl/common-sense
"
DEPEND="
valgrind? ( dev-debug/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() {
mymake=(
"OPTIMIZE=${CFLAGS}"
)
perl-module_src_compile
}
|