net-libs/signon-oauth2: avoid build failure when unused dependency is not installed

Gentoo-bug: 564316

Package-Manager: portage-2.2.20.1
This commit is contained in:
Michael Palimaka
2015-10-29 00:11:24 +11:00
parent cd699b6b53
commit c41e09e64b
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
Qt5XmlPatterns is not actually used, but build will fail if it's missing.
Gentoo-bug: 564316
--- src/src.pro
+++ src/src.pro
@@ -4,8 +4,7 @@
TARGET = oauth2plugin
DESTDIR = lib/signon
QT += core \
- network \
- xmlpatterns
+ network
QT -= gui
CONFIG += plugin \
build_all \

View File

@@ -4,7 +4,7 @@
EAPI=5
inherit qmake-utils
inherit eutils qmake-utils
DESCRIPTION="OAuth2 plugin for Signon daemon"
HOMEPAGE="https://01.org/gsso/"
@@ -30,6 +30,8 @@ src_prepare() {
else
sed -i -e '/^INSTALLS.*/,+1d' tests/tests.pro || die "couldn't remove tests from install target"
fi
epatch "${FILESDIR}/${P}-unused-dependency.patch"
}
src_configure() {