app-benchmarks/sysbench: improve live ebuild
authorTomas Mozes <hydrapolic@gmail.com>
Mon, 31 Oct 2016 08:37:30 +0000 (09:37 +0100)
committerGöktürk Yüksek <gokturk@gentoo.org>
Mon, 31 Oct 2016 15:05:47 +0000 (11:05 -0400)
Package-Manager: portage-2.3.1

app-benchmarks/sysbench/sysbench-9999.ebuild

index e82c950c023387c1237c135884e49d0ecdfbf2e3..f6055be8c1da94c84283ceefbd12c46459f6d4cc 100644 (file)
@@ -12,14 +12,23 @@ HOMEPAGE="https://github.com/akopytov/sysbench"
 EGIT_REPO_URI="https://github.com/akopytov/sysbench.git"
 EGIT_BRANCH="1.0"
 
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS=""
-IUSE="aio mysql"
+IUSE="aio lua mysql postgres test"
 
-DEPEND="aio? ( dev-libs/libaio )
-       mysql? ( virtual/libmysqlclient )"
-RDEPEND="${DEPEND}"
+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 )"
 
 src_prepare() {
        default
@@ -32,15 +41,17 @@ src_prepare() {
 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_install() {
-       default
-
-       insinto /usr/share/${PN}/tests/db
-       doins sysbench/tests/db/*.lua || die
+src_test() {
+       emake check test
 }