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@protonmail.com>
This commit is contained in:
Kostadin Shishmanov
2025-03-19 17:55:59 +02:00
parent 4c76648585
commit d02551ce51
2 changed files with 24 additions and 0 deletions

View File

@@ -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"

View File

@@ -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)