Skip to content

Commit

Permalink
app-benchmarks/sysbench: sync live ebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrapolic authored and gktrk committed Jan 29, 2017
1 parent 5da92ce commit ba0b857
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app-benchmarks/sysbench/sysbench-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand All @@ -10,43 +10,45 @@ DESCRIPTION="System performance benchmark"
HOMEPAGE="https://github.com/akopytov/sysbench"

EGIT_REPO_URI="https://github.com/akopytov/sysbench.git"
EGIT_BRANCH="1.0"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS=""
IUSE="aio lua mysql postgres test"
IUSE="aio mysql postgres test"

RDEPEND="aio? ( dev-libs/libaio )
lua? ( dev-lang/lua:= )
mysql? ( virtual/libmysqlclient )
postgres? ( dev-db/postgresql:= )"
DEPEND="${RDEPEND}
sys-devel/libtool:=
app-editors/vim-core
dev-lang/luajit:=
dev-libs/concurrencykit
dev-libs/libxslt
sys-devel/libtool:=
virtual/pkgconfig
test? ( dev-util/cram )"

REQUIRED_USE="
mysql? ( lua )
postgres? ( lua )"

src_prepare() {
default

sed -i -e "/^htmldir =/s:=.*:=/usr/share/doc/${PF}/html:" doc/Makefile.am || die

# remove bundled libs
rm -r third_party/luajit/luajit third_party/concurrency_kit/ck || 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
--with-system-luajit
--with-system-ck
)

econf "${myeconfargs[@]}"
Expand Down

0 comments on commit ba0b857

Please sign in to comment.