commit:     b93320426242a4e1c4a6d7d623c4fda0bb944e93
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  6 12:26:16 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Aug  7 20:38:43 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9332042

kde-frameworks/ktexteditor: Drop unused dependency

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

 .../files/ktexteditor-5.96.0-unused-dep.patch      | 24 ++++++++++
 .../ktexteditor/ktexteditor-5.96.0-r1.ebuild       | 56 ++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git 
a/kde-frameworks/ktexteditor/files/ktexteditor-5.96.0-unused-dep.patch 
b/kde-frameworks/ktexteditor/files/ktexteditor-5.96.0-unused-dep.patch
new file mode 100644
index 000000000000..8107b3cbc12f
--- /dev/null
+++ b/kde-frameworks/ktexteditor/files/ktexteditor-5.96.0-unused-dep.patch
@@ -0,0 +1,24 @@
+From 509ca8a46ff46ef3e06407b90a8b48af9655fcce Mon Sep 17 00:00:00 2001
+From: Christoph Cullmann <cullm...@kde.org>
+Date: Sat, 2 Jul 2022 22:34:15 +0200
+Subject: [PATCH] remove unused library
+
+---
+ CMakeLists.txt | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2e9d77e8..c6d9a327 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -69,7 +69,6 @@ find_package(KF5KIO ${KF_DEP_VERSION} REQUIRED)
+ find_package(KF5Parts ${KF_DEP_VERSION} REQUIRED)
+ find_package(KF5Sonnet ${KF_DEP_VERSION} REQUIRED)
+ find_package(KF5SyntaxHighlighting ${KF_DEP_VERSION} REQUIRED)
+-find_package(KF5TextWidgets ${KF_DEP_VERSION} REQUIRED)
+ 
+ if (ENABLE_KAUTH)
+     find_package(KF5Auth ${KF_DEP_VERSION} REQUIRED)
+-- 
+GitLab
+

diff --git a/kde-frameworks/ktexteditor/ktexteditor-5.96.0-r1.ebuild 
b/kde-frameworks/ktexteditor/ktexteditor-5.96.0-r1.ebuild
new file mode 100644
index 000000000000..851a891a7b6a
--- /dev/null
+++ b/kde-frameworks/ktexteditor/ktexteditor-5.96.0-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PVCUT=$(ver_cut 1-2)
+QTMIN=5.15.4
+VIRTUALX_REQUIRED="test"
+inherit ecm frameworks.kde.org
+
+DESCRIPTION="Framework providing a full text editor component"
+
+LICENSE="LGPL-2+"
+KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
+IUSE="+editorconfig"
+
+RESTRICT="test"
+
+DEPEND="
+       >=dev-qt/qtdeclarative-${QTMIN}:5
+       >=dev-qt/qtgui-${QTMIN}:5
+       >=dev-qt/qtprintsupport-${QTMIN}:5
+       >=dev-qt/qtwidgets-${QTMIN}:5
+       >=dev-qt/qtxml-${QTMIN}:5
+       =kde-frameworks/karchive-${PVCUT}*:5
+       =kde-frameworks/kauth-${PVCUT}*:5
+       =kde-frameworks/kcodecs-${PVCUT}*:5
+       =kde-frameworks/kcompletion-${PVCUT}*:5
+       =kde-frameworks/kconfig-${PVCUT}*:5
+       =kde-frameworks/kconfigwidgets-${PVCUT}*:5
+       =kde-frameworks/kcoreaddons-${PVCUT}*:5
+       =kde-frameworks/kguiaddons-${PVCUT}*:5
+       =kde-frameworks/ki18n-${PVCUT}*:5
+       =kde-frameworks/kiconthemes-${PVCUT}*:5
+       =kde-frameworks/kio-${PVCUT}*:5
+       =kde-frameworks/kitemviews-${PVCUT}*:5
+       =kde-frameworks/kjobwidgets-${PVCUT}*:5
+       =kde-frameworks/kparts-${PVCUT}*:5
+       =kde-frameworks/kwidgetsaddons-${PVCUT}*:5
+       =kde-frameworks/kxmlgui-${PVCUT}*:5
+       =kde-frameworks/sonnet-${PVCUT}*:5
+       =kde-frameworks/syntax-highlighting-${PVCUT}*:5
+       editorconfig? ( app-text/editorconfig-core-c )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="test? ( >=kde-frameworks/kservice-${PVCUT}:5 )"
+
+PATCHES=( "${FILESDIR}/${P}-unused-dep.patch" )
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake_use_find_package editorconfig EditorConfig)
+       )
+
+       ecm_src_configure
+}

Reply via email to