summaryrefslogtreecommitdiff
path: root/app-benchmarks
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2025-06-14 11:28:29 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2025-06-14 11:34:27 +0300
commitf85dfe49bcbf221e64f3a8b0c32f630428fa0d35 (patch)
treeaadd0d1e6b149fc112a2d7f5bc68bf10334d5c2f /app-benchmarks
parent151fd671f0af2e38da0855079e9e97577c79048e (diff)
downloadgentoo-f85dfe49bcbf221e64f3a8b0c32f630428fa0d35.tar.gz
gentoo-f85dfe49bcbf221e64f3a8b0c32f630428fa0d35.tar.bz2
gentoo-f85dfe49bcbf221e64f3a8b0c32f630428fa0d35.zip
app-benchmarks/sysbench: drop python-single-r1.eclass
dev-util/cram is used by calling directly `cram` by makefile in 'tests/test_run.sh' file. Therefore, the usage of python eclass isn't required, and we can simplify the ebuild. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/sysbench/sysbench-1.0.20-r101.ebuild22
1 files changed, 7 insertions, 15 deletions
diff --git a/app-benchmarks/sysbench/sysbench-1.0.20-r101.ebuild b/app-benchmarks/sysbench/sysbench-1.0.20-r101.ebuild
index 40fc5f74aaa6..222a85b2cc0f 100644
--- a/app-benchmarks/sysbench/sysbench-1.0.20-r101.ebuild
+++ b/app-benchmarks/sysbench/sysbench-1.0.20-r101.ebuild
@@ -4,9 +4,8 @@
EAPI=8
LUA_COMPAT=( luajit )
-PYTHON_COMPAT=( python3_{10..13} )
-inherit autotools lua-single python-single-r1
+inherit autotools lua-single
DESCRIPTION="A scriptable multi-threaded benchmark tool based on LuaJIT"
HOMEPAGE="https://github.com/akopytov/sysbench"
@@ -16,37 +15,27 @@ LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 x86"
IUSE="+aio attachsql drizzle +largefile mysql postgres test"
-REQUIRED_USE="
- ${LUA_REQUIRED_USE}
- ${PYTHON_REQUIRED_USE}
-"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="
aio? ( dev-libs/libaio )
mysql? ( dev-db/mysql-connector-c:= )
postgres? ( dev-db/postgresql:= )
- test? ( ${PYTHON_DEPS} )
${LUA_DEPS}
"
-DEPEND="
+DEPEND="${RDEPEND}
dev-libs/concurrencykit
dev-libs/libxslt
- test? (
- $(python_gen_cond_dep '
- dev-util/cram[${PYTHON_USEDEP}]
- ')
- )
- ${RDEPEND}
"
BDEPEND="
dev-build/libtool
virtual/pkgconfig
+ test? ( dev-util/cram )
"
pkg_setup() {
lua-single_pkg_setup
- use test && python-single-r1_pkg_setup
}
src_prepare() {
@@ -54,6 +43,9 @@ src_prepare() {
rm -r third_party/{concurrency_kit/ck,cram,luajit/luajit} || die
+ # Use system cram for running tests.
+ sed -i tests/test_run.sh -e 's@$PYTHON $(command -v cram)@cram@' || die
+
eautoreconf
}