public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-frameworks/kio/files/, kde-frameworks/kio/
Date: Tue,  8 Aug 2017 23:49:50 +0000 (UTC)	[thread overview]
Message-ID: <1502232261.20caf700d502f20281c3d067f7c2fd8d3a143391.asturm@gentoo> (raw)

commit:     20caf700d502f20281c3d067f7c2fd8d3a143391
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  8 22:44:21 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Aug  8 22:44:21 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=20caf700

kde-frameworks/kio: Switch KDE_TEST back to forceoptional

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 kde-frameworks/kio/files/kio-5.37.0-tests.patch | 50 +++++++++++++++++++++++++
 kde-frameworks/kio/kio-5.37.0.ebuild            |  9 +++--
 kde-frameworks/kio/kio-9999.ebuild              |  7 ++--
 3 files changed, 58 insertions(+), 8 deletions(-)

diff --git a/kde-frameworks/kio/files/kio-5.37.0-tests.patch b/kde-frameworks/kio/files/kio-5.37.0-tests.patch
new file mode 100644
index 0000000000..4fdb08fc02
--- /dev/null
+++ b/kde-frameworks/kio/files/kio-5.37.0-tests.patch
@@ -0,0 +1,50 @@
+commit dec4afb4145b1c9ccfe3474e26a86716f597910d
+Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date:   Tue Aug 8 22:33:08 2017 +0200
+
+    Use ecm_add_test and benefit from BUILD_TESTING awareness
+    
+    Reviewers: #frameworks, kfunk
+    
+    Reviewed By: kfunk
+    
+    Subscribers: kfunk
+    
+    Tags: #frameworks
+    
+    Differential Revision: https://phabricator.kde.org/D7213
+
+diff --git a/src/ioslaves/trash/tests/CMakeLists.txt b/src/ioslaves/trash/tests/CMakeLists.txt
+index 7adba49b..514fd79c 100644
+--- a/src/ioslaves/trash/tests/CMakeLists.txt
++++ b/src/ioslaves/trash/tests/CMakeLists.txt
+@@ -11,21 +11,16 @@ set(testtrash_SRCS
+     ${CMAKE_CURRENT_SOURCE_DIR}/../kiotrashdebug.cpp
+ )
+ 
+-add_executable(testtrash ${testtrash_SRCS})
+-ecm_mark_as_test(testtrash)
+-add_test(NAME testtrash COMMAND testtrash)
+-
+-target_link_libraries(testtrash
+-   KF5::I18n
+-   Qt5::DBus
+-   KF5::KIOCore
+-   KF5::Solid
+-   Qt5::Test
+-)
+ if(APPLE)
+-    target_link_libraries(testtrash "-framework DiskArbitration -framework CoreFoundation")
++    set(testtrash_APPLE_LIBS "-framework DiskArbitration -framework CoreFoundation")
+ endif(APPLE)
+-ecm_mark_nongui_executable(testtrash)
++
++include(ECMAddTests)
++
++ecm_add_test(${testtrash_SRCS}
++    TEST_NAME testtrash
++    LINK_LIBRARIES KF5::I18n Qt5::DBus KF5::KIOCore KF5::Solid Qt5::Test ${testtrash_APPLE_LIBS}
++)
+ 
+ ### next target ###
+ 

diff --git a/kde-frameworks/kio/kio-5.37.0.ebuild b/kde-frameworks/kio/kio-5.37.0.ebuild
index 5bbe22d834..5f3130eaf9 100644
--- a/kde-frameworks/kio/kio-5.37.0.ebuild
+++ b/kde-frameworks/kio/kio-5.37.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-KDE_TEST="forceoptional-recursive"
+KDE_TEST="forceoptional"
 VIRTUALX_REQUIRED="test"
 inherit kde5
 
@@ -12,7 +12,7 @@ LICENSE="LGPL-2+"
 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
 IUSE="acl +handbook kerberos +kwallet X"
 
-COMMON_DEPEND="
+RDEPEND="
 	$(add_frameworks_dep karchive)
 	$(add_frameworks_dep kbookmarks)
 	$(add_frameworks_dep kcodecs)
@@ -48,7 +48,7 @@ COMMON_DEPEND="
 	kwallet? ( $(add_frameworks_dep kwallet) )
 	X? ( $(add_qt_dep qtx11extras) )
 "
-DEPEND="${COMMON_DEPEND}
+DEPEND="${RDEPEND}
 	$(add_qt_dep qtconcurrent)
 	handbook? ( $(add_frameworks_dep kdoctools) )
 	test? ( sys-libs/zlib )
@@ -61,7 +61,8 @@ DEPEND="${COMMON_DEPEND}
 PDEPEND="
 	$(add_frameworks_dep kded)
 "
-RDEPEND="${COMMON_DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-tests.patch" )
 
 # tests hang
 RESTRICT+=" test"

diff --git a/kde-frameworks/kio/kio-9999.ebuild b/kde-frameworks/kio/kio-9999.ebuild
index 683897a310..2eb7ab56e6 100644
--- a/kde-frameworks/kio/kio-9999.ebuild
+++ b/kde-frameworks/kio/kio-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-KDE_TEST="forceoptional-recursive"
+KDE_TEST="forceoptional"
 VIRTUALX_REQUIRED="test"
 inherit kde5
 
@@ -12,7 +12,7 @@ LICENSE="LGPL-2+"
 KEYWORDS=""
 IUSE="acl +handbook kerberos +kwallet X"
 
-COMMON_DEPEND="
+RDEPEND="
 	$(add_frameworks_dep karchive)
 	$(add_frameworks_dep kbookmarks)
 	$(add_frameworks_dep kcodecs)
@@ -48,7 +48,7 @@ COMMON_DEPEND="
 	kwallet? ( $(add_frameworks_dep kwallet) )
 	X? ( $(add_qt_dep qtx11extras) )
 "
-DEPEND="${COMMON_DEPEND}
+DEPEND="${RDEPEND}
 	$(add_qt_dep qtconcurrent)
 	handbook? ( $(add_frameworks_dep kdoctools) )
 	test? ( sys-libs/zlib )
@@ -61,7 +61,6 @@ DEPEND="${COMMON_DEPEND}
 PDEPEND="
 	$(add_frameworks_dep kded)
 "
-RDEPEND="${COMMON_DEPEND}"
 
 # tests hang
 RESTRICT+=" test"


             reply	other threads:[~2017-08-08 23:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08 23:49 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-05-02  7:58 [gentoo-commits] proj/kde:master commit in: kde-frameworks/kio/files/, kde-frameworks/kio/ Andreas Sturmlechner
2016-03-17 15:18 Michael Palimaka
2015-06-19 14:47 Johannes Huber
2015-01-21 20:48 Johannes Huber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1502232261.20caf700d502f20281c3d067f7c2fd8d3a143391.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox