diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-07-01 08:49:42 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-07-01 08:50:37 +0200 |
commit | e5b677540b2da78e40a065a63f96d3d44dfc0383 (patch) | |
tree | 6ddfc53382f1c86f0ec50f94e0b5e9699d3c7fc6 /sys-libs/liburing/liburing-2.2.ebuild | |
parent | dev-ruby/sassc-rails: EAPI 6->8, add ruby30, restrict rails versions (diff) | |
download | gentoo-e5b677540b2da78e40a065a63f96d3d44dfc0383.tar.gz gentoo-e5b677540b2da78e40a065a63f96d3d44dfc0383.tar.bz2 gentoo-e5b677540b2da78e40a065a63f96d3d44dfc0383.zip |
sys-libs/liburing: add 2.2
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sys-libs/liburing/liburing-2.2.ebuild')
-rw-r--r-- | sys-libs/liburing/liburing-2.2.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/sys-libs/liburing/liburing-2.2.ebuild b/sys-libs/liburing/liburing-2.2.ebuild new file mode 100644 index 000000000000..60a614906d8e --- /dev/null +++ b/sys-libs/liburing/liburing-2.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-minimal toolchain-funcs + +DESCRIPTION="Efficient I/O with io_uring" +HOMEPAGE="https://github.com/axboe/liburing" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/axboe/liburing.git" +else + SRC_URI="https://git.kernel.dk/cgit/${PN}/snapshot/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi +LICENSE="MIT" +SLOT="0/2" # liburing.so major version + +IUSE="static-libs" +# fsync test hangs forever +RESTRICT="test" + +# At least installed headers need <linux/*>, bug #802516 +DEPEND=">=sys-kernel/linux-headers-5.1" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + if [[ "${PV}" != *9999 ]] ; then + # Make sure pkgconfig files contain the correct version + # bug #809095 and #833895 + sed -i "/^Version:/s@[[:digit:]\.]\+@${PV}@" ${PN}.spec || die + fi + + 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)" + --cxx="$(tc-getCXX)" + ) + # No autotools configure! "econf" will fail. + TMPDIR="${T}" ./configure "${myconf[@]}" || die +} + +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 +} |