You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-benchmarks/sysbench/sysbench-1.0_pre20161017.eb...

60 lines
1.1 KiB

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="6"
GITHUB_REV="48124f838b00ff83a044fbf046a9d8d0b1602d90"
MY_PN="${PN}-${GITHUB_REV}"
DESCRIPTION="System performance benchmark"
HOMEPAGE="https://github.com/akopytov/sysbench"
SRC_URI="https://github.com/akopytov/sysbench/archive/${GITHUB_REV}.tar.gz -> ${MY_PN}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="aio lua mysql postgres test"
RDEPEND="aio? ( dev-libs/libaio )
lua? ( dev-lang/lua:= )
mysql? ( virtual/libmysqlclient )
postgres? ( dev-db/postgresql:= )"
DEPEND="${RDEPEND}
sys-devel/libtool:=
dev-libs/libxslt
test? ( dev-util/cram )"
REQUIRED_USE="
mysql? ( lua )
postgres? ( lua )"
S="${WORKDIR}/${MY_PN}"
src_prepare() {
default
sed -i -e "/^htmldir =/s:=.*:=/usr/share/doc/${PF}/html:" doc/Makefile.am || die
./autogen.sh || die
}
src_configure() {
local myeconfargs=(
$(use_enable aio aio)
$(use_with lua lua)
$(use_with mysql mysql)
$(use_with postgres pgsql)
--without-attachsql
--without-drizzle
--without-oracle
)
econf "${myeconfargs[@]}"
}
src_test() {
emake check test
}