public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/xembed-sni-proxy/, kde-plasma/xembed-sni-proxy/files/
Date: Sat,  2 Dec 2023 19:25:02 +0000 (UTC)	[thread overview]
Message-ID: <1701533177.f0224c7b500dcf4f038a2dd1e965b181ec0d9c78.asturm@gentoo> (raw)

commit:     f0224c7b500dcf4f038a2dd1e965b181ec0d9c78
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  2 15:58:03 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 16:06:17 2023 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=f0224c7b

kde-plasma/xembed-sni-proxy: Fix standalone-build patch for 9999

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/xembed-sni-proxy-5.90.0-standalone.patch | 60 ++++++++++++++++++++++
 .../xembed-sni-proxy/xembed-sni-proxy-9999.ebuild  | 16 +++---
 2 files changed, 68 insertions(+), 8 deletions(-)

diff --git a/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.90.0-standalone.patch b/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.90.0-standalone.patch
new file mode 100644
index 0000000000..3ea7e43468
--- /dev/null
+++ b/kde-plasma/xembed-sni-proxy/files/xembed-sni-proxy-5.90.0-standalone.patch
@@ -0,0 +1,60 @@
+From 53bea19f57029c2953d6397f20620afcb9a07626 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
+
+---
+ xembed-sni-proxy/CMakeLists.txt | 36 +++++++++++++++++++++++++++++++++
+ 1 file changed, 36 insertions(+)
+
+diff --git a/xembed-sni-proxy/CMakeLists.txt b/xembed-sni-proxy/CMakeLists.txt
+index f1677e754c..6e6f3b0590 100644
+--- a/xembed-sni-proxy/CMakeLists.txt
++++ b/xembed-sni-proxy/CMakeLists.txt
+@@ -1,3 +1,35 @@
++project(xembed-sni-proxy)
++
++if(${CMAKE_SOURCE_DIR} STREQUAL ${xembed-sni-proxy_SOURCE_DIR})
++    set(PROJECT_VERSION "5.90.0")
++    set(PROJECT_VERSION_MAJOR 6)
++
++    cmake_minimum_required(VERSION 3.16)
++
++    set(QT_MIN_VERSION "6.5.0")
++    set(KF6_MIN_VERSION "5.240")
++    find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core DBus Gui)
++    find_package(ECM ${KF6_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(KF6WindowSystem ${KF6_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.90.0")
++    set(PROJECT_VERSION_MAJOR 6)
++endif()
++
+ add_definitions(-DQT_NO_CAST_TO_ASCII
+ -DQT_NO_CAST_FROM_ASCII
+ -DQT_NO_CAST_FROM_BYTEARRAY)
+@@ -67,3 +99,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  ${KDE_INSTALL_SYSTEMDUSERUNITDIR})
++
++if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
++    feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
++endif()
+-- 
+2.43.0
+

diff --git a/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-9999.ebuild b/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-9999.ebuild
index b2e79ed1e7..3c17d30091 100644
--- a/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-9999.ebuild
+++ b/kde-plasma/xembed-sni-proxy/xembed-sni-proxy-9999.ebuild
@@ -28,11 +28,11 @@ RDEPEND="${DEPEND}
 "
 BDEPEND=">=kde-frameworks/extra-cmake-modules-${KFMIN}:0"
 
-PATCHES=( "${FILESDIR}/${PN}-5.24.80-standalone.patch" )
-
-src_prepare() {
-	cmake_src_prepare
-
-	sed -e "/set/s/GENTOO_PV/$(ver_cut 1-3)/" \
-		-i ${PN}/CMakeLists.txt || die "Failed to prepare CMakeLists.txt"
-}
+PATCHES=( "${FILESDIR}/${PN}-5.90.0-standalone.patch" )
+
+# src_prepare() {
+# 	cmake_src_prepare
+# 
+# 	sed -e "/set/s/GENTOO_PV/$(ver_cut 1-3)/" \
+# 		-i ${PN}/CMakeLists.txt || die "Failed to prepare CMakeLists.txt"
+# }


             reply	other threads:[~2023-12-02 19:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-02 19:25 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-01-18 15:50 [gentoo-commits] proj/kde:master commit in: kde-plasma/xembed-sni-proxy/, kde-plasma/xembed-sni-proxy/files/ Andreas Sturmlechner
2020-09-25  5:49 Andreas Sturmlechner
2019-01-13 12:16 Andreas Sturmlechner
2018-10-22 20:52 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1701533177.f0224c7b500dcf4f038a2dd1e965b181ec0d9c78.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox