1 |
commit: d5dd0a1ef8276ec5b7ea83a3e4994ace970bcf00 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 19 22:11:56 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 19 22:11:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5dd0a1e |
7 |
|
8 |
dev-libs/userspace-rcu: add 0.13.2 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/userspace-rcu/Manifest | 1 + |
13 |
dev-libs/userspace-rcu/userspace-rcu-0.13.2.ebuild | 53 ++++++++++++++++++++++ |
14 |
2 files changed, 54 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/userspace-rcu/Manifest b/dev-libs/userspace-rcu/Manifest |
17 |
index 46d24682d96d..8b74db6cdf9a 100644 |
18 |
--- a/dev-libs/userspace-rcu/Manifest |
19 |
+++ b/dev-libs/userspace-rcu/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST userspace-rcu-0.13.1.tar.bz2 609961 BLAKE2B 96581fb3e90764870d2eb3eff6999e3c20bf206e3a0d5c910acfe693d55e0cb389fa5126a74d175f3c46655e740ecf1c1426c367eb3c28f3ef3a634848e51e83 SHA512 c86f2eb260cccb3cb6bd54ddbc0b46e60083fc99423e9403242ebed7f39a2a49c68af933ea6f373e2a9d4f9dc56f5befe030740891e28cf2fabe927a48ff8182 |
22 |
+DIST userspace-rcu-0.13.2.tar.bz2 611448 BLAKE2B 6d502e0035b03df262c917ba70f7442e2bd81369091b2c521fe5c32f31ed2ef7404070759f3a8910b767153e05d28e354d5e5ece2a3ba17e4a31dd7db3e1924f SHA512 e5097a7f653f51b3a47a09f79e7a153aab8fd22c0504a1127a9b33d093a9ae6a941b97c0fe175ee168e2976097aefdcdf8d5ce030afbe565c1b72f64d6f5b60a |
23 |
|
24 |
diff --git a/dev-libs/userspace-rcu/userspace-rcu-0.13.2.ebuild b/dev-libs/userspace-rcu/userspace-rcu-0.13.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..d2b2f8fb1deb |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/userspace-rcu/userspace-rcu-0.13.2.ebuild |
29 |
@@ -0,0 +1,53 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit autotools |
36 |
+ |
37 |
+DESCRIPTION="Userspace RCU (read-copy-update) library" |
38 |
+HOMEPAGE="https://liburcu.org/" |
39 |
+SRC_URI="https://lttng.org/files/urcu/${P}.tar.bz2" |
40 |
+ |
41 |
+LICENSE="LGPL-2.1" |
42 |
+SLOT="0/8" # subslot = soname version |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
44 |
+IUSE="static-libs test" |
45 |
+RESTRICT="!test? ( test )" |
46 |
+ |
47 |
+BDEPEND="test? ( sys-process/time )" |
48 |
+ |
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}"/${PN}-0.13.1-tests-no-benchmark.patch |
51 |
+ "${FILESDIR}"/${PN}-0.13.1-loong.patch |
52 |
+) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ # Needed for tests patch |
58 |
+ # ... and refresh libtool (see https://github.com/gentoo/gentoo/pull/23973) |
59 |
+ # ... and for build on loong (see https://github.com/gentoo/gentoo/pull/25189) |
60 |
+ eautoreconf |
61 |
+} |
62 |
+ |
63 |
+src_configure() { |
64 |
+ local myeconfargs=( |
65 |
+ --enable-shared |
66 |
+ $(use_enable static-libs static) |
67 |
+ ) |
68 |
+ |
69 |
+ econf "${myeconfargs[@]}" |
70 |
+} |
71 |
+ |
72 |
+src_test() { |
73 |
+ default |
74 |
+ |
75 |
+ emake -C tests/regression regtest |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ default |
80 |
+ |
81 |
+ find "${ED}" -type f -name "*.la" -delete || die |
82 |
+} |