diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2020-11-22 00:35:33 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2020-11-22 00:40:01 +0100 |
commit | a8a9794db2acefa40251362931ffa69fbf154a7c (patch) | |
tree | 8013547a9a554df571578d7617aa339179f4a923 /app-benchmarks/sysbench/sysbench-1.0.20.ebuild | |
parent | app-office/libreoffice: Fix clang alternatives order (diff) | |
download | gentoo-a8a9794db2acefa40251362931ffa69fbf154a7c.tar.gz gentoo-a8a9794db2acefa40251362931ffa69fbf154a7c.tar.bz2 gentoo-a8a9794db2acefa40251362931ffa69fbf154a7c.zip |
app-benchmarks/sysbench: bump to version 1.0.20
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks/sysbench/sysbench-1.0.20.ebuild')
-rw-r--r-- | app-benchmarks/sysbench/sysbench-1.0.20.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/app-benchmarks/sysbench/sysbench-1.0.20.ebuild b/app-benchmarks/sysbench/sysbench-1.0.20.ebuild new file mode 100644 index 000000000000..3d882dede761 --- /dev/null +++ b/app-benchmarks/sysbench/sysbench-1.0.20.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit autotools 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 ~x86" +IUSE="+aio attachsql drizzle +largefile mysql postgres test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-lang/luajit:2 + aio? ( dev-libs/libaio ) + mysql? ( dev-db/mysql-connector-c:= ) + postgres? ( dev-db/postgresql:= ) + test? ( ${PYTHON_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 +" + +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 + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + emake check test +} |