Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/tevent/
Date: Tue, 03 May 2022 09:58:37
Message-Id: 1651571893.1fec47542dadd8a07c1bb1e81a09dddb2af911ae.polynomial-c@gentoo
1 commit: 1fec47542dadd8a07c1bb1e81a09dddb2af911ae
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 08:49:19 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 09:58:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fec4754
7
8 sys-libs/tevent: Bump to version 0.12.0
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-libs/tevent/Manifest | 1 +
13 sys-libs/tevent/tevent-0.12.0.ebuild | 78 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 79 insertions(+)
15
16 diff --git a/sys-libs/tevent/Manifest b/sys-libs/tevent/Manifest
17 index 8453f1874082..03e6359da59b 100644
18 --- a/sys-libs/tevent/Manifest
19 +++ b/sys-libs/tevent/Manifest
20 @@ -1,2 +1,3 @@
21 DIST tevent-0.10.2.tar.gz 800731 BLAKE2B 5ea6b83378b04dbe1666432db0dbd4c0df2e6b0bf5ebcc8ec4ec9bdeb834efec75c87b2019dc78c691aba6c4f6467394101febd6010f106046a1fb8848e27405 SHA512 1da8f28898f35daab515892b880d1de601062cc3e2b2570cd62e6913df17b0195a05acb7b484c628cddc0eb8b0cde893105ede3feb32bc5764e7d25684f332ba
22 DIST tevent-0.11.0.tar.gz 866327 BLAKE2B 9e6e958597e21c0d228346aa102987f89bb6630a5661cef21b908735469a59e7b4f46bc4473e9c25fe636913a1eebc1f26234448c09739ad812cd3ce97bf5048 SHA512 740346b19bf290ff31b0c1b36e232021b8ad107c3ce27e0e8b1ec1a77485214b07a9b7837ba57f3650a50e4c04f530674e486b5fa4d118a1778259be63b49790
23 +DIST tevent-0.12.0.tar.gz 877767 BLAKE2B cbfb823f9a8ce8a9a88964c9daa15643c077163c03a792468836e5bbc7e7500c745e1fc1203063ed01f899cf598794764c6d465afc3ed31cd711f420ebc6ce55 SHA512 ae955b64a683bc6aaba66592ca5d205eb48f62a70bd2674b5b3a0e3b0f4de30c93f400bf183d3bef5993845a3281716584b24cf8a93c849ba4fa7d1fcfb9cc99
24
25 diff --git a/sys-libs/tevent/tevent-0.12.0.ebuild b/sys-libs/tevent/tevent-0.12.0.ebuild
26 new file mode 100644
27 index 000000000000..b56018d2eb11
28 --- /dev/null
29 +++ b/sys-libs/tevent/tevent-0.12.0.ebuild
30 @@ -0,0 +1,78 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +PYTHON_REQ_USE="threads(+)"
38 +inherit waf-utils multilib-minimal python-single-r1
39 +
40 +DESCRIPTION="Samba tevent library"
41 +HOMEPAGE="https://tevent.samba.org/"
42 +SRC_URI="https://samba.org/ftp/tevent/${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux"
47 +IUSE="python"
48 +
49 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
50 +RESTRICT="test"
51 +
52 +RDEPEND="
53 + dev-libs/libbsd[${MULTILIB_USEDEP}]
54 + >=sys-libs/talloc-2.3.3[${MULTILIB_USEDEP}]
55 + python? (
56 + ${PYTHON_DEPS}
57 + sys-libs/talloc[python,${PYTHON_SINGLE_USEDEP}]
58 + )
59 +"
60 +DEPEND="${RDEPEND}
61 + >=dev-util/cmocka-1.1.3
62 + elibc_glibc? (
63 + net-libs/libtirpc[${MULTILIB_USEDEP}]
64 + || (
65 + net-libs/rpcsvc-proto
66 + <sys-libs/glibc-2.26[rpc(+)]
67 + )
68 + )
69 +"
70 +BDEPEND="${PYTHON_DEPS}
71 + virtual/pkgconfig
72 +"
73 +
74 +WAF_BINARY="${S}/buildtools/bin/waf"
75 +
76 +pkg_setup() {
77 + python-single-r1_pkg_setup
78 + export PYTHONHASHSEED=1
79 +}
80 +
81 +src_prepare() {
82 + default
83 + multilib_copy_sources
84 +}
85 +
86 +multilib_src_configure() {
87 + waf-utils_src_configure \
88 + --bundled-libraries=NONE \
89 + --builtin-libraries=NONE \
90 + $(multilib_native_usex python '' '--disable-python')
91 +}
92 +
93 +multilib_src_compile() {
94 + # need to avoid parallel building, this looks like the sanest way with waf-utils/multiprocessing eclasses
95 + unset MAKEOPTS
96 + waf-utils_src_compile
97 +}
98 +
99 +multilib_src_install() {
100 + waf-utils_src_install
101 +
102 + multilib_is_native_abi && use python && python_domodule tevent.py
103 +}
104 +
105 +multilib_src_install_all() {
106 + insinto /usr/include
107 + doins tevent_internal.h
108 +}