diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-04-09 11:26:47 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-04-09 11:26:47 +0000 |
| commit | 24c79cd8fc95be8da7276e7fdb2deaad09deb016 (patch) | |
| tree | b234e68abf40821bf4a0453f643cf430dcaed7ee /dev-cpp/lucene++/lucene++-3.0.9.ebuild | |
| parent | 21b87b40e8f483c86b6bfb5ec617089fdcbba616 (diff) | |
| download | srcux-24c79cd8fc95be8da7276e7fdb2deaad09deb016.tar.gz srcux-24c79cd8fc95be8da7276e7fdb2deaad09deb016.tar.xz srcux-24c79cd8fc95be8da7276e7fdb2deaad09deb016.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/lucene++/lucene++-3.0.9.ebuild')
| -rw-r--r-- | dev-cpp/lucene++/lucene++-3.0.9.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-cpp/lucene++/lucene++-3.0.9.ebuild b/dev-cpp/lucene++/lucene++-3.0.9.ebuild new file mode 100644 index 000000000000..649549be2b75 --- /dev/null +++ b/dev-cpp/lucene++/lucene++-3.0.9.ebuild @@ -0,0 +1,46 @@ +# 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}" + +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" +) + +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.*:" +} |
