diff options
author | Patrick Lauer <patrick@gentoo.org> | 2011-08-27 08:54:27 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2011-08-27 08:54:27 +0000 |
commit | d8d561b21f771044262b5468b1e100b29f274cfe (patch) | |
tree | e8f99591e6a37f14ecd165c5f7f7ba1d87750a4c /app-benchmarks | |
parent | Version bump, drop old (diff) | |
download | gentoo-2-d8d561b21f771044262b5468b1e100b29f274cfe.tar.gz gentoo-2-d8d561b21f771044262b5468b1e100b29f274cfe.tar.bz2 gentoo-2-d8d561b21f771044262b5468b1e100b29f274cfe.zip |
Adding aio useflag to properly handle automagic depend, bug #380353
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'app-benchmarks')
-rw-r--r-- | app-benchmarks/sysbench/ChangeLog | 7 | ||||
-rw-r--r-- | app-benchmarks/sysbench/metadata.xml | 3 | ||||
-rw-r--r-- | app-benchmarks/sysbench/sysbench-0.4.10.ebuild | 12 |
3 files changed, 15 insertions, 7 deletions
diff --git a/app-benchmarks/sysbench/ChangeLog b/app-benchmarks/sysbench/ChangeLog index 4113bf4101fd..3ce9c5df4b3f 100644 --- a/app-benchmarks/sysbench/ChangeLog +++ b/app-benchmarks/sysbench/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-benchmarks/sysbench -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/sysbench/ChangeLog,v 1.2 2009/03/08 20:36:54 maekke Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/sysbench/ChangeLog,v 1.3 2011/08/27 08:54:27 patrick Exp $ + + 27 Aug 2011; Patrick Lauer <patrick@gentoo.org> sysbench-0.4.10.ebuild: + Adding aio useflag to properly handle automagic depend, bug #380353 08 Mar 2009; Markus Meier <maekke@gentoo.org> sysbench-0.4.10.ebuild: amd64/x86 stable, bug #261718 diff --git a/app-benchmarks/sysbench/metadata.xml b/app-benchmarks/sysbench/metadata.xml index 7e5a7f579109..b40f5610ca92 100644 --- a/app-benchmarks/sysbench/metadata.xml +++ b/app-benchmarks/sysbench/metadata.xml @@ -2,4 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>benchmarks</herd> + <use> + <flag name='aio'>Enable libaio support</flag> + </use> </pkgmetadata> diff --git a/app-benchmarks/sysbench/sysbench-0.4.10.ebuild b/app-benchmarks/sysbench/sysbench-0.4.10.ebuild index 5f0e572ccaf9..cc573c99a249 100644 --- a/app-benchmarks/sysbench/sysbench-0.4.10.ebuild +++ b/app-benchmarks/sysbench/sysbench-0.4.10.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/sysbench/sysbench-0.4.10.ebuild,v 1.3 2009/03/08 20:36:54 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/sysbench/sysbench-0.4.10.ebuild,v 1.4 2011/08/27 08:54:27 patrick Exp $ DESCRIPTION="System performance benchmark" HOMEPAGE="http://sysbench.sourceforge.net/" @@ -9,13 +9,15 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" -IUSE="mysql" +IUSE="aio mysql" -DEPEND="mysql? ( virtual/mysql )" +DEPEND="mysql? ( virtual/mysql ) + aio? ( dev-libs/libaio )" RDEPEND="${DEPEND}" src_compile() { - econf $(use_with mysql mysql /usr) || die "econf failed" + if ! use aio; then my_econf="--disable-aio"; fi + econf $(use_with mysql mysql /usr) $my_econf || die "econf failed" emake || die "emake failed" } |