commit:     346cd62ee1a3f4b4ce3bd668172ed8f3198ebcbc
Author:     Brahmajit Das <listout <AT> listout <DOT> xyz>
AuthorDate: Thu Jun 26 03:24:37 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 26 15:26:17 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=346cd62e

app-editors/neovim: Fix hardcoded usage of ccache

Use the cmake variable CACHE_PRG to turn off usage of ccache and sccache
by default if they are found on the system.

Refer: 
https://github.com/neovim/neovim/blob/f0757ee590cc2ebc60cf0fe6488a0421d5bfeaf9/CONTRIBUTING.md?plain=1#L48
Closes: https://bugs.gentoo.org/906019
Signed-off-by: Brahmajit Das <listout <AT> listout.xyz>
Part-of: https://github.com/gentoo/gentoo/pull/42755
Closes: https://github.com/gentoo/gentoo/pull/42755
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-editors/neovim/neovim-0.11.1.ebuild | 2 ++
 app-editors/neovim/neovim-0.11.2.ebuild | 2 ++
 app-editors/neovim/neovim-9999.ebuild   | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/app-editors/neovim/neovim-0.11.1.ebuild 
b/app-editors/neovim/neovim-0.11.1.ebuild
index ed88d281e142..a45901c20508 100644
--- a/app-editors/neovim/neovim-0.11.1.ebuild
+++ b/app-editors/neovim/neovim-0.11.1.ebuild
@@ -94,6 +94,8 @@ src_configure() {
                -DENABLE_LTO=OFF
                -DPREFER_LUA=$(usex lua_single_target_luajit no 
"$(lua_get_version)")
                -DLUA_PRG="${LUA}"
+               # bug 906019: fix hardcoded usage of ccache
+               -DCACHE_PRG=OFF
        )
        cmake_src_configure
 }

diff --git a/app-editors/neovim/neovim-0.11.2.ebuild 
b/app-editors/neovim/neovim-0.11.2.ebuild
index 7bce36689dd6..7c834339ebea 100644
--- a/app-editors/neovim/neovim-0.11.2.ebuild
+++ b/app-editors/neovim/neovim-0.11.2.ebuild
@@ -94,6 +94,8 @@ src_configure() {
                -DENABLE_LTO=OFF
                -DPREFER_LUA=$(usex lua_single_target_luajit no 
"$(lua_get_version)")
                -DLUA_PRG="${LUA}"
+               # bug 906019: fix hardcoded usage of ccache
+               -DCACHE_PRG=OFF
        )
        cmake_src_configure
 }

diff --git a/app-editors/neovim/neovim-9999.ebuild 
b/app-editors/neovim/neovim-9999.ebuild
index 92ad4e2b9aa0..6187ca198531 100644
--- a/app-editors/neovim/neovim-9999.ebuild
+++ b/app-editors/neovim/neovim-9999.ebuild
@@ -94,6 +94,8 @@ src_configure() {
                -DENABLE_LTO=OFF
                -DPREFER_LUA=$(usex lua_single_target_luajit no 
"$(lua_get_version)")
                -DLUA_PRG="${LUA}"
+               # bug 906019: fix hardcoded usage of ccache
+               -DCACHE_PRG=OFF
        )
        cmake_src_configure
 }

Reply via email to