commit:     d02551ce514be2041d24bbe0750743f13f935148
Author:     Kostadin Shishmanov <kostadinshishmanov <AT> protonmail <DOT> com>
AuthorDate: Wed Mar 19 15:55:59 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Mar 19 15:55:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d02551ce

net-im/chatterino: disable autofinding of ccache

Users in Gentoo enable ccache with FEATURES="ccache" if required, it
shouldn't be enabled automagically by a project.

Signed-off-by: Kostadin Shishmanov <kostadinshishmanov <AT> protonmail.com>

 net-im/chatterino/chatterino-2.5.2-r1.ebuild         |  4 ++++
 .../files/chatterino-2.5.2-disable-ccache.patch      | 20 ++++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/net-im/chatterino/chatterino-2.5.2-r1.ebuild 
b/net-im/chatterino/chatterino-2.5.2-r1.ebuild
index 4cb662b0b..51de609f9 100644
--- a/net-im/chatterino/chatterino-2.5.2-r1.ebuild
+++ b/net-im/chatterino/chatterino-2.5.2-r1.ebuild
@@ -59,6 +59,10 @@ DEPEND="
 "
 BDEPEND="dev-qt/qttools:6[linguist]"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.5.2-disable-ccache.patch
+)
+
 src_prepare() {
        rmdir --ignore-fail-on-non-empty ./lib/*/ || die "can't remove stubbed 
libdirs"
 

diff --git a/net-im/chatterino/files/chatterino-2.5.2-disable-ccache.patch 
b/net-im/chatterino/files/chatterino-2.5.2-disable-ccache.patch
new file mode 100644
index 000000000..6d27d38b5
--- /dev/null
+++ b/net-im/chatterino/files/chatterino-2.5.2-disable-ccache.patch
@@ -0,0 +1,20 @@
+diff --git ./CMakeLists.txt ./CMakeLists.txt
+index ad9bdef..4feb6e1 100644
+--- ./CMakeLists.txt
++++ ./CMakeLists.txt
+@@ -60,15 +60,6 @@ else()
+     set(MAJOR_QT_VERSION "5")
+ endif()
+ 
+-find_program(CCACHE_PROGRAM ccache)
+-find_program(SCCACHE_PROGRAM sccache)
+-if (SCCACHE_PROGRAM)
+-    set(_compiler_launcher ${SCCACHE_PROGRAM})
+-elseif (CCACHE_PROGRAM)
+-    set(_compiler_launcher ${CCACHE_PROGRAM})
+-endif ()
+-
+-
+ # Alternate linker code taken from heavyai/heavydb
+ # 
https://github.com/heavyai/heavydb/blob/0517d99b467806f6af7b4c969e351368a667497d/CMakeLists.txt#L87-L103
+ macro(set_alternate_linker linker)

Reply via email to