From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1392692-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 471EC158090
	for <garchives@archives.gentoo.org>; Thu,  5 May 2022 01:07:30 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 15BA9E07AE;
	Thu,  5 May 2022 01:07:29 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id DB7A8E07D0
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 May 2022 01:07:28 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C8BEF341ADE
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 May 2022 01:07:27 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1FDBD449
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 May 2022 01:07:26 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1651712838.e6cc2ca6f0e30f587cd5df3ce4e63d4ec2d09e46.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/octave/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sci-mathematics/octave/metadata.xml sci-mathematics/octave/octave-7.1.0.ebuild
X-VCS-Directories: sci-mathematics/octave/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: e6cc2ca6f0e30f587cd5df3ce4e63d4ec2d09e46
X-VCS-Branch: master
Date: Thu,  5 May 2022 01:07:26 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 98f1bf2b-8e19-45ba-9b15-7ea1072241f9
X-Archives-Hash: 97c78671ddb50b65936c746e9217b698

commit:     e6cc2ca6f0e30f587cd5df3ce4e63d4ec2d09e46
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu May  5 01:00:18 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May  5 01:07:18 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6cc2ca6

sci-mathematics/octave: add rapidjson USE flag

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-mathematics/octave/metadata.xml        | 1 +
 sci-mathematics/octave/octave-7.1.0.ebuild | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/octave/metadata.xml b/sci-mathematics/octave/metadata.xml
index cfb2c2525f7c..759ec5c83e0f 100644
--- a/sci-mathematics/octave/metadata.xml
+++ b/sci-mathematics/octave/metadata.xml
@@ -10,6 +10,7 @@
 	</longdescription>
 	<use>
 		<flag name="glpk">Add support for <pkg>sci-mathematics/glpk</pkg> for linear programming</flag>
+		<flag name="json">Allow using jsonencode and jsondecode commands via <pkg>dev-libs/rapidjson</pkg></flag>
 		<flag name="qhull">Add support for <pkg>media-libs/qhull</pkg>, to allow `delaunay', `convhull', and related functions</flag>
 		<flag name="qrupdate">Add support for <pkg>sci-libs/qrupdate</pkg>for QR and Cholesky update functions</flag>
 		<flag name="sparse">Add enhanced support for sparse matrix algebra with SuiteSparse</flag>

diff --git a/sci-mathematics/octave/octave-7.1.0.ebuild b/sci-mathematics/octave/octave-7.1.0.ebuild
index 9d333e018ff1..0f6f332a685b 100644
--- a/sci-mathematics/octave/octave-7.1.0.ebuild
+++ b/sci-mathematics/octave/octave-7.1.0.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0/${PV}"
-IUSE="curl doc fftw +glpk gnuplot gui hdf5 java opengl
+IUSE="curl doc fftw +glpk gnuplot gui hdf5 java json opengl
 	portaudio postscript +qhull +qrupdate readline sndfile +sparse
 	ssl static-libs sundials X zlib"
 # Issue when building w/ SSL needs investigation
@@ -50,6 +50,7 @@ RDEPEND="
 	)
 	hdf5? ( sci-libs/hdf5:0= )
 	java? ( >=virtual/jre-1.6.0:* )
+	json? ( dev-libs/rapidjson )
 	opengl? (
 		media-libs/freetype:2=
 		media-libs/fontconfig:1.0=
@@ -151,6 +152,7 @@ src_configure() {
 		$(use_enable static-libs static) \
 		$(use_enable doc docs) \
 		$(use_enable java) \
+		$(use_enable json rapidjson) \
 		$(use_enable readline) \
 		$(use_with curl) \
 		$(use_with fftw fftw3) \
@@ -162,7 +164,7 @@ src_configure() {
 		$(use_with opengl fltk) \
 		$(use_with ssl openssl) \
 		$(use_with portaudio) \
-		$(use_with qhull_r) \
+		$(use_with qhull qhull_r) \
 		$(use_with qrupdate) \
 		$(use_with gui qt 5) \
 		$(use_with sndfile) \