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/liburing/
Date: Fri, 10 Sep 2021 12:01:59
Message-Id: 1631275306.d6ef7fd532d1dfed224264fc9a26370684c5e5b9.polynomial-c@gentoo
1 commit: d6ef7fd532d1dfed224264fc9a26370684c5e5b9
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 10 12:00:54 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 10 12:01:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ef7fd5
7
8 sys-libs/liburing: Bump to version 2.1
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-libs/liburing/Manifest | 1 +
13 sys-libs/liburing/liburing-2.1.ebuild | 55 +++++++++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/sys-libs/liburing/Manifest b/sys-libs/liburing/Manifest
17 index 23997d6cce0..274dba18060 100644
18 --- a/sys-libs/liburing/Manifest
19 +++ b/sys-libs/liburing/Manifest
20 @@ -1,2 +1,3 @@
21 DIST liburing-0.7.tar.bz2 86386 BLAKE2B a4fa00cc8e384f9909f3c628d479774beaffd5ab09c9f321ef22bfbabd273e4c8d4dbb30a3280633e89e1a79e893348e68f0aa2f3b1b4deda56759f77d9b1875 SHA512 9a23bc08e0fa59273264295859dddbe3276b2911df6d937b3c6f7647a250a3175222b5f051f3094efc98e48cacd242511327c5c5b895ebde10c8c87929ba4328
22 DIST liburing-2.0.tar.bz2 109066 BLAKE2B e2be57f66d2a40650c74502bef55e646986443450b2cdf4d2b5247a3fa099178ae19e61a20e4452dc723351053b613a96743f1268004939da9fddd8f38df3fa5 SHA512 a0da3472eb876c9cfbe56abe14b4d926e4d1c362ee9c4f38eec4c4ab01edab6d76651ffe2afe5cac8589caadc02517950974332eb7990f8bcc9f4f4800b66e33
23 +DIST liburing-2.1.tar.bz2 120806 BLAKE2B 3a09d1504150ed1c111f064187d868fd86ec7c3dbf661f73999f7fbb9c945b528f7ab2e0cfff5d270a1a977f04deedc7c790b6df8708ef2884fbf28c1a9ffd1b SHA512 a658454869b01752b5e499c4f0b50c342a8ff63b3dd1a473a96f9fad03f22a6e4d2354b0e658a4e7e50ea27440a84ee274856b3687803583bc80cb4bc45aec71
24
25 diff --git a/sys-libs/liburing/liburing-2.1.ebuild b/sys-libs/liburing/liburing-2.1.ebuild
26 new file mode 100644
27 index 00000000000..6d65622e2a7
28 --- /dev/null
29 +++ b/sys-libs/liburing/liburing-2.1.ebuild
30 @@ -0,0 +1,55 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
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 ~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 +src_prepare() {
55 + default
56 + multilib_copy_sources
57 +}
58 +
59 +multilib_src_configure() {
60 + local myconf=(
61 + --prefix="${EPREFIX}/usr"
62 + --libdir="${EPREFIX}/usr/$(get_libdir)"
63 + --libdevdir="${EPREFIX}/usr/$(get_libdir)"
64 + --mandir="${EPREFIX}/usr/share/man"
65 + --cc="$(tc-getCC)"
66 + )
67 + # No autotools configure! "econf" will fail.
68 + TMPDIR="${T}" ./configure "${myconf[@]}"
69 +}
70 +
71 +multilib_src_compile() {
72 + emake V=1 AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
73 +}
74 +
75 +multilib_src_install_all() {
76 + einstalldocs
77 +
78 + if ! use static-libs ; then
79 + find "${ED}" -type f -name "*.a" -delete || die
80 + fi
81 +}
82 +
83 +multilib_src_test() {
84 + emake V=1 runtests
85 +}