Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/sysbench/
Date: Mon, 31 Oct 2016 15:07:10
Message-Id: 1477926347.c090227bc0dc171fb4653fcd7b4396d22b4ac7d9.gokturk@gentoo
1 commit: c090227bc0dc171fb4653fcd7b4396d22b4ac7d9
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Mon Oct 31 08:37:30 2016 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 15:05:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c090227b
7
8 app-benchmarks/sysbench: improve live ebuild
9
10 Package-Manager: portage-2.3.1
11
12 app-benchmarks/sysbench/sysbench-9999.ebuild | 31 +++++++++++++++++++---------
13 1 file changed, 21 insertions(+), 10 deletions(-)
14
15 diff --git a/app-benchmarks/sysbench/sysbench-9999.ebuild b/app-benchmarks/sysbench/sysbench-9999.ebuild
16 index e82c950..f6055be 100644
17 --- a/app-benchmarks/sysbench/sysbench-9999.ebuild
18 +++ b/app-benchmarks/sysbench/sysbench-9999.ebuild
19 @@ -12,14 +12,23 @@ HOMEPAGE="https://github.com/akopytov/sysbench"
20 EGIT_REPO_URI="https://github.com/akopytov/sysbench.git"
21 EGIT_BRANCH="1.0"
22
23 -LICENSE="GPL-2"
24 +LICENSE="GPL-2+"
25 SLOT="0"
26 KEYWORDS=""
27 -IUSE="aio mysql"
28 +IUSE="aio lua mysql postgres test"
29
30 -DEPEND="aio? ( dev-libs/libaio )
31 - mysql? ( virtual/libmysqlclient )"
32 -RDEPEND="${DEPEND}"
33 +RDEPEND="aio? ( dev-libs/libaio )
34 + lua? ( dev-lang/lua:= )
35 + mysql? ( virtual/libmysqlclient )
36 + postgres? ( dev-db/postgresql:= )"
37 +DEPEND="${RDEPEND}
38 + sys-devel/libtool:=
39 + dev-libs/libxslt
40 + test? ( dev-util/cram )"
41 +
42 +REQUIRED_USE="
43 + mysql? ( lua )
44 + postgres? ( lua )"
45
46 src_prepare() {
47 default
48 @@ -32,15 +41,17 @@ src_prepare() {
49 src_configure() {
50 local myeconfargs=(
51 $(use_enable aio aio)
52 + $(use_with lua lua)
53 $(use_with mysql mysql)
54 + $(use_with postgres pgsql)
55 + --without-attachsql
56 + --without-drizzle
57 + --without-oracle
58 )
59
60 econf "${myeconfargs[@]}"
61 }
62
63 -src_install() {
64 - default
65 -
66 - insinto /usr/share/${PN}/tests/db
67 - doins sysbench/tests/db/*.lua || die
68 +src_test() {
69 + emake check test
70 }