Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/liburing/
Date: Fri, 04 Nov 2022 09:13:20
Message-Id: 1667553185.209d7cff8a7f26e418ea0f752e5fd08fdc171d5e.flow@gentoo
1 commit: 209d7cff8a7f26e418ea0f752e5fd08fdc171d5e
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 09:13:05 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 09:13:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=209d7cff
7
8 sys-libs/liburing: add 2.3
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 sys-libs/liburing/Manifest | 1 +
13 sys-libs/liburing/liburing-2.3.ebuild | 67 +++++++++++++++++++++++++++++++++++
14 2 files changed, 68 insertions(+)
15
16 diff --git a/sys-libs/liburing/Manifest b/sys-libs/liburing/Manifest
17 index d40d35945f64..a20f4607509c 100644
18 --- a/sys-libs/liburing/Manifest
19 +++ b/sys-libs/liburing/Manifest
20 @@ -1,2 +1,3 @@
21 DIST liburing-2.1.tar.bz2 120806 BLAKE2B 3a09d1504150ed1c111f064187d868fd86ec7c3dbf661f73999f7fbb9c945b528f7ab2e0cfff5d270a1a977f04deedc7c790b6df8708ef2884fbf28c1a9ffd1b SHA512 a658454869b01752b5e499c4f0b50c342a8ff63b3dd1a473a96f9fad03f22a6e4d2354b0e658a4e7e50ea27440a84ee274856b3687803583bc80cb4bc45aec71
22 DIST liburing-2.2.tar.bz2 172733 BLAKE2B 19ae8a356e4fdc296bfb3ff121b777bd7c970388b31686aac5c531508e807360d58220bc27f9c62c55bd76ca687013acfceb3fa8a2162b615561f637cc50ffe1 SHA512 55b935a90c108be54393a5ab341b56e40ad8d506360fe15b3dcde5ee263356f11080f8614efdc4253f6318ea35d808ec47a9dbfc6b9f6cc2e04f7f1a75c3f621
23 +DIST liburing-2.3.tar.bz2 197929 BLAKE2B 94ae2a79522fbac13c071ad752f5cbfae3e3b3dd6b35da24e5c756ba47a7b304e5bcb18391ca23fc2edafeb2dbcdcf143fd2cda71656396ac34248159a964fb7 SHA512 341aa13d3b560617f3710291945ec2fe35d828e0b67ee3a97555fd4eb3d2042a7f9e722080d8ebb45aa74a2ca4ef58db1e8a10c351e951a604da007ba69d2738
24
25 diff --git a/sys-libs/liburing/liburing-2.3.ebuild b/sys-libs/liburing/liburing-2.3.ebuild
26 new file mode 100644
27 index 000000000000..60a614906d8e
28 --- /dev/null
29 +++ b/sys-libs/liburing/liburing-2.3.ebuild
30 @@ -0,0 +1,67 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit multilib-minimal toolchain-funcs
37 +
38 +DESCRIPTION="Efficient I/O with io_uring"
39 +HOMEPAGE="https://github.com/axboe/liburing"
40 +if [[ "${PV}" == *9999 ]] ; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/axboe/liburing.git"
43 +else
44 + SRC_URI="https://git.kernel.dk/cgit/${PN}/snapshot/${P}.tar.bz2"
45 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
46 +fi
47 +LICENSE="MIT"
48 +SLOT="0/2" # liburing.so major version
49 +
50 +IUSE="static-libs"
51 +# fsync test hangs forever
52 +RESTRICT="test"
53 +
54 +# At least installed headers need <linux/*>, bug #802516
55 +DEPEND=">=sys-kernel/linux-headers-5.1"
56 +RDEPEND="${DEPEND}"
57 +
58 +src_prepare() {
59 + default
60 +
61 + if [[ "${PV}" != *9999 ]] ; then
62 + # Make sure pkgconfig files contain the correct version
63 + # bug #809095 and #833895
64 + sed -i "/^Version:/s@[[:digit:]\.]\+@${PV}@" ${PN}.spec || die
65 + fi
66 +
67 + multilib_copy_sources
68 +}
69 +
70 +multilib_src_configure() {
71 + local myconf=(
72 + --prefix="${EPREFIX}/usr"
73 + --libdir="${EPREFIX}/usr/$(get_libdir)"
74 + --libdevdir="${EPREFIX}/usr/$(get_libdir)"
75 + --mandir="${EPREFIX}/usr/share/man"
76 + --cc="$(tc-getCC)"
77 + --cxx="$(tc-getCXX)"
78 + )
79 + # No autotools configure! "econf" will fail.
80 + TMPDIR="${T}" ./configure "${myconf[@]}" || die
81 +}
82 +
83 +multilib_src_compile() {
84 + emake V=1 AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
85 +}
86 +
87 +multilib_src_install_all() {
88 + einstalldocs
89 +
90 + if ! use static-libs ; then
91 + find "${ED}" -type f -name "*.a" -delete || die
92 + fi
93 +}
94 +
95 +multilib_src_test() {
96 + emake V=1 runtests
97 +}