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/kcoreaddons/, kde-frameworks/kcoreaddons/files/
Date: Wed, 13 Jun 2018 17:02:45 +0000 (UTC)	[thread overview]
Message-ID: <1528909224.5620ce2e0d5b6728069f81787fd2420b1d3715f2.asturm@gentoo> (raw)

commit:     5620ce2e0d5b6728069f81787fd2420b1d3715f2
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 13 17:00:24 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Jun 13 17:00:24 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=5620ce2e

kde-frameworks/kcoreaddons: Revert Debian patch for kformattest

This was fixed within kde-frameworks/plasma-5.47.0.
Upstream commit d15f0fa8322dc2632f15024457bea41e7dd058d7

This reverts commit 8b24d9fc2dc8edaa4f3c1acdd9630aef948d0862.

 .../files/kcoreaddons-5.46.0-kformattest.patch     | 56 ----------------------
 kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild |  8 ----
 2 files changed, 64 deletions(-)

diff --git a/kde-frameworks/kcoreaddons/files/kcoreaddons-5.46.0-kformattest.patch b/kde-frameworks/kcoreaddons/files/kcoreaddons-5.46.0-kformattest.patch
deleted file mode 100644
index 64031659fd..0000000000
--- a/kde-frameworks/kcoreaddons/files/kcoreaddons-5.46.0-kformattest.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From: Maximiliano Curia <maxy@gnuservers.com.ar>
-Date: Tue, 15 May 2018 13:06:53 +0200
-Subject: fix kformattest plural forms
-
----
- autotests/kformattest.cpp | 24 ++++++++++++------------
- 1 file changed, 12 insertions(+), 12 deletions(-)
-
-diff --git a/autotests/kformattest.cpp b/autotests/kformattest.cpp
-index 15080be..6cc3c52 100644
---- a/autotests/kformattest.cpp
-+++ b/autotests/kformattest.cpp
-@@ -248,8 +248,8 @@ void KFormatTest::formatDecimalDuration()
- {
-     KFormat format(QLocale::c());
- 
--    QCOMPARE(format.formatDecimalDuration(10), QStringLiteral("10 millisecond(s)"));
--    QCOMPARE(format.formatDecimalDuration(10, 3), QStringLiteral("10 millisecond(s)"));
-+    QCOMPARE(format.formatDecimalDuration(10), QStringLiteral("10 milliseconds"));
-+    QCOMPARE(format.formatDecimalDuration(10, 3), QStringLiteral("10 milliseconds"));
-     QCOMPARE(format.formatDecimalDuration(1 * MSecsInSecond + 10), QStringLiteral("1.01 seconds"));
-     QCOMPARE(format.formatDecimalDuration(1 * MSecsInSecond + 1, 3), QStringLiteral("1.001 seconds"));
-     QCOMPARE(format.formatDecimalDuration(1 * MSecsInMinute + 10 * MSecsInSecond), QStringLiteral("1.17 minutes"));
-@@ -264,22 +264,22 @@ void KFormatTest::formatSpelloutDuration()
- {
-     KFormat format(QLocale::c());
- 
--    QCOMPARE(format.formatSpelloutDuration(1000), QStringLiteral("1 second(s)"));
--    QCOMPARE(format.formatSpelloutDuration(5000), QStringLiteral("5 second(s)"));
--    QCOMPARE(format.formatSpelloutDuration(60000), QStringLiteral("1 minute(s)"));
--    QCOMPARE(format.formatSpelloutDuration(300000), QStringLiteral("5 minute(s)"));
--    QCOMPARE(format.formatSpelloutDuration(3600000), QStringLiteral("1 hour(s)"));
--    QCOMPARE(format.formatSpelloutDuration(18000000), QStringLiteral("5 hour(s)"));
--    QCOMPARE(format.formatSpelloutDuration(75000), QStringLiteral("1 minute(s) and 15 second(s)"));
-+    QCOMPARE(format.formatSpelloutDuration(1000), QStringLiteral("1 second"));
-+    QCOMPARE(format.formatSpelloutDuration(5000), QStringLiteral("5 seconds"));
-+    QCOMPARE(format.formatSpelloutDuration(60000), QStringLiteral("1 minute"));
-+    QCOMPARE(format.formatSpelloutDuration(300000), QStringLiteral("5 minutes"));
-+    QCOMPARE(format.formatSpelloutDuration(3600000), QStringLiteral("1 hour"));
-+    QCOMPARE(format.formatSpelloutDuration(18000000), QStringLiteral("5 hours"));
-+    QCOMPARE(format.formatSpelloutDuration(75000), QStringLiteral("1 minute and 15 seconds"));
-     // Problematic case #1 (there is a reference to this case on kformat.cpp)
--    QCOMPARE(format.formatSpelloutDuration(119999), QStringLiteral("2 minute(s)"));
-+    QCOMPARE(format.formatSpelloutDuration(119999), QStringLiteral("2 minutes"));
-     // This case is strictly 2 hours, 15 minutes and 59 seconds. However, since the range is
-     // pretty high between hours and seconds, formatSpelloutDuration always omits seconds when there
-     // are hours in scene.
--    QCOMPARE(format.formatSpelloutDuration(8159000), QStringLiteral("2 hour(s) and 15 minute(s)"));
-+    QCOMPARE(format.formatSpelloutDuration(8159000), QStringLiteral("2 hours and 15 minutes"));
-     // This case is strictly 1 hour and 10 seconds. For the same reason, formatSpelloutDuration
-     // detects that 10 seconds is just garbage compared to 1 hour, and omits it on the result.
--    QCOMPARE(format.formatSpelloutDuration(3610000), QStringLiteral("1 hour(s)"));
-+    QCOMPARE(format.formatSpelloutDuration(3610000), QStringLiteral("1 hour"));
- }
- 
- void KFormatTest::formatRelativeDate()

diff --git a/kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild b/kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild
index 987782c458..5627618255 100644
--- a/kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild
+++ b/kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild
@@ -19,14 +19,6 @@ DEPEND="${RDEPEND}
 	nls? ( $(add_qt_dep linguist-tools) )
 "
 
-src_prepare() {
-	# bug 650280
-	has_version '<dev-qt/qtcore-5.10.0:5' && \
-		eapply "${FILESDIR}/${PN}-5.46.0-kformattest.patch"
-
-	kde5_src_prepare
-}
-
 src_configure() {
 	local mycmakeargs=(
 		-D_KDE4_DEFAULT_HOME_POSTFIX=4


             reply	other threads:[~2018-06-13 17:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-13 17:02 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-06-06 14:27 [gentoo-commits] proj/kde:master commit in: kde-frameworks/kcoreaddons/, kde-frameworks/kcoreaddons/files/ Andreas Sturmlechner

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=1528909224.5620ce2e0d5b6728069f81787fd2420b1d3715f2.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