commit:     c68ed27c2fd8e755c5857b4db6fd2ed1eab08f83
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Sun Mar  8 07:41:42 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 11 13:43:37 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c68ed27c

dev-cpp/clucene: use dot-a.eclass

... to avoid installing broken static libraries w/ LTO.

Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/249
Merges: https://codeberg.org/gentoo/gentoo/pulls/249
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild 
b/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild
index 6881bb06b5b9..1bc5a3f37c09 100644
--- a/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild
+++ b/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 MY_PN="${PN}"-core
 MY_P="${MY_PN}"-"${PV}"
-inherit cmake toolchain-funcs
+inherit cmake dot-a toolchain-funcs
 
 DESCRIPTION="High-performance, full-featured text search engine based off of 
lucene in C++"
 HOMEPAGE="https://clucene.sourceforge.net";
@@ -57,6 +57,8 @@ src_prepare() {
 }
 
 src_configure() {
+       use static-libs && lto-guarantee-fat
+
        # Disabled threads: see upstream bug
        # https://sourceforge.net/p/clucene/bugs/197/
        local mycmakeargs=(
@@ -72,3 +74,9 @@ src_configure() {
 
        cmake_src_configure
 }
+
+src_install() {
+       cmake_src_install
+
+       use static-libs && strip-lto-bytecode
+}

Reply via email to