commit:     ecce1571fdd32054b3320e04eca671411723d315
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 23 19:07:21 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Nov 24 21:11:07 2022 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=ecce1571

app-editors/kile: fix handling of misc files installation

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

 .../kile/files/kile-2.9.93_p20221123-cmake.patch   | 31 ++++++++++++++++++++++
 app-editors/kile/kile-9999.ebuild                  | 10 ++-----
 2 files changed, 33 insertions(+), 8 deletions(-)

diff --git a/app-editors/kile/files/kile-2.9.93_p20221123-cmake.patch 
b/app-editors/kile/files/kile-2.9.93_p20221123-cmake.patch
new file mode 100644
index 0000000000..0095adf954
--- /dev/null
+++ b/app-editors/kile/files/kile-2.9.93_p20221123-cmake.patch
@@ -0,0 +1,31 @@
+From 2974fba837aef46711d9e1b26cd367aab68ba53a Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Wed, 19 Dec 2018 13:36:12 +0100
+Subject: [PATCH] Disable install misc files by cmake
+
+AUTHORS, README, Changelog etc. are handled by distribution packages.
+---
+ CMakeLists.txt | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 91a732ab..c69c168c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -114,13 +114,6 @@ install(
+               kile2.0-5_upd.pl
+       DESTINATION ${KDE_INSTALL_DATAROOTDIR}/kconf_update)
+ 
+-install(FILES
+-              AUTHORS
+-              ChangeLog
+-              README
+-              README.cwl
+-              kile-remote-control.txt
+-      DESTINATION ${KDE_INSTALL_DATAROOTDIR}/doc/kile)
+ 
+ ki18n_install(po)
+ 
+-- 
+2.38.1
+

diff --git a/app-editors/kile/kile-9999.ebuild 
b/app-editors/kile/kile-9999.ebuild
index d8da13a4e4..1e921508fd 100644
--- a/app-editors/kile/kile-9999.ebuild
+++ b/app-editors/kile/kile-9999.ebuild
@@ -58,17 +58,11 @@ RDEPEND="${DEPEND}
        )
 "
 
-S=${WORKDIR}/${MY_P}
-
 DOCS=( kile-remote-control.txt )
 
-src_prepare() {
-       ecm_src_prepare
+S=${WORKDIR}/${MY_P}
 
-       # I know upstream wants to help us but it doesn't work..
-       sed -e '/INSTALL( FILES AUTHORS/s/^/#DISABLED /' \
-               -i CMakeLists.txt || die
-}
+PATCHES=( "${FILESDIR}/${PN}-2.9.93_p20221123-cmake.patch" )
 
 src_configure() {
        local mycmakeargs=(

Reply via email to