From 64878ff54b21ecf5e63bf2ed752d6901b3caaf7e Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Sun, 13 Dec 2020 13:36:36 +0100 Subject: [PATCH] sys-libs/liburing: import from gentoo --- .../portage-stable/sys-libs/liburing/Manifest | 1 + .../sys-libs/liburing/liburing-0.7-r1.ebuild | 50 +++++++++++++++++++ .../sys-libs/liburing/metadata.xml | 11 ++++ 3 files changed, 62 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/sys-libs/liburing/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/sys-libs/liburing/liburing-0.7-r1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/sys-libs/liburing/metadata.xml diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/liburing/Manifest b/sdk_container/src/third_party/portage-stable/sys-libs/liburing/Manifest new file mode 100644 index 0000000000..90602b3316 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-libs/liburing/Manifest @@ -0,0 +1 @@ +DIST liburing-0.7.tar.bz2 86386 BLAKE2B a4fa00cc8e384f9909f3c628d479774beaffd5ab09c9f321ef22bfbabd273e4c8d4dbb30a3280633e89e1a79e893348e68f0aa2f3b1b4deda56759f77d9b1875 SHA512 9a23bc08e0fa59273264295859dddbe3276b2911df6d937b3c6f7647a250a3175222b5f051f3094efc98e48cacd242511327c5c5b895ebde10c8c87929ba4328 diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/liburing/liburing-0.7-r1.ebuild b/sdk_container/src/third_party/portage-stable/sys-libs/liburing/liburing-0.7-r1.ebuild new file mode 100644 index 0000000000..c349d80f97 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-libs/liburing/liburing-0.7-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal toolchain-funcs + +DESCRIPTION="Efficient I/O with io_uring" +HOMEPAGE="https://github.com/axboe/liburing" +SRC_URI="https://git.kernel.dk/cgit/${PN}/snapshot/${P}.tar.bz2" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 sparc x86" +LICENSE="MIT" +SLOT="0/1.0.7" # liburing.so version + +IUSE="static-libs" +# fsync test hangs forever +RESTRICT="test" + +src_prepare() { + default + multilib_copy_sources +} + +multilib_src_configure() { + local myconf=( + --prefix="${EPREFIX}/usr" + --libdir="${EPREFIX}/usr/$(get_libdir)" + --libdevdir="${EPREFIX}/usr/$(get_libdir)" + --mandir="${EPREFIX}/usr/share/man" + --cc="$(tc-getCC)" + ) + # No autotools configure! "econf" will fail. + TMPDIR="${T}" ./configure "${myconf[@]}" +} + +multilib_src_compile() { + emake V=1 AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" +} + +multilib_src_install_all() { + einstalldocs + + if ! use static-libs ; then + find "${ED}" -type f -name "*.a" -delete || die + fi +} + +multilib_src_test() { + emake V=1 runtests +} diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/liburing/metadata.xml b/sdk_container/src/third_party/portage-stable/sys-libs/liburing/metadata.xml new file mode 100644 index 0000000000..e9a23bab52 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-libs/liburing/metadata.xml @@ -0,0 +1,11 @@ + + + + + polynomial-c@gentoo.org + Lars Wendler + + + axboe/liburing + +