summaryrefslogtreecommitdiff
path: root/dev-cpp/lucene++/lucene++-3.0.9-r1.ebuild
diff options
context:
space:
mode:
authorHolger Hoffstätte <holger@applied-asynchrony.com>2025-09-27 14:55:56 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2025-09-30 16:31:50 +0200
commitbbc1170fe2b7397582ccedf95dc8eeb8eed629df (patch)
tree10f7b7a91ce29b7ac050ca3ef06294d3f17d72dd /dev-cpp/lucene++/lucene++-3.0.9-r1.ebuild
parent8d86cea08244dab3d45172137f674cdc087a6868 (diff)
downloadgentoo-bbc1170fe2b7397582ccedf95dc8eeb8eed629df.tar.gz
gentoo-bbc1170fe2b7397582ccedf95dc8eeb8eed629df.tar.bz2
gentoo-bbc1170fe2b7397582ccedf95dc8eeb8eed629df.zip
dev-cpp/lucene++: fixes for boost-1.89, cmake4, gtest & gcc-15
Closes: https://bugs.gentoo.org/957220 Closes: https://bugs.gentoo.org/963333 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/43958 Closes: https://github.com/gentoo/gentoo/pull/43958 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-cpp/lucene++/lucene++-3.0.9-r1.ebuild')
-rw-r--r--dev-cpp/lucene++/lucene++-3.0.9-r1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-cpp/lucene++/lucene++-3.0.9-r1.ebuild b/dev-cpp/lucene++/lucene++-3.0.9-r1.ebuild
new file mode 100644
index 000000000000..14b3fda60ca6
--- /dev/null
+++ b/dev-cpp/lucene++/lucene++-3.0.9-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 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"
+)
+
+src_configure() {
+ # Can't be tested with LTO because of ODR issues in test mocks
+ filter-lto
+
+ 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 \
+ --gtest_filter="-ParallelMultiSearcherTest*:SortTest.*:"
+}