diff options
Diffstat (limited to 'dev-cpp')
| -rw-r--r-- | dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild | 20 | ||||
| -rw-r--r-- | dev-cpp/valijson/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/valijson/valijson-1.1.0.ebuild | 21 |
3 files changed, 40 insertions, 2 deletions
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 a8ab0d6b1534..1bc5a3f37c09 100644 --- a/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild +++ b/dev-cpp/clucene/clucene-2.3.3.4-r11.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 MY_PN="${PN}"-core MY_P="${MY_PN}"-"${PV}" -inherit cmake +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" @@ -46,9 +46,19 @@ src_prepare() { -e 's%\(:\| -I\)${prefix}/include/CLucene/ext%%g' \ ./src/core/libclucene-core.pc.cmake || die rm -rf src/ext || die + + # do compile-only tests while cross-compiling + # the EXITCODE for each test can be overrided otherwise + if tc-is-cross-compiler; then + sed -i \ + -e '/CHECK_CXX_SOURCE_/s/_RUNS/_COMPILES/' \ + src/shared/cmake/*.cmake || die + fi } src_configure() { + use static-libs && lto-guarantee-fat + # Disabled threads: see upstream bug # https://sourceforge.net/p/clucene/bugs/197/ local mycmakeargs=( @@ -64,3 +74,9 @@ src_configure() { cmake_src_configure } + +src_install() { + cmake_src_install + + use static-libs && strip-lto-bytecode +} diff --git a/dev-cpp/valijson/Manifest b/dev-cpp/valijson/Manifest index ad52dfdcb49b..5db18cf5fa0a 100644 --- a/dev-cpp/valijson/Manifest +++ b/dev-cpp/valijson/Manifest @@ -1 +1,2 @@ DIST valijson-1.0.6.tar.gz 739545 BLAKE2B 54a7c81db610cb8a2eab8d1ed24e0e7e3d6976a52a7a1e0026a97bb90bc5479467dc44a895ce7ba0c51e2afa6f7c7c2f0bc2699f0a60daec73d7e7b5b11d4607 SHA512 d62fd57c10ef5343f2ba16c23f0c327ead21dabe637a9100c3a4ab88920b7feb55b53f6abc966da37e3cebbb44c19bc2588470dd036f0ff6e58054b41b71758a +DIST valijson-1.1.0.tar.gz 740497 BLAKE2B e03fdf7838145df065699be48569d2e7b1e054f436f5ad5fbf91991c2cfb88eed1dba6250f7ff24c26c18aeb451efdd1dccb85df5013005734daae9d76d7855b SHA512 4916e12dc45312462a7abbc2707f5c1edfe129feb03e73afebf11a80ac6fb2f4469fdb4d83174d1c0565f8553ff958b1dc0ea78132d7063bbf640de0ade1676b diff --git a/dev-cpp/valijson/valijson-1.1.0.ebuild b/dev-cpp/valijson/valijson-1.1.0.ebuild new file mode 100644 index 000000000000..0bfaefefc003 --- /dev/null +++ b/dev-cpp/valijson/valijson-1.1.0.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Header-only C++ library for JSON Schema validation" +HOMEPAGE="https://github.com/tristanpenman/valijson" +SRC_URI="https://github.com/tristanpenman/valijson/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2 Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +# Bundled test dependencies are included as submodules, so not in github +# autogenerated tarballs. The dependencies are largely packaged, but +# needs patching to use those. +RESTRICT="test" + +# unused inspector/CMakeLists.txt (bug #957461) +CMAKE_QA_COMPAT_SKIP=1 |
