From 494ca58c9f5243dd4b56557aa8c41bce76e95ec3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Dec 2024 02:01:11 +0000 Subject: gentoo auto-resync : 11:12:2024 - 02:01:11 --- dev-libs/Manifest.gz | Bin 100684 -> 100686 bytes dev-libs/libsecp256k1/Manifest | 2 +- dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild | 2 +- dev-libs/libthreadar/Manifest | 2 +- dev-libs/libthreadar/libthreadar-1.5.0.ebuild | 2 +- dev-libs/libvarlink/Manifest | 2 + dev-libs/libvarlink/libvarlink-24.ebuild | 17 +++ dev-libs/oneDNN/Manifest | 8 +- dev-libs/oneDNN/oneDNN-3.5.2.ebuild | 133 ----------------------- dev-libs/oneDNN/oneDNN-3.5.3.ebuild | 134 ++++++++++++++++++++++++ dev-libs/oneDNN/oneDNN-3.6.1.ebuild | 133 ----------------------- dev-libs/oneDNN/oneDNN-3.6.2.ebuild | 134 ++++++++++++++++++++++++ dev-libs/simdjson/Manifest | 2 + dev-libs/simdjson/simdjson-3.11.2.ebuild | 105 +++++++++++++++++++ 14 files changed, 402 insertions(+), 274 deletions(-) create mode 100644 dev-libs/libvarlink/libvarlink-24.ebuild delete mode 100644 dev-libs/oneDNN/oneDNN-3.5.2.ebuild create mode 100644 dev-libs/oneDNN/oneDNN-3.5.3.ebuild delete mode 100644 dev-libs/oneDNN/oneDNN-3.6.1.ebuild create mode 100644 dev-libs/oneDNN/oneDNN-3.6.2.ebuild create mode 100644 dev-libs/simdjson/simdjson-3.11.2.ebuild (limited to 'dev-libs') diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz index b30fea945cc5..6fea977b607d 100644 Binary files a/dev-libs/Manifest.gz and b/dev-libs/Manifest.gz differ diff --git a/dev-libs/libsecp256k1/Manifest b/dev-libs/libsecp256k1/Manifest index 987134b29b0e..cc5fd8ab3557 100644 --- a/dev-libs/libsecp256k1/Manifest +++ b/dev-libs/libsecp256k1/Manifest @@ -2,5 +2,5 @@ AUX 0.4.0-fix-cross-compile.patch 4361 BLAKE2B a42a42404477cb69ffef4f6d2fb92efb1 DIST libsecp256k1-0.5.1.tar.gz 1962518 BLAKE2B edff454529755c5de4f7a5192235b7e461426cc05da83ba1be03a3f9f4327397ae96b11bbf4250cd09165a1a6bd5383b928d4374713c47ef930de0af11cfc772 SHA512 5cba94794ac9c0e9a72111958562690bfb79b1ccd3071e0aaa22c4c6a4fe4007b87e402c00bbab1bdc93f31490d4b528d7ac368870ac05de12ee76db8313e510 DIST libsecp256k1-0.6.0.tar.gz 1996783 BLAKE2B 6c8ec26bd3d10f463ac4aeed4aa092718a8101012d9ae0b8931166a4bec717f9d5bdc2c8ef21395f6ce2285828871deefa1e47299654d19634c9398d7447acea SHA512 bccaa15295b0633e1fe5a4a4d7a80be812e40c8ed815be4f0d3f3348a5e185633c599cd50b7461a3584f89aea94f6d5321772876c5146553e2732df8b72becc2 EBUILD libsecp256k1-0.5.1.ebuild 1779 BLAKE2B eb6f72bdc047ee4130bb6be33a1abfc3561236f23ae1152199253ee15f380bc14c5a891fe99df9396708f48b81cb5c39d5acf15c5ba032a18c1b76ae8dde8816 SHA512 003a75b03e23056c037aab4ac26fe45f67291427e85b234f1d626bcf74681b1ae8ec431b64db32203cb28d8d2ec2702ac1a370057b3c7c55ca11f0358dc80612 -EBUILD libsecp256k1-0.6.0.ebuild 1976 BLAKE2B 73ac4f8526048a269e233e318cb112330c89f8e0005560595ce0cb20ad1e77bc34b1e8f7758b03dc15f5f01a1233a13b9aa2b6ef7c0d15b847b2b55980340a39 SHA512 42fe9e5719e483027d66e7ced4ef92d806ecd3d5f9b946177725c365f7aa9ada2dc960b581a90668b5cb52f7f04422bb6a133a2953eb5d452de400f64a076c6d +EBUILD libsecp256k1-0.6.0.ebuild 1972 BLAKE2B 34e9790070cc053adfc6799858e7631a83a3eba8e83056225c9d079f9efc467f33210e7fb4c2a796a58337e36d351e52109536a0fb28a16bf7cf770b19033e01 SHA512 2747dd81cd805b86e02ba419bc86e76b3d6d2cf7e1302c0aab6b7a861cfed246dbbc623d115565567e3f5bcd199d8d7e6f698faf34978f4c3b12a6e131ac29df MISC metadata.xml 1243 BLAKE2B df52851a4c0c3ac5d14e609abb8b43fea01a56436e4824171713262e1cfb5828d7e91e060eb48196ddd72fce90bdfb823f51772c399172963721de1561f4a5a7 SHA512 3a4ba1d15a7b1e9b126f2ac7d5e6453c8836f3203acd4d76bb13cdec60e1de1e39ac6e90e1ee380f051c1740fd6be48d3a1a8780cc248cb06f46186395bbf754 diff --git a/dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild b/dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild index 246a6bac38ed..03da7b0733b1 100644 --- a/dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild +++ b/dev-libs/libsecp256k1/libsecp256k1-0.6.0.ebuild @@ -13,7 +13,7 @@ S="${WORKDIR}/${MyPN}-${PV}" LICENSE="MIT" SLOT="0/5" # subslot is "$((_LIB_VERSION_CURRENT-_LIB_VERSION_AGE))" from configure.ac -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" IUSE="asm +ecdh +ellswift experimental +extrakeys lowmem musig +recovery +schnorr test valgrind" RESTRICT="!test? ( test )" diff --git a/dev-libs/libthreadar/Manifest b/dev-libs/libthreadar/Manifest index a6b358972c46..1d744c8cbeb9 100644 --- a/dev-libs/libthreadar/Manifest +++ b/dev-libs/libthreadar/Manifest @@ -1,5 +1,5 @@ DIST libthreadar-1.4.0.tar.gz 445672 BLAKE2B ce4165bfa507f27ea071dab067e1cda61e0812fd106ab80f0ef04a53ac68ce866a3d7c5ce6a26d6e9fc2c2085de7b8636492711a15a7103cc16b773d0a87aebe SHA512 3665817cf6327d4d24792d8cc2bd0a458bda1651b471e3440c1f63c22f397cfb4c8d81482f937e13f67f5ff1414662b1f69d9c311362a0a7a9249e8bc0236751 DIST libthreadar-1.5.0.tar.gz 460637 BLAKE2B 41ac9ae8bea6d9ae695b9c8984c842de8863ebd946ad424027a43e04ace7244e8a9414b28470d509c4567ec60a816835f6ad3a52ec9d2d8906fe09e48c720587 SHA512 b54b8f25be350d9262123413b0850c147a00684605f5394b27afea9b14d282fdfc2bd74abefa67e61f14fc2a28da7fa1eba78266f05a51b1ea5193f99ae51909 EBUILD libthreadar-1.4.0-r1.ebuild 760 BLAKE2B 1cab4a7a39588d4be568c5c7731c310626c2b0585001986cd854ebc8986487eddd45108cd9e8e3ca9b616cae5ec66dac80d6fff911ae7273f3b40c8eb905879c SHA512 36420098b2a065c94dc6e6b6df2dbe8e862bb1980f314033e356c7ceb83f0b3d0f46bf953c9455e639a52c06d7df69006ba197ed0f9e9d8c00c9ddbb176df01f -EBUILD libthreadar-1.5.0.ebuild 761 BLAKE2B f226a42da51418e47a781075afb6bdbeafcefa53b0740c12ec8342005957585539fe28dd8a59d674ef6956b89695d89a8e7e03f3b0bcfd9beaaff8f40a93e31b SHA512 29b20647d3a288bacf3d1cbbfd996959579eac1eee7b75cb5d694398ddad825bcdef9f67f0a62af9a6b9723b547b6b8e7599b9cd0a210e44ac820016cbd49adf +EBUILD libthreadar-1.5.0.ebuild 760 BLAKE2B 1cab4a7a39588d4be568c5c7731c310626c2b0585001986cd854ebc8986487eddd45108cd9e8e3ca9b616cae5ec66dac80d6fff911ae7273f3b40c8eb905879c SHA512 36420098b2a065c94dc6e6b6df2dbe8e862bb1980f314033e356c7ceb83f0b3d0f46bf953c9455e639a52c06d7df69006ba197ed0f9e9d8c00c9ddbb176df01f MISC metadata.xml 736 BLAKE2B 3b5d80b6a6bfa26f3638e2ca2e71cd5fb40a98c795a95919978fbc5f5041c00be4eee0a28c5b077f5301d05cccb4df7b187e0e95d50745d738172ddf29c47102 SHA512 ce6541bb18f54bcd0dde3fabf316335fead056be334714571a6fff27cc3d1818ebf083fcb6bd9ceeddc1d5b8f333d46faf7a51706e178e85d87dd938307fcebb diff --git a/dev-libs/libthreadar/libthreadar-1.5.0.ebuild b/dev-libs/libthreadar/libthreadar-1.5.0.ebuild index 38a7f18b3e5f..33b93bcbee7e 100644 --- a/dev-libs/libthreadar/libthreadar-1.5.0.ebuild +++ b/dev-libs/libthreadar/libthreadar-1.5.0.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://downloads.sourceforge.net/libthreadar/${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" -KEYWORDS="~amd64 ppc sparc x86" +KEYWORDS="amd64 ppc sparc x86" src_prepare() { default diff --git a/dev-libs/libvarlink/Manifest b/dev-libs/libvarlink/Manifest index 9a4b0e55f8a6..6b7ffda2c186 100644 --- a/dev-libs/libvarlink/Manifest +++ b/dev-libs/libvarlink/Manifest @@ -1,5 +1,7 @@ DIST libvarlink-22.tar.gz 80867 BLAKE2B 4b538846219d21dce92f8b49548b24c6efa72e31fc78ce09e5bb8f76bfddc2c05479bc5b84981042315fae154c2884c9956fb651812ec257bc4a2b0fc0e70021 SHA512 edb6aab02df775b872621f59bb98e8567b74ec4e1311ad5195f87529e7070fbfb6a92e1580b0433efcd7512d5f47f55ed91a406a3fb51f61c8d6feb263367fa0 DIST libvarlink-23.tar.gz 81048 BLAKE2B bb3410eaef0bbdfa5010a1f643ce0f54564133070245fb1101655698b1d1186ae822cbf6ffa29201104477023db2b91ee5320f0cfa128d95d39b3af6e297c051 SHA512 b118ec9142ee73fe8fd53d5439f19a29013157a339da5bdcbfad2892d450486a1d8200b23101a5ffe15c80f78c90c6d4ce3bc605074bfdee15de8775b1135b5b +DIST libvarlink-24.tar.gz 81361 BLAKE2B e1e8db0442c11b266dd037b2f1ef90b0dcdf34827c7848b0f5fa439f5fdd97c778b5031f599c4bca3d51152a55cec73c65fd11d4b28ccfb36a4caeff832adf0e SHA512 737975a9f49616ed41eba6beeeafcbc9364623551b3b9f541a3e1142ac0fb4f4b3e49d5964f3e2d5bd3afd80d7394882a0b21ca5a838fa14de1936baad2715c3 EBUILD libvarlink-22.ebuild 439 BLAKE2B 404caf68b22ba3b05a68e4c0171b00569fca8b9ea4167a75e3abf1760bbd53cd32bc8db77cc2cdd6a0e15129d18e132bf34740f33a2b5641a1ec8265694ac7cd SHA512 ad31df379c1bff093ddffdb8c2ed045ba21da935e89263ac0e587a5a9c80eb45c6b3b99eb21b80fe34e962db8a3c05eef598354340acdcc8cdcc5f0e5545e359 EBUILD libvarlink-23.ebuild 451 BLAKE2B 139edfa16d6138afe157f5f6f3de5df5c2ed14ec758880b7d98e239c6e5bcddfd08d9672b43c2f8c0404ff34457f389219e7aef84230a5e3bcdc3c38b9ea5755 SHA512 166caa84e114ab6a23f8c59c831c54ee90c83fe9dc645e918beb11dbb7ad06606f960129f52e1ee6beda16f3b4751aba03e66487aafe53cf90137fe344bd6bb8 +EBUILD libvarlink-24.ebuild 451 BLAKE2B d7ec7eb17df8b2b0e8f9e03cb772b1eb9899a56b789ad8d71635f5f41d1835717cdd57fe4c35c82a05416b663a54d736672df2bde92194557d6ee8b0c56910f8 SHA512 e97be37b7c962d24fc0631f9f61aa2c636639b7d5dcee4067e93e41011e88211af4788a5a71a30e134c16d65761a27d6d655c14826f939568caf3d0142aa6702 MISC metadata.xml 328 BLAKE2B 42775f0eb790f17bd598085e9e6afe34b48f53ec57ff8f9541a45d0f1bd7096943ee42b38396edc1a5521d9cfb5d8f04d26aa0c6d0cc985033063e9ea55841dd SHA512 d2da3af9a630d2d0f4c070b6076033986c494bda8696c98aa118721aaf9adcd4e9f500d407ca545946ac012f2b7fd02d8455081a5ffbfadeea0b028bab3c238e diff --git a/dev-libs/libvarlink/libvarlink-24.ebuild b/dev-libs/libvarlink/libvarlink-24.ebuild new file mode 100644 index 000000000000..2de58b796453 --- /dev/null +++ b/dev-libs/libvarlink/libvarlink-24.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +DESCRIPTION="C implementation of the Varlink protocol and command line tool" +HOMEPAGE="https://github.com/varlink/libvarlink" +SRC_URI="https://github.com/varlink/libvarlink/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +RESTRICT+=" test" + +BDEPEND="virtual/pkgconfig" diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest index 85908874fbde..9661a637262f 100644 --- a/dev-libs/oneDNN/Manifest +++ b/dev-libs/oneDNN/Manifest @@ -1,5 +1,5 @@ -DIST oneDNN-3.5.2.tar.gz 13190514 BLAKE2B 4d274fcdc9d30de4df5d6c949932e65f1ddefa56d96ec87c60aee2122cd8f250bbe6dfffb329ca9e413dd13fdb5478d3470076f0913cc53b1d418a2997f88377 SHA512 80b6eda44fc600eff8b98ce58937b98440ab3cf18e0022df366e417189ae42e722e6b11f9c2c01049313bd9d3f7e74eff8efc6ac8590b602d16b32265dd74578 -DIST oneDNN-3.6.1.tar.gz 13786059 BLAKE2B 399f9213614527eea93e12d53b37cbf6199c9da6308a4ea7c1a73b6759a9e3e81a25daa9582ae8d2bb4423501c3536ff59adafbe686ccf311e1794ef6394c09b SHA512 5d505b20cb81aad48995c53456277bb6bf96454aadb882093b9e655a4a8130fde0bfdd56740c8a1af6ed9217feb0eb58aabdb7d819728264e342c7b184562596 -EBUILD oneDNN-3.5.2.ebuild 3405 BLAKE2B 1fd57c08845b0a2a80e7b51a50bd3aa91e08e39b4b76d032d8cb18f4e4ce286976aa8c442a1552193e53b80c3f777d22dcfa97817be5a12563f69e2c1ba4357f SHA512 d44a848fe14d9fde8c622a039282359bbd306b2f64e5884ccc2dc6e35443f0b7572053e869c3b0de2d8fd53ece0f04240c2c908f32fe95266c34d89bd2faa93c -EBUILD oneDNN-3.6.1.ebuild 3405 BLAKE2B 1fd57c08845b0a2a80e7b51a50bd3aa91e08e39b4b76d032d8cb18f4e4ce286976aa8c442a1552193e53b80c3f777d22dcfa97817be5a12563f69e2c1ba4357f SHA512 d44a848fe14d9fde8c622a039282359bbd306b2f64e5884ccc2dc6e35443f0b7572053e869c3b0de2d8fd53ece0f04240c2c908f32fe95266c34d89bd2faa93c +DIST oneDNN-3.5.3.tar.gz 13190748 BLAKE2B 04ad0a6c6edeb1d356397bcd25cb77aaa2be00ea8eed343cd088e400b10fb3d7f7658ed35797f16dbe8434fb9a2bf2c715def7a8e749271ea2c911957f9e98fc SHA512 251da59164c102a6dd3c97e92aef58a879930c0def6e9fe6e43e68e1316ed0c9844796e69eecebbde12085900bfcda6c1ab30db6df24ba9826883171c87a964d +DIST oneDNN-3.6.2.tar.gz 13788211 BLAKE2B bc6039d24b33ac5a3f362d161b7dddbeb3f6b2b865175a1eecf66bb199d641d017b4036f7cfa18740302c96d06b2ed8d210de922136924edc309434731b16f36 SHA512 b45b6ae398ac33fdb79415395865bc34e0af35995015154df82a434bf5dc7a6ae126fb52cefc264b6abab04b2da5d60f6325f47052fa9430650c77dd54e612f6 +EBUILD oneDNN-3.5.3.ebuild 3438 BLAKE2B e89cb6d54f65b050c1be909cf92b1b259a73e1cf4264aa33992126d611674893b2de5cecd6241615dcb44509017eeaf85347ff5355ae1eae90ceb1bda51fe099 SHA512 19f5ef5f0fcc97c37ee995aac9e622f97c740167b30c192be4a44b99838343b2f60f2555559c25a398d3ee2db0be989bc580c78bcc48e692bd0d39b06ea495aa +EBUILD oneDNN-3.6.2.ebuild 3464 BLAKE2B 2cb40dcf6e8914e41bfe184189c4fb7b5cfdbca1ddbd7768fcbefd692e22b8334cd75c48a92a379d1470de22159eeac0e5873c86a8666e79d077ebd212bc291d SHA512 9c5a7295970c498d019c67ce7754222490a16ef4c4a686e81c66361282cd7bdabd677785317db2bf18973931286f196fcf83d25425f37c26e5cca21e54850cfb MISC metadata.xml 777 BLAKE2B 33c65c97e0c8132e315aa389c395407e8985fbe1607222f2affb04534c33e4df14776d90f3293fc651d7892f703cc8eff5803d075291c979bcd828aa51ab1778 SHA512 9b0c2354f69d0e2656bba2995fb956f16d6fad65887f240b670548d244074e7fe92bff73afd379e9d9a208c39ac7da01de97463aa65c37dd51aded32228aafd3 diff --git a/dev-libs/oneDNN/oneDNN-3.5.2.ebuild b/dev-libs/oneDNN/oneDNN-3.5.2.ebuild deleted file mode 100644 index f63e938f040c..000000000000 --- a/dev-libs/oneDNN/oneDNN-3.5.2.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DIR="${WORKDIR}/${P}_build" - -# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way). -# Removing of CMake modules is disabled. -CMAKE_REMOVE_MODULES_LIST=( none ) - -# There is additional sphinx documentation but we are missing dependency doxyrest. -inherit cmake docs multiprocessing toolchain-funcs - -DESCRIPTION="oneAPI Deep Neural Network Library" -HOMEPAGE="https://github.com/oneapi-src/oneDNN" -SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" - -IUSE="test mkl cblas static-libs +openmp" - -RESTRICT="!test? ( test )" - -DEPEND=" - mkl? ( sci-libs/mkl ) - cblas? ( !mkl? ( virtual/cblas ) ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - openmp? ( - || ( - sys-devel/gcc[openmp] - sys-devel/clang-runtime[openmp] - ) - ) -" - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_configure() { - if ! use openmp ; then - ewarn "WARNING: oneDNN is being built with sequential runtime." - ewarn "Proceeding might lead to highly sub-optimal performance." - ewarn "Conside enabling \"openmp\" USE flag." - fi - - local mycmakeargs=( - -DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED) - -DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ) - -DDNNL_GPU_RUNTIME=NONE - -DDNNL_BUILD_EXAMPLES=OFF - -DDNNL_BUILD_TESTS="$(usex test)" - -DDNNL_ENABLE_CONCURRENT_EXEC=OFF - -DDNNL_ENABLE_JIT_PROFILING=ON - -DDNNL_ENABLE_ITT_TASKS=ON - -DDNNL_ENABLE_PRIMITIVE_CACHE=ON - -DDNNL_ENABLE_MAX_CPU_ISA=ON - -DDNNL_ENABLE_CPU_ISA_HINTS=ON - -DDNNL_ENABLE_WORKLOAD=TRAINING - -DDNNL_ENABLE_PRIMITIVE=ALL - -DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL - -DDNNL_EXPERIMENTAL=OFF - -DDNNL_VERBOSE=ON - -DDNNL_DEV_MODE=OFF - -DDNNL_AARCH64_USE_ACL=OFF - -DDNNL_GPU_VENDOR=INTEL - -DDNNL_LIBRARY_NAME=dnnl - -DONEDNN_BUILD_GRAPH=ON - -DONEDNN_ENABLE_GRAPH_DUMP=OFF - -DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF - -DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL - -DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL - -Wno-dev - ) - - if use mkl ; then - if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then - source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die - else - # bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually - export CPATH="${EPREFIX}"/usr/include/mkl - export MKLROOT="${EPREFIX}"/usr - fi - - mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL ) - elif use cblas; then - mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas ) - else - mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE ) - fi - - cmake_src_configure -} - -src_compile() { - cmake_src_compile - docs_compile -} - -src_install() { - cmake_src_install - - # Correct docdir - mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die -} - -src_test() { - local CMAKE_SKIP_TESTS=( - # Crashes in sandbox (see #922886 and #923013); - # waits for sys-apps/sandbox-2.39 release and stabilization. - test_graph_unit_interface - test_graph_unit_dnnl_layout_propagator - test_graph_unit_dnnl_op_executable - test_graph_unit_utils - ) - - if use openmp ; then - # Don't run tests in parallel, each test is already parallelized - OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1 - else - cmake_src_test - fi -} diff --git a/dev-libs/oneDNN/oneDNN-3.5.3.ebuild b/dev-libs/oneDNN/oneDNN-3.5.3.ebuild new file mode 100644 index 000000000000..ad599be711f2 --- /dev/null +++ b/dev-libs/oneDNN/oneDNN-3.5.3.ebuild @@ -0,0 +1,134 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER="doxygen" +DOCS_DIR="${WORKDIR}/${P}_build" + +# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way). +# Removing of CMake modules is disabled. +CMAKE_REMOVE_MODULES_LIST=( none ) + +# There is additional sphinx documentation but we are missing dependency doxyrest. +inherit cmake docs multiprocessing toolchain-funcs + +DESCRIPTION="oneAPI Deep Neural Network Library" +HOMEPAGE="https://github.com/oneapi-src/oneDNN" +SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test mkl cblas static-libs +openmp" + +RESTRICT="!test? ( test )" + +DEPEND=" + mkl? ( sci-libs/mkl ) + cblas? ( !mkl? ( virtual/cblas ) ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + openmp? ( + || ( + sys-devel/gcc[openmp] + sys-devel/clang-runtime[openmp] + ) + ) +" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_configure() { + if ! use openmp ; then + ewarn "WARNING: oneDNN is being built with sequential runtime." + ewarn "Proceeding might lead to highly sub-optimal performance." + ewarn "Conside enabling \"openmp\" USE flag." + fi + + local mycmakeargs=( + -DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED) + -DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ) + -DDNNL_GPU_RUNTIME=NONE + -DDNNL_BUILD_EXAMPLES=OFF + -DDNNL_BUILD_TESTS="$(usex test)" + -DDNNL_ENABLE_CONCURRENT_EXEC=OFF + -DDNNL_ENABLE_JIT_PROFILING=ON + -DDNNL_ENABLE_ITT_TASKS=ON + -DDNNL_ENABLE_PRIMITIVE_CACHE=ON + -DDNNL_ENABLE_MAX_CPU_ISA=ON + -DDNNL_ENABLE_CPU_ISA_HINTS=ON + -DDNNL_ENABLE_WORKLOAD=TRAINING + -DDNNL_ENABLE_PRIMITIVE=ALL + -DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL + -DDNNL_EXPERIMENTAL=OFF + -DDNNL_VERBOSE=ON + -DDNNL_DEV_MODE=OFF + -DDNNL_AARCH64_USE_ACL=OFF + -DDNNL_EXPERIMENTAL_UKERNEL=ON + -DDNNL_GPU_VENDOR=INTEL + -DDNNL_LIBRARY_NAME=dnnl + -DONEDNN_BUILD_GRAPH=ON + -DONEDNN_ENABLE_GRAPH_DUMP=OFF + -DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF + -DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL + -DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL + -Wno-dev + ) + + if use mkl ; then + if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then + source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die + else + # bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually + export CPATH="${EPREFIX}"/usr/include/mkl + export MKLROOT="${EPREFIX}"/usr + fi + + mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL ) + elif use cblas; then + mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas ) + else + mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE ) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + docs_compile +} + +src_install() { + cmake_src_install + + # Correct docdir + mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die +} + +src_test() { + local CMAKE_SKIP_TESTS=( + # Crashes in sandbox (see #922886 and #923013); + # waits for sys-apps/sandbox-2.39 release and stabilization. + test_graph_unit_interface + test_graph_unit_dnnl_layout_propagator + test_graph_unit_dnnl_op_executable + test_graph_unit_utils + ) + + if use openmp ; then + # Don't run tests in parallel, each test is already parallelized + OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1 + else + cmake_src_test + fi +} diff --git a/dev-libs/oneDNN/oneDNN-3.6.1.ebuild b/dev-libs/oneDNN/oneDNN-3.6.1.ebuild deleted file mode 100644 index f63e938f040c..000000000000 --- a/dev-libs/oneDNN/oneDNN-3.6.1.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DIR="${WORKDIR}/${P}_build" - -# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way). -# Removing of CMake modules is disabled. -CMAKE_REMOVE_MODULES_LIST=( none ) - -# There is additional sphinx documentation but we are missing dependency doxyrest. -inherit cmake docs multiprocessing toolchain-funcs - -DESCRIPTION="oneAPI Deep Neural Network Library" -HOMEPAGE="https://github.com/oneapi-src/oneDNN" -SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" - -IUSE="test mkl cblas static-libs +openmp" - -RESTRICT="!test? ( test )" - -DEPEND=" - mkl? ( sci-libs/mkl ) - cblas? ( !mkl? ( virtual/cblas ) ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - openmp? ( - || ( - sys-devel/gcc[openmp] - sys-devel/clang-runtime[openmp] - ) - ) -" - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_configure() { - if ! use openmp ; then - ewarn "WARNING: oneDNN is being built with sequential runtime." - ewarn "Proceeding might lead to highly sub-optimal performance." - ewarn "Conside enabling \"openmp\" USE flag." - fi - - local mycmakeargs=( - -DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED) - -DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ) - -DDNNL_GPU_RUNTIME=NONE - -DDNNL_BUILD_EXAMPLES=OFF - -DDNNL_BUILD_TESTS="$(usex test)" - -DDNNL_ENABLE_CONCURRENT_EXEC=OFF - -DDNNL_ENABLE_JIT_PROFILING=ON - -DDNNL_ENABLE_ITT_TASKS=ON - -DDNNL_ENABLE_PRIMITIVE_CACHE=ON - -DDNNL_ENABLE_MAX_CPU_ISA=ON - -DDNNL_ENABLE_CPU_ISA_HINTS=ON - -DDNNL_ENABLE_WORKLOAD=TRAINING - -DDNNL_ENABLE_PRIMITIVE=ALL - -DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL - -DDNNL_EXPERIMENTAL=OFF - -DDNNL_VERBOSE=ON - -DDNNL_DEV_MODE=OFF - -DDNNL_AARCH64_USE_ACL=OFF - -DDNNL_GPU_VENDOR=INTEL - -DDNNL_LIBRARY_NAME=dnnl - -DONEDNN_BUILD_GRAPH=ON - -DONEDNN_ENABLE_GRAPH_DUMP=OFF - -DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF - -DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL - -DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL - -Wno-dev - ) - - if use mkl ; then - if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then - source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die - else - # bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually - export CPATH="${EPREFIX}"/usr/include/mkl - export MKLROOT="${EPREFIX}"/usr - fi - - mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL ) - elif use cblas; then - mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas ) - else - mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE ) - fi - - cmake_src_configure -} - -src_compile() { - cmake_src_compile - docs_compile -} - -src_install() { - cmake_src_install - - # Correct docdir - mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die -} - -src_test() { - local CMAKE_SKIP_TESTS=( - # Crashes in sandbox (see #922886 and #923013); - # waits for sys-apps/sandbox-2.39 release and stabilization. - test_graph_unit_interface - test_graph_unit_dnnl_layout_propagator - test_graph_unit_dnnl_op_executable - test_graph_unit_utils - ) - - if use openmp ; then - # Don't run tests in parallel, each test is already parallelized - OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1 - else - cmake_src_test - fi -} diff --git a/dev-libs/oneDNN/oneDNN-3.6.2.ebuild b/dev-libs/oneDNN/oneDNN-3.6.2.ebuild new file mode 100644 index 000000000000..c4248544fd56 --- /dev/null +++ b/dev-libs/oneDNN/oneDNN-3.6.2.ebuild @@ -0,0 +1,134 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER="doxygen" +DOCS_DIR="${WORKDIR}/${P}_build" + +# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way). +# Removing of CMake modules is disabled. +CMAKE_REMOVE_MODULES_LIST=( none ) + +# There is additional sphinx documentation but we are missing dependency doxyrest. +inherit cmake docs multiprocessing toolchain-funcs + +DESCRIPTION="oneAPI Deep Neural Network Library" +HOMEPAGE="https://github.com/oneapi-src/oneDNN" +SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test mkl cblas static-libs +openmp" + +RESTRICT="test" # Some test are very long to execute + +DEPEND=" + mkl? ( sci-libs/mkl ) + cblas? ( !mkl? ( virtual/cblas ) ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + openmp? ( + || ( + sys-devel/gcc[openmp] + sys-devel/clang-runtime[openmp] + ) + ) +" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_configure() { + if ! use openmp ; then + ewarn "WARNING: oneDNN is being built with sequential runtime." + ewarn "Proceeding might lead to highly sub-optimal performance." + ewarn "Conside enabling \"openmp\" USE flag." + fi + + local mycmakeargs=( + -DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED) + -DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ) + -DDNNL_GPU_RUNTIME=NONE + -DDNNL_BUILD_EXAMPLES=OFF + -DDNNL_BUILD_TESTS="$(usex test)" + -DDNNL_ENABLE_CONCURRENT_EXEC=OFF + -DDNNL_ENABLE_JIT_PROFILING=ON + -DDNNL_ENABLE_ITT_TASKS=ON + -DDNNL_ENABLE_PRIMITIVE_CACHE=ON + -DDNNL_ENABLE_MAX_CPU_ISA=ON + -DDNNL_ENABLE_CPU_ISA_HINTS=ON + -DDNNL_ENABLE_WORKLOAD=TRAINING + -DDNNL_ENABLE_PRIMITIVE=ALL + -DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL + -DDNNL_EXPERIMENTAL=OFF + -DDNNL_VERBOSE=ON + -DDNNL_DEV_MODE=OFF + -DDNNL_AARCH64_USE_ACL=OFF + -DDNNL_EXPERIMENTAL_UKERNEL=ON + -DDNNL_GPU_VENDOR=INTEL + -DDNNL_LIBRARY_NAME=dnnl + -DONEDNN_BUILD_GRAPH=ON + -DONEDNN_ENABLE_GRAPH_DUMP=OFF + -DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF + -DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL + -DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL + -Wno-dev + ) + + if use mkl ; then + if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then + source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die + else + # bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually + export CPATH="${EPREFIX}"/usr/include/mkl + export MKLROOT="${EPREFIX}"/usr + fi + + mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL ) + elif use cblas; then + mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas ) + else + mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE ) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + docs_compile +} + +src_install() { + cmake_src_install + + # Correct docdir + mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die +} + +src_test() { + local CMAKE_SKIP_TESTS=( + # Crashes in sandbox (see #922886 and #923013); + # waits for sys-apps/sandbox-2.39 release and stabilization. + test_graph_unit_interface + test_graph_unit_dnnl_layout_propagator + test_graph_unit_dnnl_op_executable + test_graph_unit_utils + ) + + if use openmp ; then + # Don't run tests in parallel, each test is already parallelized + OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1 + else + cmake_src_test + fi +} diff --git a/dev-libs/simdjson/Manifest b/dev-libs/simdjson/Manifest index 04f16907fb27..ea45deb005b9 100644 --- a/dev-libs/simdjson/Manifest +++ b/dev-libs/simdjson/Manifest @@ -8,12 +8,14 @@ AUX simdjson-3.7.1-data-optional.patch 841 BLAKE2B f207b75c0c9d81f5d35ef9da4eeb3 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.11.2.gh.tar.gz 2703937 BLAKE2B 390c99f46efa92893b8b1fb193baf9333a7f19b909d7c9e621988eb9b11a89a3feea672069fbba044495d8b4d2f76f38a293b4ffcdddfb2be4820e527edc7866 SHA512 417e158e8b03ee50a50e927606ee8771eb457b94c8bba8e106c2aeb3eab3455a9431b9d5a92a852938e475a8101624b5785d0a2a45965490e42331cfe17efa62 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.11.2.ebuild 2646 BLAKE2B 9506392749ff9c6da0481124451ebeb453f4751ea3505ece5fc041418ff1db8b4402ae4914810e0aeb556d744384bfd5ce9b72e3da74205deb749ac9047eb477 SHA512 8e2c5342181a327c544c10b8e0de30ac7b601869340b0613b4212545e275b347061850d6f8b18c13e3186bb2d550efd171cbf36dc8e713ef00ab222a7fafa9e7 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.2.ebuild b/dev-libs/simdjson/simdjson-3.11.2.ebuild new file mode 100644 index 000000000000..74f187a53c22 --- /dev/null +++ b/dev-libs/simdjson/simdjson-3.11.2.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 +} -- cgit v1.2.3