diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-02-16 10:59:25 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-02-16 15:37:27 +0100 |
commit | 156763c6f4f0888a3f226d8419dc02f8b15be407 (patch) | |
tree | 15aef51e92b9cfc53ef0f763fabd7a5708e6946b /kde-plasma | |
parent | kde-plasma/xdg-desktop-portal-kde: 5.21.0 version bump (diff) | |
download | gentoo-156763c6f4f0888a3f226d8419dc02f8b15be407.tar.gz gentoo-156763c6f4f0888a3f226d8419dc02f8b15be407.tar.bz2 gentoo-156763c6f4f0888a3f226d8419dc02f8b15be407.zip |
kde-plasma/xembed-sni-proxy: 5.21.0 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma')
3 files changed, 104 insertions, 0 deletions
diff --git a/kde-plasma/xembed-sni-proxy/Manifest b/kde-plasma/xembed-sni-proxy/Manifest index 9d60abe75ce1..2a03bc41241a 100644 --- a/kde-plasma/xembed-sni-proxy/Manifest +++ b/kde-plasma/xembed-sni-proxy/Manifest @@ -1 +1,2 @@ DIST plasma-workspace-5.20.5.tar.xz 9041964 BLAKE2B b0bef6f74999d503064d55fdc670bd320a141c4619c0cfb7491158485096dfd636ad31dfbb4e9d7be3d86eca7b52bce97acb7aefe57377cce9e6a5ce1ad3cb9b SHA512 bd63502fdaa79deb380d254a3649a2810e4b2c6e748e9a38606f561cc46573a6e75631584a340a220742135f4682f9deea28c78b7fe4ad88ee6491f190b3212f +DIST plasma-workspace-5.21.0.tar.xz 9710020 BLAKE2B 8b041e723f9e69d176d6d63825b469e4e848b9dd10f588d5523f5c03562385e56d1e4c0930a3d108929396542b8d6dddb2e1fe2fe3721e815b00b9e603068d21 SHA512 c3739f9b689e08912f78ffb9ba1ba4ef9661c6aabf9e5a359604b5683917f35c4b47b94bbea684c21ff622507ec9196b6f532f5530fb78311f5007ff32d1f83b diff --git a/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.20.80-standalone.patch b/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.20.80-standalone.patch new file mode 100644 index 000000000000..a1f09aa93c4a --- /dev/null +++ b/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.20.80-standalone.patch @@ -0,0 +1,60 @@ +From da1c5074e390b2ceca3f632f14adfba55def45ab Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Thu, 24 Sep 2020 22:34:28 +0200 +Subject: [PATCH] xembed-sni-proxy: Allow standalone build + +--- + CMakeLists.txt | 36 +++++++++++++++++++++++++++++++++ + 1 file changed, 36 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 443ff07c1..ba15b9ea5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,3 +1,35 @@ ++project(xembed-sni-proxy) ++ ++if(${CMAKE_SOURCE_DIR} STREQUAL ${xembed-sni-proxy_SOURCE_DIR}) ++ set(PROJECT_VERSION "GENTOO_PV") ++ set(PROJECT_VERSION_MAJOR 5) ++ ++ cmake_minimum_required(VERSION 3.0) ++ ++ set(QT_MIN_VERSION "5.15.0") ++ set(KF5_MIN_VERSION "5.74") ++ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core DBus X11Extras) ++ find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) ++ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) ++ ++ include(KDEInstallDirs) ++ include(KDECMakeSettings) ++ include(KDECompilerSettings NO_POLICY_SCOPE) ++ include(FeatureSummary) ++ include(ECMQtDeclareLoggingCategory) ++ include(ECMConfiguredInstall) ++ ++ find_package(KF5WindowSystem ${KF5_MIN_VERSION} REQUIRED) ++ find_package(X11 REQUIRED) ++ find_package(XCB MODULE REQUIRED COMPONENTS XCB RANDR) ++ set_package_properties(XCB PROPERTIES TYPE REQUIRED) ++ ++ configure_file(../config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h) ++else() ++ set(PROJECT_VERSION "5.20.80") ++ set(PROJECT_VERSION_MAJOR 5) ++endif() ++ + add_definitions(-DQT_NO_CAST_TO_ASCII + -DQT_NO_CAST_FROM_ASCII + -DQT_NO_URL_CAST_FROM_STRING +@@ -65,3 +97,7 @@ install(TARGETS xembedsniproxy ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) + install(FILES xembedsniproxy.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR}) + + ecm_install_configured_files(INPUT plasma-xembedsniproxy.service.in @ONLY DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR}) ++ ++if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") ++ feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) ++endif() +-- +2.28.0 + diff --git a/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-5.21.0.ebuild b/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-5.21.0.ebuild new file mode 100644 index 000000000000..20c70be4cbba --- /dev/null +++ b/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-5.21.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +KDE_ORG_NAME="plasma-workspace" +KFMIN=5.78.0 +PVCUT=$(ver_cut 1-3) +QTMIN=5.15.2 +inherit cmake kde.org + +DESCRIPTION="Legacy xembed tray icons support for SNI-only system trays" +HOMEPAGE="https://invent.kde.org/plasma/plasma-workspace/-/blob/master/xembed-sni-proxy/Readme.md" + +LICENSE="GPL-2" +SLOT="5" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +DEPEND=" + >=dev-qt/qtcore-${QTMIN}:5 + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtx11extras-${QTMIN}:5 + >=kde-frameworks/extra-cmake-modules-${KFMIN}:5 + >=kde-frameworks/kwindowsystem-${KFMIN}:5[X] + x11-libs/libxcb + x11-libs/libXtst + x11-libs/xcb-util-image +" +RDEPEND="${DEPEND} + !kde-plasma/xembed-sni-proxy:0 +" + +S="${S}/${PN}" + +PATCHES=( "${FILESDIR}/${PN}-5.20.80-standalone.patch" ) + +src_prepare() { + cmake_src_prepare + + sed -e "/set/s/GENTOO_PV/$(ver_cut 1-3)/" \ + -i CMakeLists.txt || die "Failed to prepare CMakeLists.txt" +} |