From 905e7d07da40378586e71ece65bd962b0b00c578 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 7 Mar 2024 01:06:27 +0000 Subject: gentoo auto-resync : 07:03:2024 - 01:06:26 --- kde-plasma/kde-gtk-config/Manifest | 3 ++ .../kde-gtk-config-5.27.11-revert-6b3865a7.patch | 42 +++++++++++++++++ .../kde-gtk-config/kde-gtk-config-5.27.11.ebuild | 55 ++++++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 kde-plasma/kde-gtk-config/files/kde-gtk-config-5.27.11-revert-6b3865a7.patch create mode 100644 kde-plasma/kde-gtk-config/kde-gtk-config-5.27.11.ebuild (limited to 'kde-plasma/kde-gtk-config') diff --git a/kde-plasma/kde-gtk-config/Manifest b/kde-plasma/kde-gtk-config/Manifest index 3bd729f03bd9..c90ef1e7ba81 100644 --- a/kde-plasma/kde-gtk-config/Manifest +++ b/kde-plasma/kde-gtk-config/Manifest @@ -1,5 +1,8 @@ +AUX kde-gtk-config-5.27.11-revert-6b3865a7.patch 1458 BLAKE2B fc8877c7a889ef17ddb42c50307d613ce6134bd02470e23c4419756bf45d3048af3a44051d514ee2e280f1a5355ff1c87eddd3d3d379b508d6f765fd0b84ce40 SHA512 7119a8e7fcd7f4b2505763a4e3be3c404c2a39093774d9acc4637504da5a13225537338895274ee0c67a16aa976ae41f5707f0586ca318a694ea5fc9024a4811 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 EBUILD kde-gtk-config-5.27.10.ebuild 1296 BLAKE2B e62fea05f4d189cf2f39189c4f4dcd90be035a8d560b8d285c3a865ce6b5daaa955b7540c2255b5e3f5e730cacd46dede7e9201cc577334987018ab44f7e2084 SHA512 f4801b8aad7fc843bdb4fb0b2330ddd275cfeacc6fa1a30125804bce26d13468f59e5914c0292ade43c9ba7db0729ed3744993e0d63752fa1bf21f71b12263ab +EBUILD kde-gtk-config-5.27.11.ebuild 1353 BLAKE2B f38261478c0048ff1ed6ee5b3e59441e12cf23d30b9b2bdca45106b4d5d17db2b9212937a6b276aa1adcbc711677e009c92c5f46542fd77c85f3ee0323e2e76e SHA512 9031e58b4591be84844660146251b53f00c6b30d7c0780490d1bba40185050b3bf0aceeb9f7ddf538b53c448afb5f5171a1c6331c4d314df9e2a7369340380de EBUILD kde-gtk-config-6.0.1.ebuild 1237 BLAKE2B b40b6925c283d1d29bc9ba196d968dc79b74bd3aada80d66cd908a32abb05e52bf6dcc5305f66fb046c1f67bedcef4c8910d9b2a534a0a2a777133c7d616b651 SHA512 caccb3745c80524dfc221bccf0646434ad3fd0b46c89a8a3d74700a4b8fd8cba07d60c0aa951bf995e31e4ba50f9a8d8e720df93b643dd731dd02d56629e63a2 MISC metadata.xml 383 BLAKE2B f777a289078d97cf61477b7364c466cb02681aee2ca3e21ac909dd93ee5e9877e245919785bb45be2290e1361254aa6cfe51052a7334c7bf81761109e2080483 SHA512 58cb2b2ceac37139c32ed88ed94a3e7a1063527e7f84140a82f990dc7f1b47e821bef1b4668da56f63b963490886c1cdaa568f49f70a89671dd94aaeab028057 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 +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." +} -- cgit v1.2.3