From a24fca6b2bfcf37b1ddea24e4ef1ebda891e4467 Mon Sep 17 00:00:00 2001 From: Mario Haustein Date: Sun, 28 Apr 2024 17:05:15 +0200 Subject: [PATCH] dev-libs/capstone: add missing RESTRICT Signed-off-by: Mario Haustein Signed-off-by: Sam James --- dev-libs/capstone/capstone-5.0.1.ebuild | 2 ++ dev-libs/capstone/capstone-9999.ebuild | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dev-libs/capstone/capstone-5.0.1.ebuild b/dev-libs/capstone/capstone-5.0.1.ebuild index 90c71e96f8601..3fc30763814cc 100644 --- a/dev-libs/capstone/capstone-5.0.1.ebuild +++ b/dev-libs/capstone/capstone-5.0.1.ebuild @@ -35,6 +35,8 @@ DEPEND="${RDEPEND} BDEPEND="${DISTUTILS_DEPS}" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + if [[ ${PV} == *_rc* ]]; then # Upstream doesn't flag release candidates (bug 858350) QA_PKGCONFIG_VERSION="" diff --git a/dev-libs/capstone/capstone-9999.ebuild b/dev-libs/capstone/capstone-9999.ebuild index 76028da788a3a..ae151ecdb8fb2 100644 --- a/dev-libs/capstone/capstone-9999.ebuild +++ b/dev-libs/capstone/capstone-9999.ebuild @@ -35,6 +35,8 @@ DEPEND="${RDEPEND} BDEPEND="${DISTUTILS_DEPS}" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + PATCHES=( # Currently "-Werror" is only added in the `next`-development branch, but # not merged into 5.* releases. Eventually this patch may be needed in the