commit:     2d3ee0a6cad33d1566243661b1602e287a7e618c
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Sun Apr 28 15:03:03 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  2 00:40:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d3ee0a6

dev-libs/capstone: remove 'distutils_enable_tests setup.py'

Closes: https://bugs.gentoo.org/927518
Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/capstone/capstone-5.0.1.ebuild | 6 ++++--
 dev-libs/capstone/capstone-9999.ebuild  | 8 +++++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/dev-libs/capstone/capstone-5.0.1.ebuild 
b/dev-libs/capstone/capstone-5.0.1.ebuild
index 2e024af16add..90c71e96f860 100644
--- a/dev-libs/capstone/capstone-5.0.1.ebuild
+++ b/dev-libs/capstone/capstone-5.0.1.ebuild
@@ -35,8 +35,6 @@ DEPEND="${RDEPEND}
 BDEPEND="${DISTUTILS_DEPS}"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
-distutils_enable_tests setup.py
-
 if [[ ${PV} == *_rc* ]]; then
        # Upstream doesn't flag release candidates (bug 858350)
        QA_PKGCONFIG_VERSION=""
@@ -90,3 +88,7 @@ src_install() {
                find "${ED}" -name '*.a' -delete || die
        fi
 }
+
+python_test() {
+       emake check
+}

diff --git a/dev-libs/capstone/capstone-9999.ebuild 
b/dev-libs/capstone/capstone-9999.ebuild
index 6d46a0133be7..12ef627d0db9 100644
--- a/dev-libs/capstone/capstone-9999.ebuild
+++ b/dev-libs/capstone/capstone-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -42,8 +42,6 @@ PATCHES=(
        "${FILESDIR}/${P}-werror.patch"
 )
 
-distutils_enable_tests setup.py
-
 if [[ ${PV} == *_rc* ]]; then
        # Upstream doesn't flag release candidates (bug 858350)
        QA_PKGCONFIG_VERSION=""
@@ -97,3 +95,7 @@ src_install() {
                find "${ED}" -name '*.a' -delete || die
        fi
 }
+
+python_test() {
+       emake check
+}

Reply via email to