summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-03-06 17:27:50 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2024-03-06 20:31:27 +0100
commitd9e9e3d770b8f4ffdcd31629a0ab7d415df8d37b (patch)
tree61e34fd690bf0d46a570a4339a548fb8820a5254 /kde-plasma/kde-gtk-config
parentkde-plasma/kde-cli-tools: 5.27.11 version bump (diff)
downloadgentoo-d9e9e3d770b8f4ffdcd31629a0ab7d415df8d37b.tar.gz
gentoo-d9e9e3d770b8f4ffdcd31629a0ab7d415df8d37b.tar.bz2
gentoo-d9e9e3d770b8f4ffdcd31629a0ab7d415df8d37b.zip
kde-plasma/kde-gtk-config: 5.27.11 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma/kde-gtk-config')
-rw-r--r--kde-plasma/kde-gtk-config/Manifest1
-rw-r--r--kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.11-revert-6b3865a7.patch42
-rw-r--r--kde-plasma/kde-gtk-config/kde-gtk-config-5.27.11.ebuild55
3 files changed, 98 insertions, 0 deletions
diff --git a/kde-plasma/kde-gtk-config/Manifest b/kde-plasma/kde-gtk-config/Manifest
index 3e0d704032f9..df08886cf097 100644
--- a/kde-plasma/kde-gtk-config/Manifest
+++ b/kde-plasma/kde-gtk-config/Manifest
@@ -1,2 +1,3 @@
DIST kde-gtk-config-5.27.10.tar.xz 77292 BLAKE2B e6dfae8193abf12727e89862dfd0851fe603e760ed6cfc9818573f27b48a06b60801eaccd258f6a363f440ed51cbfa7934def13be8e6a0ab0f05c825e47d4c84 SHA512 aac2db0bec25c75a5b6761260e0c2589357329d48abfdfdd09cc6aa7d95230fe0288593d9f8f3d23428ec8b3246a620aaede90ac533779ab93fd1baa280ea855
+DIST kde-gtk-config-5.27.11.tar.xz 77516 BLAKE2B db2d4a03aa563cfd4df9c227400ccab51acbbace4b403dac30d9ef05ecca76186256435fdd62e46995fc7594d20a95109d1ecc6c941735bb22cca34e35a3b9a2 SHA512 5887631ba33ce1c121843412a713bc6fc3099a16a8961c9651919e66d9cce83f8391c47d7f6a5f4ad32ec5a497095755b315dfbbeb47ab5b3fa71b9166bf0ba0
DIST kde-gtk-config-6.0.1.tar.xz 78252 BLAKE2B b1635f79ac6bb7f27c1652c8356882b99570dc3637388a661dd736fb967a99ea26eb03b04c2a62eda31df01974a8212d1bfbef8a7fc1d000776131a494c55f44 SHA512 a2208c6e8c8125cfe710ab39edef0018ec668b4c40ad33ef22be1244c4db07e1f28cfe916d57a2fad162a20cad16af8f9975474112183ad884ed83bb5a928c69
diff --git a/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.11-revert-6b3865a7.patch b/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.11-revert-6b3865a7.patch
new file mode 100644
index 000000000000..18373f7e5051
--- /dev/null
+++ b/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.11-revert-6b3865a7.patch
@@ -0,0 +1,42 @@
+From 6f324aabdd4f118a81bb5c898689a0151e09d2e0 Mon Sep 17 00:00:00 2001
+From: Fushan Wen <qydwhotmail@gmail.com>
+Date: Wed, 6 Mar 2024 15:31:41 +0000
+Subject: [PATCH] Revert "Round x11GlobalScaleFactor instead of flooring it"
+
+This reverts commit 6b3865a72baff3932fbe89ef0c44ff1b9bb4cd10
+---
+ kded/gtkconfig.cpp | 9 ++-------
+ 1 file changed, 2 insertions(+), 7 deletions(-)
+
+diff --git a/kded/gtkconfig.cpp b/kded/gtkconfig.cpp
+index 8e825fd..85272ce 100644
+--- a/kded/gtkconfig.cpp
++++ b/kded/gtkconfig.cpp
+@@ -197,14 +197,9 @@ void GtkConfig::setEnableAnimations() const
+ }
+ }
+
+-static double roundPreferFloor(double d)
+-{
+- return (d - floor(d)) > 0.5 ? ceil(d) : floor(d);
+-}
+-
+ void GtkConfig::setGlobalScale() const
+ {
+- const unsigned scaleFactor = roundPreferFloor(configValueProvider->x11GlobalScaleFactor());
++ const unsigned scaleFactor = configValueProvider->x11GlobalScaleFactor();
+ XSettingsEditor::setValue(QStringLiteral("Gdk/WindowScalingFactor"), scaleFactor);
+ GSettingsEditor::setValue("scaling-factor", scaleFactor); // For IntelliJ IDEA
+ }
+@@ -212,7 +207,7 @@ void GtkConfig::setGlobalScale() const
+ void GtkConfig::setTextScale() const
+ {
+ const double x11Scale = configValueProvider->x11GlobalScaleFactor();
+- const int x11ScaleIntegerPart = int(roundPreferFloor(x11Scale));
++ const int x11ScaleIntegerPart = int(x11Scale);
+
+ const int forceFontDpi = configValueProvider->fontDpi();
+
+--
+GitLab
+
diff --git a/kde-plasma/kde-gtk-config/kde-gtk-config-5.27.11.ebuild b/kde-plasma/kde-gtk-config/kde-gtk-config-5.27.11.ebuild
new file mode 100644
index 000000000000..4f94e1575de1
--- /dev/null
+++ b/kde-plasma/kde-gtk-config/kde-gtk-config-5.27.11.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KFMIN=5.106.0
+PVCUT=$(ver_cut 1-3)
+QTMIN=5.15.9
+inherit ecm plasma.kde.org
+
+DESCRIPTION="Syncs KDE Plasma theme settings to GTK applications"
+HOMEPAGE="https://invent.kde.org/plasma/kde-gtk-config"
+
+LICENSE="GPL-3"
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE=""
+
+DEPEND="
+ dev-libs/glib:2
+ >=dev-qt/qtdbus-${QTMIN}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtsvg-${QTMIN}:5
+ gnome-base/gsettings-desktop-schemas
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5
+ >=kde-frameworks/kguiaddons-${KFMIN}:5
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5
+ >=kde-plasma/kdecoration-${PVCUT}:5
+ x11-libs/gtk+:3[X]
+"
+RDEPEND="${DEPEND}
+ >=kde-plasma/kde-cli-tools-${PVCUT}:*
+ x11-misc/xsettingsd
+"
+BDEPEND="dev-lang/sassc"
+
+PATCHES=( "${FILESDIR}/${P}-revert-6b3865a7.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DDATA_INSTALL_DIR="${EPREFIX}/usr/share"
+ )
+
+ ecm_src_configure
+}
+
+pkg_postinst() {
+ ecm_pkg_postinst
+ elog "If you notice missing icons in your GTK applications, you may have to install"
+ elog "the corresponding themes for GTK. A good guess would be x11-themes/oxygen-gtk"
+ elog "for example."
+}