1 |
commit: 0c7ed55c2504ea2aae077eedddd170b1fa4ba696 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 28 22:10:50 2023 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 22:32:26 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c7ed55c |
7 |
|
8 |
kde-apps/akonadi-calendar: Convert event start time to user's local tz |
9 |
|
10 |
Upstream commit fdbd7e42b6707cf99db48f62d43ca104de632159 |
11 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=453805 |
12 |
|
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../akonadi-calendar-22.08.3-r1.ebuild | 49 ++++++++++++++++++++++ |
16 |
.../akonadi-calendar-22.12.1-r1.ebuild | 49 ++++++++++++++++++++++ |
17 |
...08.3-convert-event-start-time-to-local-tz.patch | 33 +++++++++++++++ |
18 |
3 files changed, 131 insertions(+) |
19 |
|
20 |
diff --git a/kde-apps/akonadi-calendar/akonadi-calendar-22.08.3-r1.ebuild b/kde-apps/akonadi-calendar/akonadi-calendar-22.08.3-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 000000000000..d5f48f842b30 |
23 |
--- /dev/null |
24 |
+++ b/kde-apps/akonadi-calendar/akonadi-calendar-22.08.3-r1.ebuild |
25 |
@@ -0,0 +1,49 @@ |
26 |
+# Copyright 1999-2023 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=8 |
30 |
+ |
31 |
+ECM_TEST="true" |
32 |
+PVCUT=$(ver_cut 1-3) |
33 |
+KFMIN=5.96.0 |
34 |
+QTMIN=5.15.5 |
35 |
+inherit ecm gear.kde.org |
36 |
+ |
37 |
+DESCRIPTION="Library for akonadi calendar integration" |
38 |
+ |
39 |
+LICENSE="GPL-2+ LGPL-2.1+" |
40 |
+SLOT="5" |
41 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" |
42 |
+IUSE="" |
43 |
+ |
44 |
+RESTRICT="test" |
45 |
+ |
46 |
+DEPEND=" |
47 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
48 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
49 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
50 |
+ >=kde-apps/akonadi-${PVCUT}:5 |
51 |
+ >=kde-apps/akonadi-contacts-${PVCUT}:5 |
52 |
+ >=kde-apps/akonadi-mime-${PVCUT}:5 |
53 |
+ >=kde-apps/kcalutils-${PVCUT}:5 |
54 |
+ >=kde-apps/kidentitymanagement-${PVCUT}:5 |
55 |
+ >=kde-apps/kmailtransport-${PVCUT}:5 |
56 |
+ >=kde-apps/kmime-${PVCUT}:5 |
57 |
+ >=kde-frameworks/kcalendarcore-${KFMIN}:5 |
58 |
+ >=kde-frameworks/kcodecs-${KFMIN}:5 |
59 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
60 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
61 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
62 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
63 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
64 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
65 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
66 |
+ >=kde-frameworks/kitemmodels-${KFMIN}:5 |
67 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
68 |
+ >=kde-frameworks/knotifications-${KFMIN}:5 |
69 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
70 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
71 |
+" |
72 |
+RDEPEND="${DEPEND}" |
73 |
+ |
74 |
+PATCHES=( "${FILESDIR}/${P}-convert-event-start-time-to-local-tz.patch" ) |
75 |
|
76 |
diff --git a/kde-apps/akonadi-calendar/akonadi-calendar-22.12.1-r1.ebuild b/kde-apps/akonadi-calendar/akonadi-calendar-22.12.1-r1.ebuild |
77 |
new file mode 100644 |
78 |
index 000000000000..dd68fabee9f3 |
79 |
--- /dev/null |
80 |
+++ b/kde-apps/akonadi-calendar/akonadi-calendar-22.12.1-r1.ebuild |
81 |
@@ -0,0 +1,49 @@ |
82 |
+# Copyright 1999-2023 Gentoo Authors |
83 |
+# Distributed under the terms of the GNU General Public License v2 |
84 |
+ |
85 |
+EAPI=8 |
86 |
+ |
87 |
+ECM_TEST="true" |
88 |
+PVCUT=$(ver_cut 1-3) |
89 |
+KFMIN=5.101.0 |
90 |
+QTMIN=5.15.5 |
91 |
+inherit ecm gear.kde.org |
92 |
+ |
93 |
+DESCRIPTION="Library for akonadi calendar integration" |
94 |
+ |
95 |
+LICENSE="GPL-2+ LGPL-2.1+" |
96 |
+SLOT="5" |
97 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" |
98 |
+IUSE="" |
99 |
+ |
100 |
+RESTRICT="test" |
101 |
+ |
102 |
+DEPEND=" |
103 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
104 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
105 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
106 |
+ >=kde-apps/akonadi-${PVCUT}:5 |
107 |
+ >=kde-apps/akonadi-contacts-${PVCUT}:5 |
108 |
+ >=kde-apps/akonadi-mime-${PVCUT}:5 |
109 |
+ >=kde-apps/kcalutils-${PVCUT}:5 |
110 |
+ >=kde-apps/kidentitymanagement-${PVCUT}:5 |
111 |
+ >=kde-apps/kmailtransport-${PVCUT}:5 |
112 |
+ >=kde-apps/kmime-${PVCUT}:5 |
113 |
+ >=kde-frameworks/kcalendarcore-${KFMIN}:5 |
114 |
+ >=kde-frameworks/kcodecs-${KFMIN}:5 |
115 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
116 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
117 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
118 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
119 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
120 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
121 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
122 |
+ >=kde-frameworks/kitemmodels-${KFMIN}:5 |
123 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
124 |
+ >=kde-frameworks/knotifications-${KFMIN}:5 |
125 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
126 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
127 |
+" |
128 |
+RDEPEND="${DEPEND}" |
129 |
+ |
130 |
+PATCHES=( "${FILESDIR}/${PN}-22.08.3-convert-event-start-time-to-local-tz.patch" ) |
131 |
|
132 |
diff --git a/kde-apps/akonadi-calendar/files/akonadi-calendar-22.08.3-convert-event-start-time-to-local-tz.patch b/kde-apps/akonadi-calendar/files/akonadi-calendar-22.08.3-convert-event-start-time-to-local-tz.patch |
133 |
new file mode 100644 |
134 |
index 000000000000..4ede6334a029 |
135 |
--- /dev/null |
136 |
+++ b/kde-apps/akonadi-calendar/files/akonadi-calendar-22.08.3-convert-event-start-time-to-local-tz.patch |
137 |
@@ -0,0 +1,33 @@ |
138 |
+From fdbd7e42b6707cf99db48f62d43ca104de632159 Mon Sep 17 00:00:00 2001 |
139 |
+From: Kishore Gopalakrishnan <kishore96@×××××.com> |
140 |
+Date: Sun, 6 Nov 2022 13:03:22 +0530 |
141 |
+Subject: [PATCH] Convert event start time to user's local timezone |
142 |
+ |
143 |
+Since we don't display the timezone of the event in the notification, |
144 |
+this is required when the event is in a different timezone from the |
145 |
+user's local one. |
146 |
+ |
147 |
+BUG: 453805 |
148 |
+ |
149 |
+ |
150 |
+(cherry picked from commit 750200aa58e3a8c4073e6304a0e214c1c5beafb9) |
151 |
+--- |
152 |
+ reminder-daemon/alarmnotification.cpp | 2 +- |
153 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
154 |
+ |
155 |
+diff --git a/reminder-daemon/alarmnotification.cpp b/reminder-daemon/alarmnotification.cpp |
156 |
+index 6082e9a..27e53e2 100644 |
157 |
+--- a/reminder-daemon/alarmnotification.cpp |
158 |
++++ b/reminder-daemon/alarmnotification.cpp |
159 |
+@@ -30,7 +30,7 @@ AlarmNotification::~AlarmNotification() |
160 |
+ |
161 |
+ void AlarmNotification::send(KalendarAlarmClient *client, const KCalendarCore::Incidence::Ptr &incidence) |
162 |
+ { |
163 |
+- const QDateTime startTime = m_occurrence.isValid() ? m_occurrence : incidence->dtStart(); |
164 |
++ const QDateTime startTime = m_occurrence.isValid() ? m_occurrence.toLocalTime() : incidence->dtStart().toLocalTime(); |
165 |
+ const bool notificationExists = m_notification; |
166 |
+ if (!notificationExists) { |
167 |
+ m_notification = new KNotification(QStringLiteral("alarm")); |
168 |
+-- |
169 |
+GitLab |
170 |
+ |