1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools pax-utils
8 DESCRIPTION="System performance benchmark"
9 HOMEPAGE="https://github.com/akopytov/sysbench"
10 SRC_URI="https://github.com/akopytov/sysbench/archive/${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="aio mysql postgres test"
16 RESTRICT="!test? ( test )"
18 RDEPEND="aio? ( dev-libs/libaio )
19 mysql? ( dev-db/mysql-connector-c:= )
20 postgres? ( dev-db/postgresql:= )
23 dev-libs/concurrencykit
27 test? ( dev-util/cram )"
33 rm -r third_party/luajit/luajit third_party/concurrency_kit/ck third_party/cram || die
42 $(use_with postgres pgsql)
50 econf "${myeconfargs[@]}"
60 pax-mark m "${ED}"/usr/bin/${PN}