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/, dev-libs/simdjson/files/
Date: Sat,  5 Dec 2020 21:39:14 +0000 (UTC)	[thread overview]
Message-ID: <1607204347.27e2fddc3ce1961b6ec619a12b475c200a7738cb.chutzpah@gentoo> (raw)

commit:     27e2fddc3ce1961b6ec619a12b475c200a7738cb
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  5 21:38:57 2020 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Sat Dec  5 21:39:07 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27e2fddc

dev-libs/simdjson-0.7.0-r1: Revbump, fix tests (bug #758623)

Also add "tools" USE flag to install extra tools.

Closes: https://bugs.gentoo.org/758623
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 .../files/simdjson-0.7.0-dont-bundle-cssopts.patch | 29 ++++++++++++++++++++++
 dev-libs/simdjson/metadata.xml                     |  3 +++
 ...djson-0.7.0.ebuild => simdjson-0.7.0-r1.ebuild} | 14 +++++++++--
 3 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/dev-libs/simdjson/files/simdjson-0.7.0-dont-bundle-cssopts.patch b/dev-libs/simdjson/files/simdjson-0.7.0-dont-bundle-cssopts.patch
new file mode 100644
index 00000000000..1f82151fb3d
--- /dev/null
+++ b/dev-libs/simdjson/files/simdjson-0.7.0-dont-bundle-cssopts.patch
@@ -0,0 +1,29 @@
+diff --git a/dependencies/CMakeLists.txt b/dependencies/CMakeLists.txt
+index 51ab3a31..d3d5e86e 100644
+--- a/dependencies/CMakeLists.txt
++++ b/dependencies/CMakeLists.txt
+@@ -105,6 +105,3 @@ endif()
+ set_off(CXXOPTS_BUILD_EXAMPLES)
+ set_off(CXXOPTS_BUILD_TESTS)
+ set_off(CXXOPTS_ENABLE_INSTALL)
+-
+-import_dependency(cxxopts jarro2783/cxxopts 794c975)
+-add_dependency(cxxopts)
+diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
+index f1a82be7..217a9fee 100644
+--- a/tools/CMakeLists.txt
++++ b/tools/CMakeLists.txt
+@@ -1,10 +1,7 @@
+-if(TARGET cxxopts) # we only build the tools if cxxopts is available
+   message(STATUS "We have cxxopts as a dependency and we are buiding the tools (e.g., json2json).")
+-  link_libraries(simdjson simdjson-internal-flags simdjson-windows-headers cxxopts)
++  link_libraries(simdjson simdjson-internal-flags simdjson-windows-headers)
+   add_executable(json2json json2json.cpp)
+   add_executable(jsonstats jsonstats.cpp)
+   add_executable(jsonpointer jsonpointer.cpp)
+   add_executable(minify minify.cpp)
+-else()
+-  message(STATUS "We are missing cxxopts as a dependency so the tools (e.g., json2json) are omitted.")
+-endif()
+\ No newline at end of file
++  install(TARGETS json2json jsonstats jsonpointer minify DESTINATION bin)

diff --git a/dev-libs/simdjson/metadata.xml b/dev-libs/simdjson/metadata.xml
index cee379b1540..988e8654bc7 100644
--- a/dev-libs/simdjson/metadata.xml
+++ b/dev-libs/simdjson/metadata.xml
@@ -5,4 +5,7 @@
 		<email>chutzpah@gentoo.org</email>
 		<name>Patrick McLean</name>
 	</maintainer>
+	<use>
+		<flag name="tools">Build and install extra command line tools</flag>
+	</use>
 </pkgmetadata>

diff --git a/dev-libs/simdjson/simdjson-0.7.0.ebuild b/dev-libs/simdjson/simdjson-0.7.0-r1.ebuild
similarity index 71%
rename from dev-libs/simdjson/simdjson-0.7.0.ebuild
rename to dev-libs/simdjson/simdjson-0.7.0-r1.ebuild
index e1805b6a55b..3c6404e0f47 100644
--- a/dev-libs/simdjson/simdjson-0.7.0.ebuild
+++ b/dev-libs/simdjson/simdjson-0.7.0-r1.ebuild
@@ -15,16 +15,24 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="Apache-2.0 Boost-1.0"
 SLOT="0/4"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-IUSE="test"
+IUSE="test tools"
 
 BDEPEND="
 	sys-apps/file
 	sys-apps/findutils
 	sys-apps/grep
 "
+DEPEND="
+	tools? ( dev-libs/cxxopts )
+"
 
+REQUIRED_USE="test? ( tools )"
 RESTRICT="!test? ( test )"
 
+PATCHES=(
+	"${FILESDIR}/simdjson-0.7.0-dont-bundle-cssopts.patch"
+)
+
 src_prepare() {
 	sed -e 's:-Werror ::' -i cmake/simdjson-flags.cmake || die
 	cmake_src_prepare
@@ -32,7 +40,9 @@ src_prepare() {
 
 src_configure() {
 	local mycmakeargs=(
-		$(usex test '' '-DSIMDJSON_JUST_LIBRARY=ON')
+		$(usex tools '' '-DSIMDJSON_JUST_LIBRARY=ON')
+		-DSIMDJSON_GOOGLE_BENCHMARKS=OFF
+		-DSIMDJSON_COMPETITION=OFF
 	)
 
 	cmake_src_configure


             reply	other threads:[~2020-12-05 21:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-05 21:39 Patrick McLean [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-06  2:43 [gentoo-commits] repo/gentoo:master commit in: dev-libs/simdjson/, dev-libs/simdjson/files/ Patrick McLean
2021-03-17 17:48 Patrick McLean
2021-09-08 23:23 Patrick McLean
2023-04-10 18:19 Patrick McLean
2024-08-30 21:30 Patrick McLean

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=1607204347.27e2fddc3ce1961b6ec619a12b475c200a7738cb.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