1 |
|
# Copyright 1999-2021 Gentoo Authors
|
|
1 |
# Copyright 1999-2022 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=7
|
... | ... | |
11 |
11 |
|
12 |
12 |
LICENSE="MIT"
|
13 |
13 |
SLOT="0"
|
14 |
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
15 |
|
IUSE="glib +libev libevent tevent +threads static-libs"
|
16 |
|
REQUIRED_USE="|| ( glib libev libevent tevent ) "
|
|
14 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
15 |
IUSE="glib +libev libevent +threads"
|
|
16 |
REQUIRED_USE="|| ( glib libev libevent )"
|
17 |
17 |
|
18 |
18 |
DEPEND="glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
|
19 |
19 |
libev? ( >=dev-libs/libev-4.15[${MULTILIB_USEDEP}] )
|
20 |
|
libevent? ( >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}] )
|
21 |
|
tevent? ( >=sys-libs/tevent-0.9.19[${MULTILIB_USEDEP}] )"
|
|
20 |
libevent? ( >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}] )"
|
22 |
21 |
|
23 |
22 |
RDEPEND="${DEPEND}"
|
24 |
23 |
|
25 |
24 |
DOCS=( AUTHORS ChangeLog NEWS INSTALL README )
|
26 |
25 |
|
27 |
26 |
PATCHES=(
|
28 |
|
# Runtime breakage caused by bashisms, bug #762823
|
29 |
|
"${FILESDIR}/${PN}-0.3.1-non-bash.patch"
|
|
27 |
"${FILESDIR}"/${P}-non-bash.patch
|
30 |
28 |
)
|
31 |
29 |
|
32 |
30 |
src_prepare() {
|
33 |
31 |
default
|
34 |
|
# known problem uptream with tevent write test. tevent does not fire a
|
35 |
|
# callback on error, but we explicitly test for this behaviour. Do not run
|
36 |
|
# tevent tests for now.
|
37 |
|
sed -i -e 's/def HAVE_TEVENT/ 0/' tests/test.h || die
|
38 |
32 |
eautoreconf
|
39 |
33 |
}
|
40 |
34 |
|
... | ... | |
44 |
38 |
$(use_with glib) \
|
45 |
39 |
$(use_with libev) \
|
46 |
40 |
$(use_with libevent) \
|
47 |
|
$(use_with tevent) \
|
48 |
41 |
$(use_with threads pthread) \
|
49 |
|
$(use_enable static-libs static)
|
|
42 |
--disable-static
|
50 |
43 |
}
|
51 |
44 |
|
52 |
45 |
multilib_src_install_all() {
|
53 |
46 |
default
|
54 |
|
use static-libs || find "${ED}" -name '*.la' -delete
|
|
47 |
|
|
48 |
find "${ED}" -name '*.la' -delete || die
|
55 |
49 |
}
|