summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-02-09 20:22:29 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-02-09 23:54:59 +0100
commita27bcbcc4bbdc19a501067ad9619b5d072568f47 (patch)
treefb204d4428234629b0a8b90714dfa2177f75dfe2 /app-benchmarks
parentapp-benchmarks/nbench: drop 2.2.3-r1 (diff)
downloadgentoo-a27bcbcc4bbdc19a501067ad9619b5d072568f47.tar.gz
gentoo-a27bcbcc4bbdc19a501067ad9619b5d072568f47.tar.bz2
gentoo-a27bcbcc4bbdc19a501067ad9619b5d072568f47.zip
app-benchmarks/sysbench: update EAPI 7 -> 8
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/sysbench/sysbench-1.0.20-r1.ebuild83
1 files changed, 83 insertions, 0 deletions
diff --git a/app-benchmarks/sysbench/sysbench-1.0.20-r1.ebuild b/app-benchmarks/sysbench/sysbench-1.0.20-r1.ebuild
new file mode 100644
index 000000000000..f7eb86f81ba2
--- /dev/null
+++ b/app-benchmarks/sysbench/sysbench-1.0.20-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( luajit )
+PYTHON_COMPAT=( python3_{7..10} )
+
+inherit autotools lua-single python-single-r1
+
+DESCRIPTION="A scriptable multi-threaded benchmark tool based on LuaJIT"
+HOMEPAGE="https://github.com/akopytov/sysbench"
+SRC_URI="https://github.com/akopytov/sysbench/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+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}
+"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ aio? ( dev-libs/libaio )
+ mysql? ( dev-db/mysql-connector-c:= )
+ postgres? ( dev-db/postgresql:= )
+ test? ( ${PYTHON_DEPS} )
+ ${LUA_DEPS}
+"
+DEPEND="
+ dev-libs/concurrencykit
+ dev-libs/libxslt
+ test? (
+ $(python_gen_cond_dep '
+ dev-util/cram[${PYTHON_USEDEP}]
+ ')
+ )
+ ${RDEPEND}
+"
+BDEPEND="
+ sys-devel/libtool
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ lua-single_pkg_setup
+ use test && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ rm -r third_party/{concurrency_kit/ck,cram,luajit/luajit} || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # Current versions of 'dev-db/oracle-instantclient' aren't supported.
+ # See: https://github.com/akopytov/sysbench/issues/390.
+ local myeconfargs=(
+ --disable-rpath
+ $(use_enable aio)
+ $(use_enable largefile)
+ $(use_with attachsql)
+ $(use_with drizzle)
+ $(use_with mysql)
+ $(use_with postgres pgsql)
+ --with-system-ck
+ --with-system-luajit
+ --without-oracle
+ LUAJIT_CFLAGS="$(lua_get_CFLAGS)"
+ LUAJIT_LIBS="$(lua_get_LIBS)"
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ emake check test
+}