Diff clucene-2.3.3.4-r9 with a clucene-2.3.3.4-r11

/usr/portage/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild 2026-03-17 11:46:07.459319171 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6 6
MY_PN="${PN}"-core
7 7
MY_P="${MY_PN}"-"${PV}"
8
inherit cmake
8
inherit cmake dot-a toolchain-funcs
9 9

  
10 10
DESCRIPTION="High-performance, full-featured text search engine based off of lucene in C++"
11 11
HOMEPAGE="https://clucene.sourceforge.net"
12
SRC_URI="https://downloads.sourceforge.net/clucene/${MY_P}.tar.gz"
12
SRC_URI="https://downloads.sourceforge.net/project/${PN}/${MY_PN}-unstable/$(ver_cut 1-2)/${MY_P}.tar.gz"
13 13
S="${WORKDIR}/${MY_PN}-${PV}"
14 14

  
15 15
LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
......
31 31
	"${FILESDIR}/${P}-musl-pthread.patch"
32 32
	"${FILESDIR}/${P}-libcxx.patch"
33 33
	"${FILESDIR}/${P}-fix-binary-function.patch"
34
	"${FILESDIR}/${P}-cmake4.patch"
34 35
)
35 36

  
36 37
src_prepare() {
......
40 41
	sed -i \
41 42
		-e '/ADD_SUBDIRECTORY (src\/ext)/d' \
42 43
		CMakeLists.txt || die
44
	# don't reference non-existent paths in .pc file (bug #950316)
45
	sed -i \
46
		-e 's%\(:\| -I\)${prefix}/include/CLucene/ext%%g' \
47
		./src/core/libclucene-core.pc.cmake || die
43 48
	rm -rf src/ext || die
49

  
50
	# do compile-only tests while cross-compiling
51
	# the EXITCODE for each test can be overrided otherwise
52
	if tc-is-cross-compiler; then
53
		sed -i \
54
			-e '/CHECK_CXX_SOURCE_/s/_RUNS/_COMPILES/' \
55
			src/shared/cmake/*.cmake || die
56
	fi
44 57
}
45 58

  
46 59
src_configure() {
60
	use static-libs && lto-guarantee-fat
61

  
47 62
	# Disabled threads: see upstream bug
48 63
	# https://sourceforge.net/p/clucene/bugs/197/
49 64
	local mycmakeargs=(
......
59 74

  
60 75
	cmake_src_configure
61 76
}
77

  
78
src_install() {
79
	cmake_src_install
80

  
81
	use static-libs && strip-lto-bytecode
82
}
Thank you!