commit:     8d80529377d162d36ff445c979fefe5f674ad191
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Tue May 12 12:43:26 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue May 12 12:43:26 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=8d805293

[net-libs/accounts-qt] Introduce test USE flag to make dev-qt/qttest dependency 
optional.

Also, restrict them because they fail.

Package-Manager: portage-2.2.18

 net-libs/accounts-qt/accounts-qt-1.13.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/net-libs/accounts-qt/accounts-qt-1.13.ebuild 
b/net-libs/accounts-qt/accounts-qt-1.13.ebuild
index 0b44287..d330f0d 100644
--- a/net-libs/accounts-qt/accounts-qt-1.13.ebuild
+++ b/net-libs/accounts-qt/accounts-qt-1.13.ebuild
@@ -13,25 +13,28 @@ 
SRC_URI="https://accounts-sso.googlecode.com/files/${PN}-1.11.tar.bz2";
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="doc"
+IUSE="doc test"
+
+# killed by stack smashing detector
+RESTRICT="test"
 
 RDEPEND="
        net-libs/libaccounts-glib
        dev-libs/glib:2
        dev-qt/qtcore:5
-       dev-qt/qttest:5
        dev-qt/qtxml:5
 "
 DEPEND="${RDEPEND}
        doc? ( app-doc/doxygen )
+       test? ( dev-qt/qttest:5 )
 "
 
 S="${WORKDIR}/${PN}-1.11"
 
 src_prepare() {
        epatch "${FILESDIR}"/${PN}-1.11-to-1.13.patch
-       sed -i -e '/^SUBDIRS/s/tests//' accounts-qt.pro || die "couldn't 
disable tests"
        use doc || sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die
+       use test || sed -i -e '/^SUBDIRS/s/tests//' accounts-qt.pro || die 
"couldn't disable tests"
 }
 
 src_configure() {

Reply via email to