From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-921396-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 4FC31139086
	for <garchives@archives.gentoo.org>; Thu,  5 Jan 2017 00:20:19 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 56057234001;
	Thu,  5 Jan 2017 00:20:18 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2FE5A234026
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Jan 2017 00:20:18 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 01F343411D7
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Jan 2017 00:20:17 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C1342620
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Jan 2017 00:20:15 +0000 (UTC)
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org>
Message-ID: <1483575004.47911b679dc1c69b0c5810d2a66169a32e657cb3.asturm@gentoo>
Subject: [gentoo-commits] proj/kde:master commit in: kde-frameworks/frameworkintegration/
X-VCS-Repository: proj/kde
X-VCS-Files: kde-frameworks/frameworkintegration/frameworkintegration-9999.ebuild kde-frameworks/frameworkintegration/metadata.xml
X-VCS-Directories: kde-frameworks/frameworkintegration/
X-VCS-Committer: asturm
X-VCS-Committer-Name: Andreas Sturmlechner
X-VCS-Revision: 47911b679dc1c69b0c5810d2a66169a32e657cb3
X-VCS-Branch: master
Date: Thu,  5 Jan 2017 00:20:15 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 6c61ff3d-dda7-4ef6-8de1-1a4c21a66234
X-Archives-Hash: 7d125fc0ca3663062b013926ade9e125

commit:     47911b679dc1c69b0c5810d2a66169a32e657cb3
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  5 00:08:46 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jan  5 00:10:04 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=47911b67

kde-frameworks/frameworkintegration: Add USE=appstream

Package-Manager: portage-2.3.0

 .../frameworkintegration/frameworkintegration-9999.ebuild   | 13 ++++++++-----
 kde-frameworks/frameworkintegration/metadata.xml            |  3 +++
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/kde-frameworks/frameworkintegration/frameworkintegration-9999.ebuild b/kde-frameworks/frameworkintegration/frameworkintegration-9999.ebuild
index bfc66d2..bde5f3b 100644
--- a/kde-frameworks/frameworkintegration/frameworkintegration-9999.ebuild
+++ b/kde-frameworks/frameworkintegration/frameworkintegration-9999.ebuild
@@ -10,17 +10,22 @@ inherit kde5
 DESCRIPTION="Framework for integrating Qt applications with KDE Plasma workspaces"
 LICENSE="LGPL-2+"
 KEYWORDS=""
-IUSE="X"
+IUSE="appstream X"
 
 RDEPEND="
 	$(add_frameworks_dep kconfig)
 	$(add_frameworks_dep kconfigwidgets)
 	$(add_frameworks_dep kiconthemes)
+	$(add_frameworks_dep knewstuff)
 	$(add_frameworks_dep knotifications)
 	$(add_frameworks_dep kpackage)
 	$(add_frameworks_dep kwidgetsaddons)
 	$(add_qt_dep qtgui)
 	$(add_qt_dep qtwidgets)
+	appstream? (
+		app-admin/packagekit-qt
+		dev-libs/appstream[qt5]
+	)
 	X? (
 		$(add_qt_dep qtx11extras)
 		x11-libs/libxcb
@@ -38,12 +43,10 @@ src_prepare() {
 
 src_configure() {
 	local mycmakeargs=(
+		$(cmake-utils_use_find_package appstream AppStreamQt)
+		$(cmake-utils_use_find_package appstream packagekitqt5)
 		$(cmake-utils_use_find_package X XCB)
-		-DCMAKE_DISABLE_FIND_PACKAGE_AppStreamQt=ON
-		-DCMAKE_DISABLE_FIND_PACKAGE_packagekitqt5=ON
 	)
-	# appstream requires app-admin/packagekit-qt and
-	# not yet packaged AppStreamQt 0.10
 
 	kde5_src_configure
 }

diff --git a/kde-frameworks/frameworkintegration/metadata.xml b/kde-frameworks/frameworkintegration/metadata.xml
index 2fdbf33..e2bea7e 100644
--- a/kde-frameworks/frameworkintegration/metadata.xml
+++ b/kde-frameworks/frameworkintegration/metadata.xml
@@ -5,4 +5,7 @@
 		<email>kde@gentoo.org</email>
 		<name>Gentoo KDE Project</name>
 	</maintainer>
+	<use>
+		<flag name="appstream">Enable AppStream software metadata support</flag>
+	</use>
 </pkgmetadata>