1 |
commit: 1026fe273b5eeb3ac241fca8056011f9d8a94e7c |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 12 21:50:00 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 12 21:51:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1026fe27 |
7 |
|
8 |
kde-apps/konsole: ColorScheme: Fix DarkBackground Detection |
9 |
|
10 |
See also: https://invent.kde.org/kde/konsole/merge_requests/65 |
11 |
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=416638 |
12 |
Thanks-to: Manuel Rüger <mrueg <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
.../konsole-19.12.2-darkbackground-detect.patch | 27 +++++++++ |
17 |
kde-apps/konsole/konsole-19.12.2-r1.ebuild | 64 ++++++++++++++++++++++ |
18 |
2 files changed, 91 insertions(+) |
19 |
|
20 |
diff --git a/kde-apps/konsole/files/konsole-19.12.2-darkbackground-detect.patch b/kde-apps/konsole/files/konsole-19.12.2-darkbackground-detect.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..990bad142c3 |
23 |
--- /dev/null |
24 |
+++ b/kde-apps/konsole/files/konsole-19.12.2-darkbackground-detect.patch |
25 |
@@ -0,0 +1,27 @@ |
26 |
+From e5b2ada1a6f06e0eea76af1f26ff4c0c4aad8497 Mon Sep 17 00:00:00 2001 |
27 |
+From: =?UTF-8?q?Manuel=20R=C3=BCger?= <manuel@××××.eu> |
28 |
+Date: Thu, 23 Jan 2020 11:00:06 +0100 |
29 |
+Subject: ColorScheme: Fix DarkBackground Detection |
30 |
+ |
31 |
+Luminance is a value between 0 and 100. |
32 |
+ |
33 |
+https://bugs.kde.org/show_bug.cgi?id=416638 |
34 |
+--- |
35 |
+ src/ColorScheme.cpp | 2 +- |
36 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
37 |
+ |
38 |
+diff --git a/src/ColorScheme.cpp b/src/ColorScheme.cpp |
39 |
+index 1693c22..5d6b408 100644 |
40 |
+--- a/src/ColorScheme.cpp |
41 |
++++ b/src/ColorScheme.cpp |
42 |
+@@ -403,7 +403,7 @@ bool ColorScheme::hasDarkBackground() const |
43 |
+ const double g = backgroundColor().greenF(); |
44 |
+ const double b = backgroundColor().blueF(); |
45 |
+ rgb2hsluv(r, g, b, &h, &s, &l); |
46 |
+- return l < 0.5; |
47 |
++ return l < 50; |
48 |
+ } |
49 |
+ |
50 |
+ void ColorScheme::setOpacity(qreal opacity) |
51 |
+-- |
52 |
+cgit v1.1 |
53 |
|
54 |
diff --git a/kde-apps/konsole/konsole-19.12.2-r1.ebuild b/kde-apps/konsole/konsole-19.12.2-r1.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000000..3e45534a5d5 |
57 |
--- /dev/null |
58 |
+++ b/kde-apps/konsole/konsole-19.12.2-r1.ebuild |
59 |
@@ -0,0 +1,64 @@ |
60 |
+# Copyright 1999-2020 Gentoo Authors |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+EAPI=7 |
64 |
+ |
65 |
+ECM_HANDBOOK="optional" |
66 |
+ECM_TEST="true" |
67 |
+KFMIN=5.63.0 |
68 |
+QTMIN=5.12.3 |
69 |
+VIRTUALX_REQUIRED="test" |
70 |
+inherit ecm kde.org |
71 |
+ |
72 |
+DESCRIPTION="KDE's terminal emulator" |
73 |
+HOMEPAGE="https://kde.org/applications/system/org.kde.konsole |
74 |
+https://konsole.kde.org" |
75 |
+ |
76 |
+LICENSE="GPL-2" # TODO: CHECK |
77 |
+SLOT="5" |
78 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
79 |
+IUSE="X" |
80 |
+ |
81 |
+DEPEND=" |
82 |
+ >=kde-frameworks/kbookmarks-${KFMIN}:5 |
83 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
84 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
85 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
86 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
87 |
+ >=kde-frameworks/kcrash-${KFMIN}:5 |
88 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
89 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
90 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
91 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
92 |
+ >=kde-frameworks/kinit-${KFMIN}:5 |
93 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
94 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
95 |
+ >=kde-frameworks/knewstuff-${KFMIN}:5 |
96 |
+ >=kde-frameworks/knotifications-${KFMIN}:5 |
97 |
+ >=kde-frameworks/knotifyconfig-${KFMIN}:5 |
98 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
99 |
+ >=kde-frameworks/kpty-${KFMIN}:5 |
100 |
+ >=kde-frameworks/kservice-${KFMIN}:5 |
101 |
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
102 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
103 |
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5 |
104 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
105 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
106 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
107 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
108 |
+ >=dev-qt/qtprintsupport-${QTMIN}:5 |
109 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
110 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
111 |
+ X? ( x11-libs/libX11 ) |
112 |
+" |
113 |
+RDEPEND="${DEPEND}" |
114 |
+ |
115 |
+PATCHES=( "${FILESDIR}/${P}-darkbackground-detect.patch" ) |
116 |
+ |
117 |
+src_configure() { |
118 |
+ local mycmakeargs=( |
119 |
+ $(cmake_use_find_package X X11) |
120 |
+ ) |
121 |
+ |
122 |
+ ecm_src_configure |
123 |
+} |