public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/simdjson/
Date: Tue, 10 Dec 2024 16:08:33 +0000 (UTC)	[thread overview]
Message-ID: <1733846899.d8a5cd7059d2795bc4a26cf93ee0ccc0320c416b.chutzpah@gentoo> (raw)

commit:     d8a5cd7059d2795bc4a26cf93ee0ccc0320c416b
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 10 16:08:19 2024 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Dec 10 16:08:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8a5cd70

dev-libs/simdjson: add 3.11.2

Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-libs/simdjson/Manifest               |   1 +
 dev-libs/simdjson/simdjson-3.11.2.ebuild | 105 +++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)

diff --git a/dev-libs/simdjson/Manifest b/dev-libs/simdjson/Manifest
index a099dea9215e..5323f0ef7226 100644
--- a/dev-libs/simdjson/Manifest
+++ b/dev-libs/simdjson/Manifest
@@ -1,6 +1,7 @@
 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

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
+}


             reply	other threads:[~2024-12-10 16:08 UTC|newest]

Thread overview: 124+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-10 16:08 Patrick McLean [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-30 17:49 [gentoo-commits] repo/gentoo:master commit in: dev-libs/simdjson/ Patrick McLean
2025-09-22 17:50 Patrick McLean
2025-09-19 15:46 Patrick McLean
2025-09-18  1:21 Patrick McLean
2025-09-16 14:39 Patrick McLean
2025-09-15 17:45 Patrick McLean
2025-09-12 23:32 Patrick McLean
2025-09-12 15:23 Patrick McLean
2025-09-12 15:23 Patrick McLean
2025-07-04 15:40 Arthur Zamarin
2025-07-04  9:42 Arthur Zamarin
2025-06-22 19:56 Arthur Zamarin
2025-06-22 15:23 Sam James
2025-06-22 14:34 Sam James
2025-06-04 18:09 Patrick McLean
2025-05-04 10:54 Sam James
2025-04-26 10:06 Arthur Zamarin
2025-04-26  5:48 Sam James
2025-04-26  2:56 Sam James
2025-04-26  1:45 Sam James
2025-04-26  1:25 Sam James
2025-02-12 18:32 Patrick McLean
2025-02-11 19:15 Patrick McLean
2025-01-09 17:54 Patrick McLean
2025-01-07 17:40 Patrick McLean
2025-01-07 17:40 Patrick McLean
2024-12-06 18:42 Patrick McLean
2024-11-01 19:13 Andreas K. Hüttel
2024-10-31 13:51 Sam James
2024-10-30 15:46 Arthur Zamarin
2024-10-26 10:42 Sam James
2024-10-26 10:40 Sam James
2024-10-26 10:40 Sam James
2024-10-25 22:31 Sam James
2024-09-02 11:22 Jakov Smolić
2024-07-29 19:39 Arthur Zamarin
2024-07-29 19:37 Arthur Zamarin
2024-07-17  4:38 Viorel Munteanu
2024-06-26  5:43 Arthur Zamarin
2024-06-25 23:16 Sam James
2024-06-13 19:48 Patrick McLean
2024-05-30 18:41 Arthur Zamarin
2024-05-30 17:25 Patrick McLean
2024-05-30 17:25 Patrick McLean
2024-05-24 19:01 Patrick McLean
2024-05-24  2:46 Ionen Wolkens
2024-05-12 11:13 Yixun Lan
2024-04-05 20:50 Patrick McLean
2024-04-05 17:37 Patrick McLean
2024-04-05 17:36 Patrick McLean
2024-02-24  0:01 Patrick McLean
2024-02-07 18:38 Patrick McLean
2024-02-07 18:38 Patrick McLean
2024-02-07 18:38 Patrick McLean
2023-12-08 18:55 Patrick McLean
2023-12-04 20:25 Patrick McLean
2023-12-04 20:25 Patrick McLean
2023-10-28  2:01 Patrick McLean
2023-10-26 17:46 Patrick McLean
2023-09-20 16:54 Patrick McLean
2023-09-20 16:54 Patrick McLean
2023-08-22 18:11 Patrick McLean
2023-08-07 21:26 Patrick McLean
2023-07-07  6:07 Patrick McLean
2023-07-07  6:06 Patrick McLean
2023-07-07  6:06 Patrick McLean
2023-06-15 19:03 Patrick McLean
2023-06-15 19:03 Patrick McLean
2023-04-27 22:01 Patrick McLean
2023-03-14 17:33 Patrick McLean
2023-03-13 18:19 Patrick McLean
2023-03-13 18:19 Patrick McLean
2023-03-02 21:24 Patrick McLean
2023-03-02 21:24 Patrick McLean
2023-03-02 21:24 Patrick McLean
2023-02-14 21:28 Patrick McLean
2023-02-07 17:52 Patrick McLean
2023-01-26 18:44 Patrick McLean
2023-01-26 18:44 Patrick McLean
2023-01-13 10:16 Arthur Zamarin
2022-10-28 11:02 Sam James
2022-10-07 22:55 Patrick McLean
2022-08-01 19:03 Patrick McLean
2022-07-20  0:42 Patrick McLean
2022-06-30 21:35 Patrick McLean
2022-06-30 16:29 Patrick McLean
2022-06-30 16:29 Patrick McLean
2022-06-30 16:23 Patrick McLean
2022-06-16 16:01 Patrick McLean
2022-06-02 21:13 Patrick McLean
2022-06-02 16:02 Patrick McLean
2022-06-02 15:55 Patrick McLean
2022-05-26 21:21 Patrick McLean
2022-05-25 17:26 Patrick McLean
2022-05-18  1:22 Patrick McLean
2022-01-06 10:39 David Seifert
2021-10-28  0:55 Patrick McLean
2021-10-21 16:19 Patrick McLean
2021-10-05 20:57 Patrick McLean
2021-09-08 18:25 Patrick McLean
2021-09-08 18:25 Patrick McLean
2021-08-02 23:15 Patrick McLean
2021-06-07 18:19 Patrick McLean
2021-05-28  1:40 Patrick McLean
2021-05-22  7:42 Patrick McLean
2021-05-17  2:37 Sam James
2021-05-15 17:47 Patrick McLean
2021-04-16 22:06 Patrick McLean
2021-04-01 17:26 Patrick McLean
2021-04-01 17:26 Patrick McLean
2021-03-21  2:51 Patrick McLean
2021-02-11 17:41 Patrick McLean
2021-01-28 19:00 Patrick McLean
2021-01-28 19:00 Patrick McLean
2020-12-14 19:41 Patrick McLean
2020-12-07 18:20 Patrick McLean
2020-12-05 23:41 Patrick McLean
2020-12-05  0:34 Patrick McLean
2020-11-04 23:40 Patrick McLean
2020-10-30 17:33 Patrick McLean
2020-10-29  5:13 Sam James
2020-10-29  5:13 Sam James
2020-10-28 23:28 Georgy Yakovlev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1733846899.d8a5cd7059d2795bc4a26cf93ee0ccc0320c416b.chutzpah@gentoo \
    --to=chutzpah@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox