blob: 4a7face7bc1383b83a4ee2c3eac771927a7f6d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit pax-utils
DESCRIPTION="System performance benchmark"
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 mysql postgres test"
RDEPEND="aio? ( dev-libs/libaio )
mysql? ( virtual/libmysqlclient )
postgres? ( dev-db/postgresql:= )"
DEPEND="${RDEPEND}
app-editors/vim-core
dev-lang/luajit:=
dev-libs/concurrencykit
dev-libs/libxslt
sys-devel/libtool:=
virtual/pkgconfig
test? ( dev-util/cram )"
# https://github.com/akopytov/sysbench/commit/f5fa7800cbbdd3920290e04e597d90a26cde7608
PATCHES=( "${FILESDIR}/${PN}-fix-mariadb-include.patch" )
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 third_party/cram || die
./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
--with-system-luajit
--with-system-ck
)
econf "${myeconfargs[@]}"
}
src_compile() {
default
pax-mark m "${S}/src/${PN}"
}
src_test() {
emake check test
}
|