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