diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-15 23:53:40 +0000 |
---|---|---|
committer | Jimi Huotari <chiitoo@gentoo.org> | 2023-02-16 21:16:21 +0200 |
commit | 05b8a0768e6eee3c15d416114fc6c7fd002e8436 (patch) | |
tree | 8b2616609cd218a5a85e8025d580d7e05720898b /lxqt-base/lxqt-config | |
parent | dev-util/lxqt-build-tools: bump the minimum C++ compatibility level (diff) | |
download | gentoo-05b8a0768e6eee3c15d416114fc6c7fd002e8436.tar.gz gentoo-05b8a0768e6eee3c15d416114fc6c7fd002e8436.tar.bz2 gentoo-05b8a0768e6eee3c15d416114fc6c7fd002e8436.zip |
lxqt-base/lxqt-config: >=kde-plasma/kscreen-2.6.90 compatibility
- https://github.com/lxqt/lxqt-config/pull/915
Closes: https://bugs.gentoo.org/894468
Closes: https://github.com/gentoo/gentoo/pull/29587
Signed-off-by: Ghiunhan Mamut <venerix@redcorelinux.org>
Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
Diffstat (limited to 'lxqt-base/lxqt-config')
-rw-r--r-- | lxqt-base/lxqt-config/files/lxqt-config-kscreen-52690.patch | 83 | ||||
-rw-r--r-- | lxqt-base/lxqt-config/lxqt-config-1.2.0-r1.ebuild | 76 |
2 files changed, 159 insertions, 0 deletions
diff --git a/lxqt-base/lxqt-config/files/lxqt-config-kscreen-52690.patch b/lxqt-base/lxqt-config/files/lxqt-config-kscreen-52690.patch new file mode 100644 index 000000000000..6ccd4184bbbb --- /dev/null +++ b/lxqt-base/lxqt-config/files/lxqt-config-kscreen-52690.patch @@ -0,0 +1,83 @@ +Gentoo Bug: https://bugs.gentoo.org/894468 +Upstream: https://github.com/lxqt/lxqt-config/pull/915 + +From 6add4e4f0040693e7c4242fbae48c9d32007686c Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA <mtasaka@fedoraproject.org> +Date: Fri, 3 Feb 2023 08:11:04 +0900 +Subject: [PATCH] lxqt-config-monitor: add more header file inclusion for + libkscreen 5.26.90 (#915) + +With https://github.com/KDE/libkscreen/commit/94f330959b0eda775418aef7faee80ce69144e63 , +`#include <KScreen/Output>` no longer includes "mode.h" implicitly. +So in lxqt-config-monitor, files using `class KScreen::Mode` should include +`#include <KScreen/Mode>` explicitly. + +Related: #903 . +--- + lxqt-config-monitor/kscreenutils.cpp | 1 + + lxqt-config-monitor/loadsettings.cpp | 1 + + lxqt-config-monitor/monitorpicture.cpp | 1 + + lxqt-config-monitor/monitorsettingsdialog.cpp | 1 + + lxqt-config-monitor/monitorwidget.cpp | 1 + + 5 files changed, 5 insertions(+) + +diff --git a/lxqt-config-monitor/kscreenutils.cpp b/lxqt-config-monitor/kscreenutils.cpp +index 9515e789..be2634d7 100644 +--- a/lxqt-config-monitor/kscreenutils.cpp ++++ b/lxqt-config-monitor/kscreenutils.cpp +@@ -2,6 +2,7 @@ + #include "timeoutdialog.h" + + #include <KScreen/Output> ++#include <KScreen/Mode> + #include <KScreen/Config> + #include <KScreen/GetConfigOperation> + #include <KScreen/SetConfigOperation> +diff --git a/lxqt-config-monitor/loadsettings.cpp b/lxqt-config-monitor/loadsettings.cpp +index 0c7bd73c..4e9331ba 100644 +--- a/lxqt-config-monitor/loadsettings.cpp ++++ b/lxqt-config-monitor/loadsettings.cpp +@@ -23,6 +23,7 @@ + #include "kscreenutils.h" + #include <KScreen/Output> + #include <KScreen/Config> ++#include <KScreen/Mode> + #include <KScreen/GetConfigOperation> + #include <KScreen/SetConfigOperation> + #include <LXQt/Settings> +diff --git a/lxqt-config-monitor/monitorpicture.cpp b/lxqt-config-monitor/monitorpicture.cpp +index 0d06ab82..4cb14894 100644 +--- a/lxqt-config-monitor/monitorpicture.cpp ++++ b/lxqt-config-monitor/monitorpicture.cpp +@@ -24,6 +24,7 @@ + #include <QDebug> + #include <QVector2D> + #include <QRectF> ++#include <KScreen/Mode> + #include <QScrollBar> + + #include "configure.h" +diff --git a/lxqt-config-monitor/monitorsettingsdialog.cpp b/lxqt-config-monitor/monitorsettingsdialog.cpp +index 6172019f..bfd8c1dd 100644 +--- a/lxqt-config-monitor/monitorsettingsdialog.cpp ++++ b/lxqt-config-monitor/monitorsettingsdialog.cpp +@@ -28,6 +28,7 @@ + #include "kscreenutils.h" + + #include <KScreen/Output> ++#include <KScreen/Mode> + #include <QJsonObject> + #include <QJsonArray> + #include <LXQt/Settings> +diff --git a/lxqt-config-monitor/monitorwidget.cpp b/lxqt-config-monitor/monitorwidget.cpp +index e0fcf0a8..41883c25 100644 +--- a/lxqt-config-monitor/monitorwidget.cpp ++++ b/lxqt-config-monitor/monitorwidget.cpp +@@ -22,6 +22,7 @@ + #include <QComboBox> + #include <QStringBuilder> + #include <QDialogButtonBox> ++#include <KScreen/Mode> + #include <KScreen/EDID> + + #include <algorithm> diff --git a/lxqt-base/lxqt-config/lxqt-config-1.2.0-r1.ebuild b/lxqt-base/lxqt-config/lxqt-config-1.2.0-r1.ebuild new file mode 100644 index 000000000000..9c844e54daa9 --- /dev/null +++ b/lxqt-base/lxqt-config/lxqt-config-1.2.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PV="$(ver_cut 1-2)" + +inherit cmake xdg-utils + +DESCRIPTION="LXQt system configuration control center" +HOMEPAGE="https://lxqt-project.org/" + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/lxqt/${PN}.git" +else + SRC_URI="https://github.com/lxqt/${PN}/releases/download/${PV}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +fi + +LICENSE="GPL-2 GPL-2+ GPL-3 LGPL-2 LGPL-2+ LGPL-2.1+ WTFPL-2" +SLOT="0" +IUSE="+monitor +touchpad" + +BDEPEND=" + >=dev-qt/linguist-tools-5.15:5 +" +DEPEND=" + >=dev-libs/libqtxdg-3.10.0 + >=dev-qt/qtcore-5.15:5 + >=dev-qt/qtgui-5.15:5 + >=dev-qt/qtwidgets-5.15:5 + >=dev-qt/qtsvg-5.15:5 + >=dev-qt/qtx11extras-5.15:5 + >=dev-qt/qtxml-5.15:5 + =lxqt-base/liblxqt-${MY_PV}*:= + sys-libs/zlib:= + x11-apps/setxkbmap + x11-libs/libxcb:= + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXfixes + monitor? ( kde-plasma/libkscreen:5= ) + touchpad? ( + virtual/libudev:= + x11-drivers/xf86-input-libinput + x11-libs/libXi + ) +" +RDEPEND="${DEPEND}" + +# https://bugs.gentoo.org/894468 +# https://github.com/lxqt/lxqt-config/pull/915 +PATCHES=( "${FILESDIR}"/"${PN}"-kscreen-52690.patch ) + +src_configure() { + local mycmakeargs=( + -DWITH_MONITOR=$(usex monitor) + -DWITH_TOUCHPAD=$(usex touchpad) + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + doman man/*.1 liblxqt-config-cursor/man/*.1 lxqt-config-appearance/man/*.1 +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} |