public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: mail-client/kube/, mail-client/kube/files/
@ 2019-09-29 20:07 Andreas Sturmlechner
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2019-09-29 20:07 UTC (permalink / raw
  To: gentoo-commits

commit:     b40dfc26904023df04f4fa2f09400f5866d03b64
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 19:40:12 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 20:07:06 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b40dfc26

mail-client/kube: Accept kde-frameworks/kcalendarcore

Add missing dev-qt/qtconcurrent:5
Update DESCRIPTION
Use patch and switch to KDE_TEST="forceoptional"

Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../kube/files/kube-0.7.0-tests-optional.patch     | 64 ++++++++++++++++++++++
 mail-client/kube/kube-0.7.0.ebuild                 | 12 +++-
 2 files changed, 73 insertions(+), 3 deletions(-)

diff --git a/mail-client/kube/files/kube-0.7.0-tests-optional.patch b/mail-client/kube/files/kube-0.7.0-tests-optional.patch
new file mode 100644
index 00000000000..efdf09c775b
--- /dev/null
+++ b/mail-client/kube/files/kube-0.7.0-tests-optional.patch
@@ -0,0 +1,64 @@
+--- a/CMakeLists.txt	2019-09-29 21:36:28.419106801 +0200
++++ b/CMakeLists.txt	2019-09-29 21:36:28.423106839 +0200
+@@ -43,7 +43,9 @@
+ add_subdirectory(applications)
+ add_subdirectory(views)
+ add_subdirectory(accounts)
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+ if (${ENABLE_EXTENSION})
+     add_subdirectory(extensions)
+ endif()
+--- a/framework/CMakeLists.txt	2019-09-29 21:36:28.428106886 +0200
++++ b/framework/CMakeLists.txt	2019-09-29 21:36:28.433106934 +0200
+@@ -4,4 +4,6 @@
+ install(FILES qmldir DESTINATION ${FRAMEWORK_INSTALL_DIR})
+ 
+ add_subdirectory(src)
++if(BUILD_TESTING)
+ add_subdirectory(qml/tests)
++endif()
+--- a/framework/src/CMakeLists.txt	2019-09-29 21:36:28.437106972 +0200
++++ b/framework/src/CMakeLists.txt	2019-09-29 21:36:28.450107095 +0200
+@@ -86,10 +86,16 @@
+ 
+ set(BUILD_TESTING ON)
+ 
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+ add_subdirectory(domain/mime)
++if(BUILD_TESTING)
+ add_subdirectory(domain/mime/tests)
++endif()
+ add_subdirectory(domain/mime/mimetreeparser)
++if(BUILD_TESTING)
+ add_subdirectory(domain/settings/tests)
++endif()
+ 
+ feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
+--- a/framework/src/domain/mime/mimetreeparser/CMakeLists.txt	2019-09-29 21:36:28.455107143 +0200
++++ b/framework/src/domain/mime/mimetreeparser/CMakeLists.txt	2019-09-29 21:36:28.458107171 +0200
+@@ -49,5 +49,9 @@
+     Gpgme::Gpgme
+ )
+ 
++if(BUILD_TESTING)
+ add_subdirectory(autotests)
++endif()
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/components/CMakeLists.txt	2019-09-29 21:36:28.463107218 +0200
++++ b/components/CMakeLists.txt	2019-09-29 21:36:28.476107341 +0200
+@@ -8,7 +8,9 @@
+ endmacro(install_qml_component)
+ 
+ install_qml_component(kube)
++if(BUILD_TESTING)
+ add_subdirectory(kube/tests)
++endif()
+ install_qml_component(accounts)
+ 
+ 

diff --git a/mail-client/kube/kube-0.7.0.ebuild b/mail-client/kube/kube-0.7.0.ebuild
index 75753f8bb2f..9b40730b0d6 100644
--- a/mail-client/kube/kube-0.7.0.ebuild
+++ b/mail-client/kube/kube-0.7.0.ebuild
@@ -3,10 +3,10 @@
 
 EAPI=7
 
-KDE_TEST="forceoptional-recursive"
+KDE_TEST="forceoptional"
 inherit kde5
 
-DESCRIPTION="A mail client by KDE"
+DESCRIPTION="Mail client based on KDE Frameworks"
 HOMEPAGE="https://kube.kde.org/"
 SRC_URI="https://github.com/KDE/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 KEYWORDS="~amd64"
