diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-07 02:07:26 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-07 02:07:26 +0000 |
commit | 2198f8593ae0312add1bdccb49edfcb935e5f8a6 (patch) | |
tree | 67d79ffd7e91cc3858d188c49a65f46860a9bac7 /dev-libs/simdjson | |
parent | d285f0ab4ab38d4ea1cd0757a465db5f06764e06 (diff) |
gentoo auto-resync : 07:12:2024 - 02:07:26
Diffstat (limited to 'dev-libs/simdjson')
-rw-r--r-- | dev-libs/simdjson/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/simdjson/simdjson-3.11.0.ebuild | 105 |
2 files changed, 108 insertions, 0 deletions
diff --git a/dev-libs/simdjson/Manifest b/dev-libs/simdjson/Manifest index 7a6092b37c75..04f16907fb27 100644 --- a/dev-libs/simdjson/Manifest +++ b/dev-libs/simdjson/Manifest @@ -5,12 +5,15 @@ AUX simdjson-3.1.7-tests.patch 562 BLAKE2B f246a10e4c8af534b41314a7dd8a213f598bc AUX simdjson-3.10.0-dont-bundle-cxxopts.patch 611 BLAKE2B ada786ac90539efe8eec01b41478081bff8275ac59524ed3576bbaa43870a7a91e450ac5e1b0de1e715c8572484651217109a97f34f030f19137548bf1c2d6fb SHA512 94f18e42fe0b4b457081da6cb25ff3662de6bef5314be7361a602630430567788b8d5c1695004814d6f33eae54b0bc0ca7e37daadc2c83472b09eedcac596196 AUX simdjson-3.10.1-tests.patch 1227 BLAKE2B 9fd805f3b2eaee72b319684be528702ce00709469684a4fd6fc7194e0a65ecdb5c425175c594e4ae2d7edacbcde93ad4a6173d1f4d7e7127a33a3f382b36fd92 SHA512 b12cfbcc2b163cf216862b341a16c940cac3f977bb37b23e65761f241d8266e6cf22695e9ec9fd1d2f5a3b936d17913262b2ed0d54f4b263b716464c8353d998 AUX simdjson-3.7.1-data-optional.patch 841 BLAKE2B f207b75c0c9d81f5d35ef9da4eeb39ca00e83a0e8bfcaab717f2c67be36f185fdb6655e1f09adbb5ad543d44776ccd019792800534559fc0c24a03f6d1b4643b SHA512 a6e8aab64822e92944f3710f10f36986ffc01008528f8058902ad6e77b841c3f37ddcf48f09cd164237494185ab122e20225be97a279448eb51f44c08f8b0933 +DIST CPM_0.40.2.cmake 41017 BLAKE2B 012ee2bfc1aac818efc49a04a52e77a3f574c63a12b260b06258d5dced5fc14da860eedc0d8c13c61efc77623f92503150733fa9932276e57b8dd88839ac0de9 SHA512 5cb650049473690466c9678ac5f1c42185429c0c12f95e2bab0577c34640fa80c1331b0f46af18ecae258a9eb3c6ed980df4f1cca07650f5ca2a084a88415ffc DIST simdjson-3.10.1.gh.tar.gz 2652674 BLAKE2B 3ccfc55d5bf8ce6a7e8be1b6cb28ed7b6289e23b1d4fe8505e35a42f4ff32a0ee7f500402828164bdeacae1b72e238413575288082151723d6d0c87dcefd1fa0 SHA512 b19fde8d81eaff34b83bb41028d7ee3a408ae5bc896277148e96879b1cba1a7cfc4af0064973bcb07e2b56e0955c3a3a581910d7af23d68510374e7f297c3b7c +DIST simdjson-3.11.0.gh.tar.gz 2703217 BLAKE2B 85a747a99ff0e8cae3d91743501838742dd070e15b2430706e7244d2a304d05aa8059a2d8fbaa9feddecf1a42800aac3b0a4d0b0b0097ef1871064c75f00f482 SHA512 a08a440d62274c1e788db5ce3ac4c4f7dc06ccf29ecb3b9156e79d31febb5207b39ffab9ca8fa41e440fe8d56d857c4ad7eccbfbe2cd86b6c060729aada132ad DIST simdjson-3.9.1.gh.tar.gz 2636602 BLAKE2B 82c4956ebc902574ed1b36196097c6c07e9ca0f11384f71b260ae95ff5e7c436ce016da417197f84c21ece0ae2239fc1c4e02cf63672fae98b3fa69831de3adb SHA512 b8c091e7ecce4cdc67f538ab6715ce89bff16e68f6d56bdc37e05ab0b110b90bc6b039d5c76e2dceef9e30f35cb6ace5e4e230d4c70e928329a376f989b23bed DIST simdjson-3.9.3.gh.tar.gz 2643869 BLAKE2B f2e0f8d13a234c7ee639a57333b66a464312a20bd67f808688f6456ded7b6bdac75d857b10207adc03e05d89e701efe874d068774a90c3082d9e83792ed784d1 SHA512 893ce0cb380b1418438f5910262325031f8071c4577589a491713f91c980964b4105c1e1aa7f2b9373deed40ecf6b48fe48a1aa243151e424f138f5418e4821c DIST simdjson-3.9.4.gh.tar.gz 2646588 BLAKE2B c0f0e5d6af2342d338ea7fbe033af2715e4317cd81818fca9dfcc04cb25ffe1eb08683f04d43162305d317178b14ed5f78e8ffa115ed02c7af41b8646c4eae76 SHA512 6fa940ad60b7560d1865806195428ae17f0daf19de803bdb7bd93b0704490994ec3cddc09c9d91f2e70036c6cb34153cdc5c998e7ebee2e4504f6a23944e25c1 DIST simdjson-data-a5b13babe65c1bba7186b41b43d4cbdc20a5c470.tar.gz 6635706 BLAKE2B 563376147f18d590a176a5a0398365db1a3e677b773c018f335efa7fff05ac22ac5dc37613792082a32e6c9b91a773a590f7dfd15efa5ba660f9142b128b28a7 SHA512 168198404b11b8c76ff4f53645d7b5a88a5c72b4a5b6646b4410859ec3416ae9b37fc59f7d2f014ccc785615ea5c31dc00b145dbb1a7acb701b94029dd4ea1e1 EBUILD simdjson-3.10.1.ebuild 2331 BLAKE2B f5294e10991fe6a5287183b93fa3a9f298884c739ebc028f5e368227ea5d65352e8a4ca584702b00dc3deec3194f38e0acba31f5f33987b9224c9c1d3e67a1e5 SHA512 8c19453eff16f16d2e024d9f052c430ed6243b4e6c89ba941085cd2d426d4f321facacd774c8f40ef4a174a4839360dc4176bc7fd796c5f0d785fbcc7a06f66e +EBUILD simdjson-3.11.0.ebuild 2641 BLAKE2B 197d84a7d8cde56d577556cfa6018cb5e73257258ba0996d017aa9e8f419dfe710d8831ed3974c661f93735c4dc918a99f1c52defa1586c60d925a881b940590 SHA512 a9eae183889e3bdd8c084367c71b076ee076f681bbe25ec0bf0df7f58e3d1fe1895f8fa3a685db2c215ac5c7e9eb5033fe2c0937cd6ed4d0de4416c3b952eaeb EBUILD simdjson-3.9.1.ebuild 2370 BLAKE2B 6ad4c0a75ab0c4b8e8951551a5f74bfc0f8939bd9e1eca475a2244a7c1cf144b3c867c83ebb1f4eea90c8043cfac621d51889f9c8363e631c7d1c5d1283db387 SHA512 9e4a02079594ba7abf9e084e19c19c6ba86c473daf8c2c3d8908cf8f9cd3f0da47541cd441a4408572157106d3ad30dbd25bb82399510ffd12e896523d80c742 EBUILD simdjson-3.9.3.ebuild 2375 BLAKE2B 2654cfa619c94e80cab4f90ac71bbf5544817933d5d9f428d3fffebf2cd06e9c64bd438c96641c44e235167c55011c2f647f4d9a9c1a536dd5a2964cc43bd98c SHA512 cea5b77ab55d00737f47e1640dd9a255df4d8163eeafb6f7baf8d41d8549cfde02e21c83acfd4bb2dbd4065129686406231f72b3653406b3353c86dc1fcfad7e EBUILD simdjson-3.9.4.ebuild 2375 BLAKE2B 2654cfa619c94e80cab4f90ac71bbf5544817933d5d9f428d3fffebf2cd06e9c64bd438c96641c44e235167c55011c2f647f4d9a9c1a536dd5a2964cc43bd98c SHA512 cea5b77ab55d00737f47e1640dd9a255df4d8163eeafb6f7baf8d41d8549cfde02e21c83acfd4bb2dbd4065129686406231f72b3653406b3353c86dc1fcfad7e diff --git a/dev-libs/simdjson/simdjson-3.11.0.ebuild b/dev-libs/simdjson/simdjson-3.11.0.ebuild new file mode 100644 index 000000000000..865c3fa2a083 --- /dev/null +++ b/dev-libs/simdjson/simdjson-3.11.0.ebuild @@ -0,0 +1,105 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs cmake + +SIMDJSON_DATA_HASH="a5b13babe65c1bba7186b41b43d4cbdc20a5c470" +CPM_SIMDJSON_DATA_HASH="01efb6b90e94a7163d69e4e28efc28d96dbeaf0b" +CPM_VERSION="0.40.2" +DESCRIPTION="SIMD accelerated C++ JSON library" +HOMEPAGE=" + https://simdjson.org/ + https://github.com/simdjson/simdjson +" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_VERSION}/CPM.cmake -> CPM_${CPM_VERSION}.cmake + https://github.com/${PN}/${PN}-data/archive/${SIMDJSON_DATA_HASH}.tar.gz -> ${PN}-data-${SIMDJSON_DATA_HASH}.tar.gz +" + +LICENSE="Apache-2.0 Boost-1.0 BSD MIT" +SLOT="0/24" +KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86" +IUSE="+all-impls test tools" + +BDEPEND=" + sys-apps/file + sys-apps/grep + virtual/pkgconfig +" +DEPEND=" + tools? ( >=dev-libs/cxxopts-3.2:= ) +" + +REQUIRED_USE="test? ( tools )" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/simdjson-1.0.0-install-tools.patch" + "${FILESDIR}/simdjson-3.10.1-tests.patch" +) + +DOCS=( + AUTHORS + CONTRIBUTING.md + CONTRIBUTORS + HACKING.md + README.md +) + +src_prepare() { + # Need to make sure that CPM finds the data package + mkdir "${WORKDIR}/cpm" "${WORKDIR}/${PN}-data" || die + cp "${DISTDIR}/CPM_${CPM_VERSION}.cmake" "${WORKDIR}/cpm/CPM_${CPM_VERSION}.cmake" || die + ln -s "../${PN}-data-${SIMDJSON_DATA_HASH}" "${WORKDIR}/${PN}-data/${CPM_SIMDJSON_DATA_HASH}" || die + + sed -e 's:-Werror ::' -i cmake/developer-options.cmake || die + sed -e '/Werror/ d ; /Werror/ d ' -i tests/ondemand/compilation_failure_tests/CMakeLists.txt || die + sed -e "s:^c++ :$(tc-getCXX) :" -i singleheader/README.md || die + mv tools/{,simd}jsonpointer.cpp || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DSIMDJSON_ENABLE_THREADS:BOOL=ON + -DCPM_SOURCE_CACHE:STRING="${WORKDIR}" + -Wno-dev + ) + use test && mycmakeargs+=( + -DSIMDJSON_TESTS:BOOL=ON + ) + + if use tools; then + mycmakeargs+=( + -DSIMDJSON_DEVELOPER_MODE:BOOL=ON + -DSIMDJSON_ALLOW_DOWNLOADS:BOOL=OFF + -DSIMDJSON_GOOGLE_BENCHMARKS:BOOL=OFF + -DSIMDJSON_COMPETITION:BOOL=OFF + -DSIMDJSON_TOOLS:BOOL=ON + ) + elif ! use test; then + mycmakeargs+=( + -DSIMDJSON_DEVELOPER_MODELBOOL=OFF + ) + fi + + if use all-impls; then + local -a impls=("fallback") + if use amd64; then + impls+=("westmere" "haswell" "icelake") + elif use arm64; then + impls+=("arm64") + elif use ppc64; then + impls+=("ppc64") + fi + + mycmakeargs+=( + -DSIMDJSON_IMPLEMENTATION:STRING=$(printf '%s;' "${impls[@]}") + ) + fi + + cmake_src_configure +} |