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.
57 lines
1.1 KiB
57 lines
1.1 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
EAPI="6"
|
||
|
|
||
|
DESCRIPTION="System performance benchmark"
|
||
|
HOMEPAGE="https://github.com/akopytov/sysbench"
|
||
7 years ago
|
SRC_URI="https://github.com/akopytov/sysbench/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
7 years ago
|
|
||
|
LICENSE="GPL-2+"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
7 years ago
|
IUSE="aio mysql postgres test"
|
||
7 years ago
|
|
||
|
RDEPEND="aio? ( dev-libs/libaio )
|
||
|
mysql? ( virtual/libmysqlclient )
|
||
|
postgres? ( dev-db/postgresql:= )"
|
||
|
DEPEND="${RDEPEND}
|
||
7 years ago
|
app-editors/vim-core
|
||
|
dev-lang/luajit:=
|
||
|
dev-libs/concurrencykit
|
||
7 years ago
|
dev-libs/libxslt
|
||
7 years ago
|
sys-devel/libtool:=
|
||
|
virtual/pkgconfig
|
||
7 years ago
|
test? ( dev-util/cram )"
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
sed -i -e "/^htmldir =/s:=.*:=/usr/share/doc/${PF}/html:" doc/Makefile.am || die
|
||
|
|
||
7 years ago
|
# remove bundled libs
|
||
|
rm -r third_party/luajit/luajit third_party/concurrency_kit/ck || die
|
||
|
|
||
7 years ago
|
./autogen.sh || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myeconfargs=(
|
||
|
$(use_enable aio aio)
|
||
|
$(use_with mysql mysql)
|
||
|
$(use_with postgres pgsql)
|
||
|
--without-attachsql
|
||
|
--without-drizzle
|
||
|
--without-oracle
|
||
7 years ago
|
--with-system-luajit
|
||
|
--with-system-ck
|
||
7 years ago
|
)
|
||
|
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
emake check test
|
||
|
}
|