summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen <steffen.winter@proton.me>2023-02-12 23:42:25 +0000
committerFlorian Schmaus <flow@gentoo.org>2023-02-13 08:24:58 +0100
commit0f71a9212efeed4fb1d7a7790d327d397cf92234 (patch)
treef1d24100ab183e79648908868eac50583f0f38c9 /sys-libs/liburing
parentdev-libs/openssl-compat: add 1.1.1t (diff)
downloadgentoo-0f71a9212efeed4fb1d7a7790d327d397cf92234.tar.gz
gentoo-0f71a9212efeed4fb1d7a7790d327d397cf92234.tar.bz2
gentoo-0f71a9212efeed4fb1d7a7790d327d397cf92234.zip
sys-libs/liburing: add 'examples' and 'test' use flags
By default liburing will build tests and examples but these fail to build on musl systems so we sed them out if not needed. Closes: https://bugs.gentoo.org/888956 Closes: https://github.com/gentoo/gentoo/pull/29563 Signed-off-by: Steffen Winter <steffen.winter@proton.me> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sys-libs/liburing')
-rw-r--r--sys-libs/liburing/liburing-2.3-r2.ebuild (renamed from sys-libs/liburing/liburing-2.3-r1.ebuild)11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys-libs/liburing/liburing-2.3-r1.ebuild b/sys-libs/liburing/liburing-2.3-r2.ebuild
index e769ea9908cc..2140c9daaf91 100644
--- a/sys-libs/liburing/liburing-2.3-r1.ebuild
+++ b/sys-libs/liburing/liburing-2.3-r2.ebuild
@@ -17,9 +17,9 @@ fi
LICENSE="MIT"
SLOT="0/2" # liburing.so major version
-IUSE="static-libs"
+IUSE="examples static-libs test"
# fsync test hangs forever
-RESTRICT="test"
+RESTRICT="test !test? ( test )"
# At least installed headers need <linux/*>, bug #802516
DEPEND=">=sys-kernel/linux-headers-5.1"
@@ -39,6 +39,13 @@ src_prepare() {
sed -i "/^Version:/s@[[:digit:]\.]\+@${PV}@" ${PN}.spec || die
fi
+ if ! use examples; then
+ sed -e '/examples/d' Makefile -i || die
+ fi
+ if ! use test; then
+ sed -e '/test/d' Makefile -i || die
+ fi
+
multilib_copy_sources
}