@@ -14,8 +14,12 @@ KEYWORDS="~amd64"
 RDEPEND="
 	$(add_frameworks_dep breeze-icons)
 	$(add_frameworks_dep kcodecs)
-	$(add_kdeapps_dep kcontacts)
+	|| (
+		$(add_frameworks_dep kcontacts)
+		$(add_kdeapps_dep kcontacts)
+	)
 	$(add_kdeapps_dep kmime)
+	$(add_qt_dep qtconcurrent)
 	$(add_qt_dep qtdeclarative)
 	$(add_qt_dep qtgui)
 	$(add_qt_dep qtnetwork)
@@ -34,6 +38,8 @@ DEPEND="${RDEPEND}
 
 RESTRICT+=" test"
 
+PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" )
+
 src_prepare() {
 	kde5_src_prepare
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: mail-client/kube/, mail-client/kube/files/
@ 2019-10-01 23:43 Andreas Sturmlechner
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2019-10-01 23:43 UTC (permalink / raw
  To: gentoo-commits

commit:     bb441bed71aa28609df327c17fa17ab22c4864bf
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  1 18:40:11 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Oct  1 23:41:44 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb441bed

mail-client/kube: Properly eliminate dev-qt/qttest:5 in cmake

Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 mail-client/kube/files/kube-0.7.0-tests-optional.patch |  4 +---
 mail-client/kube/kube-0.7.0-r1.ebuild                  | 10 ++++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/mail-client/kube/files/kube-0.7.0-tests-optional.patch b/mail-client/kube/files/kube-0.7.0-tests-optional.patch
index efdf09c775b..0756cfb0cad 100644
--- a/mail-client/kube/files/kube-0.7.0-tests-optional.patch
+++ b/mail-client/kube/files/kube-0.7.0-tests-optional.patch
@@ -40,14 +40,12 @@
  feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
 --- a/framework/src/domain/mime/mimetreeparser/CMakeLists.txt	2019-09-29 21:36:28.455107143 +0200
 +++ b/framework/src/domain/mime/mimetreeparser/CMakeLists.txt	2019-09-29 21:36:28.458107171 +0200
-@@ -49,5 +49,9 @@
+@@ -49,5 +49,7 @@
      Gpgme::Gpgme
  )
  
 +if(BUILD_TESTING)
  add_subdirectory(autotests)
-+endif()
-+if(BUILD_TESTING)
  add_subdirectory(tests)
 +endif()
 --- a/components/CMakeLists.txt	2019-09-29 21:36:28.463107218 +0200

diff --git a/mail-client/kube/kube-0.7.0-r1.ebuild b/mail-client/kube/kube-0.7.0-r1.ebuild
index d1dc9b2e959..110722ceb00 100644
--- a/mail-client/kube/kube-0.7.0-r1.ebuild
+++ b/mail-client/kube/kube-0.7.0-r1.ebuild
@@ -25,7 +25,6 @@ RDEPEND="
 	dev-qt/qtnetwork:5
 	dev-qt/qtquickcontrols:5
 	dev-qt/qtquickcontrols2:5
-	dev-qt/qttest:5
 	dev-qt/qtwebengine:5[widgets]
 	dev-qt/qtwidgets:5
 	kde-apps/kmime:5
@@ -52,9 +51,12 @@ src_prepare() {
 	cmake-utils_src_prepare
 
 	if ! use test; then
-		sed \
-			-e "/Qt5::Test/s/^/#DISABLED/" \
-			-e "/set(BUILD_TESTING ON)/s/^/#DISABLED /" \
+		sed -e "/find_package.*Qt5/s/ Test//" \
+			-i {,components/}CMakeLists.txt CMakeLists.txt \
+				{extensions/api,framework}/src/CMakeLists.txt || die
+		sed -e "/Qt5::Test/s/^/#DISABLED/" \
+			-i {extensions/api,framework}/src/CMakeLists.txt || die
+		sed -e "/set(BUILD_TESTING ON)/s/^/#DISABLED /" \
 			-e "/domain\/modeltest.cpp/s/^/#DISABLED /" \
 			-i framework/src/CMakeLists.txt || die
 	fi


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-01 23:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-29 20:07 [gentoo-commits] repo/gentoo:master commit in: mail-client/kube/, mail-client/kube/files/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2019-10-01 23:43 Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox