Diff tevent-0.12.1 with a tevent-0.13.0

/usr/portage/sys-libs/tevent/tevent-0.13.0.ebuild 2023-10-09 14:52:35.564368503 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
PYTHON_COMPAT=( python3_{9..11} )
7 7
PYTHON_REQ_USE="threads(+)"
......
13 13

  
14 14
LICENSE="GPL-3"
15 15
SLOT="0"
16
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x86-linux"
17
IUSE="python"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux"
17
IUSE="python test"
18 18

  
19 19
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
20
RESTRICT="test"
20
RESTRICT="test !test? ( test )"
21

  
22
TALLOC_VERSION="2.3.4"
21 23

  
22 24
RDEPEND="
23 25
	dev-libs/libbsd[${MULTILIB_USEDEP}]
24
	>=sys-libs/talloc-2.3.4[${MULTILIB_USEDEP}]
26
	>=sys-libs/talloc-${TALLOC_VERSION}[${MULTILIB_USEDEP}]
25 27
	python? (
26 28
		${PYTHON_DEPS}
27
		sys-libs/talloc[python,${PYTHON_SINGLE_USEDEP}]
29
		>=sys-libs/talloc-${TALLOC_VERSION}[python,${PYTHON_SINGLE_USEDEP}]
28 30
	)
29 31
"
30
DEPEND="${RDEPEND}
31
	>=dev-util/cmocka-1.1.3
32
DEPEND="
33
	${RDEPEND}
32 34
	elibc_glibc? (
33 35
		net-libs/libtirpc[${MULTILIB_USEDEP}]
34
		|| (
35
			net-libs/rpcsvc-proto
36
			<sys-libs/glibc-2.26[rpc(+)]
37
		)
36
		net-libs/rpcsvc-proto
38 37
	)
38
	test? ( >=dev-util/cmocka-1.1.3 )
39 39
"
40
BDEPEND="${PYTHON_DEPS}
40
BDEPEND="
41
	${PYTHON_DEPS}
41 42
	virtual/pkgconfig
42 43
"
43 44

  
......
48 49
	export PYTHONHASHSEED=1
49 50
}
50 51

  
52
check_samba_dep_versions() {
53
	actual_talloc_version=$(sed -En '/^VERSION =/{s/[^0-9.]//gp}' lib/talloc/wscript || die)
54
	if [[ ${actual_talloc_version} != ${TALLOC_VERSION} ]] ; then
55
		eerror "Source talloc version: ${TALLOC_VERSION}"
56
		eerror "Ebuild talloc version: ${actual_talloc_version}"
57
		die "Ebuild needs to fix TALLOC_VERSION!"
58
	fi
59
}
60

  
51 61
src_prepare() {
52 62
	default
63

  
64
	check_samba_dep_versions
65

  
53 66
	multilib_copy_sources
54 67
}
55 68

  
56 69
multilib_src_configure() {
70
	# When specifying libs for samba build you must append NONE to the end to
71
	# stop it automatically including things
72
	local bundled_libs="NONE"
73

  
74
	# We "use" bundled cmocka when we're not running tests as we're
75
	# not using it anyway. Means we avoid making users install it for
76
	# no reason. bug #802531
77
	if ! use test ; then
78
		bundled_libs="cmocka,${bundled_libs}"
79
	fi
80

  
57 81
	waf-utils_src_configure \
58
		--bundled-libraries=NONE \
82
		--bundled-libraries="${bundled_libs}" \
59 83
		--builtin-libraries=NONE \
60 84
		$(multilib_native_usex python '' '--disable-python')
61 85
}
62 86

  
63 87
multilib_src_compile() {
64
	# need to avoid parallel building, this looks like the sanest way with waf-utils/multiprocessing eclasses
88
	# Need to avoid parallel building, this looks like the
89
	# best way with waf-utils/multiprocessing eclasses
65 90
	unset MAKEOPTS
66 91
	waf-utils_src_compile
67 92
}
Thank you!