gentoo/dev-cpp/lucene++/lucene++-3.0.9-r2.ebuild
Holger Hoffstätte a69277266d
dev-cpp/lucene++: more test fixes
- fix thread pool shutdown
- reenable previously excluded tests
- fix ODR violations in test mocks, unfilter LTO
- properly handle deprecated boost-bind version
- remove precompiled header support

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/739
Merges: https://codeberg.org/gentoo/gentoo/pulls/739
Signed-off-by: Sam James <sam@gentoo.org>
2026-04-26 20:51:09 +01:00

56 lines
1.5 KiB
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_P="LucenePlusPlus-rel_${PV}"
inherit edo cmake flag-o-matic
DESCRIPTION="C++ port of Lucene library, a high-performance, full-featured text search engine"
HOMEPAGE="https://github.com/luceneplusplus/LucenePlusPlus"
SRC_URI="https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="|| ( LGPL-3 Apache-2.0 )"
SLOT="0"
KEYWORDS="amd64 ~hppa ~loong ppc ppc64 ~sparc x86"
IUSE="debug test"
RESTRICT="!test? ( test )"
DEPEND="dev-libs/boost:=[zlib]"
RDEPEND="${DEPEND}"
BDEPEND="
test? ( dev-cpp/gtest )
"
PATCHES=(
"${FILESDIR}/${PN}-3.0.7-boost-1.85.patch"
"${FILESDIR}/${PN}-3.0.9-boost-1.87.patch"
"${FILESDIR}/${PN}-3.0.9-pkgconfig.patch"
"${FILESDIR}/${PN}-3.0.9-tests-gtest-cstdint.patch"
"${FILESDIR}/${PN}-3.0.9-cmake4.patch"
"${FILESDIR}/${PN}-3.0.9-system-gtest.patch"
"${FILESDIR}/${PN}-3.0.9-gcc15.patch"
"${FILESDIR}/${PN}-3.0.9-boost-1.89.patch"
"${FILESDIR}/${PN}-3.0.9-boost-1.90.patch"
"${FILESDIR}/${PN}-3.0.9-no-inline.patch"
"${FILESDIR}/${PN}-3.0.9-no-pch.patch"
"${FILESDIR}/${PN}-3.0.9-boost-bind.patch"
"${FILESDIR}/${PN}-3.0.9-odr-fixes.patch"
"${FILESDIR}/${PN}-3.0.9-threadpool-shutdown.patch"
)
src_configure() {
local mycmakeargs=(
-DENABLE_DEMO=OFF
-DENABLE_TEST=$(usex test)
)
cmake_src_configure
}
src_test() {
edo "${BUILD_DIR}"/src/test/lucene++-tester \
--test_dir="${S}"/src/test/testfiles
}