From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1634521-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 B87D31581D3
	for <garchives@archives.gentoo.org>; Thu, 23 May 2024 19:12:27 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8F161E29CF;
	Thu, 23 May 2024 19:12:26 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(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 76951E29CF
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 May 2024 19:12:26 +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 A09BF335C7A
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 May 2024 19:12:25 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id CB6FC1AD9
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 May 2024 19:12:23 +0000 (UTC)
From: "Ben Kohler" <bkohler@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, "Ben Kohler" <bkohler@gentoo.org>
Message-ID: <1716491510.92b9792b8c644fdccff00d25d5be32448498b987.bkohler@gentoo>
Subject: [gentoo-commits] proj/genkernel:master commit in: gkbuilds/
X-VCS-Repository: proj/genkernel
X-VCS-Files: gkbuilds/json-c-0.17.gkbuild
X-VCS-Directories: gkbuilds/
X-VCS-Committer: bkohler
X-VCS-Committer-Name: Ben Kohler
X-VCS-Revision: 92b9792b8c644fdccff00d25d5be32448498b987
X-VCS-Branch: master
Date: Thu, 23 May 2024 19:12:23 +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: 14c50f2a-411d-4cd9-941e-7ffd05ab2401
X-Archives-Hash: 06978e10efb5046178327bcd8b563924

commit:     92b9792b8c644fdccff00d25d5be32448498b987
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu May 23 19:11:50 2024 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu May 23 19:11:50 2024 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=92b9792b

gkbuilds: add json-c-0.17

Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 gkbuilds/json-c-0.17.gkbuild | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gkbuilds/json-c-0.17.gkbuild b/gkbuilds/json-c-0.17.gkbuild
new file mode 100644
index 0000000..9d89852
--- /dev/null
+++ b/gkbuilds/json-c-0.17.gkbuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+#
+src_configure() {
+	mkdir ../${P}_build
+	cd ../${P}_build
+
+	gkexec "cmake \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DBUILD_APPS=OFF \
+		-DDISABLE_EXTRA_LIBS=ON \
+		-DDISABLE_WERROR=ON \
+		-DENABLE_RDRAND=no \
+		-DENABLE_THREADING=no \
+		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+		-DCMAKE_INSTALL_LIBDIR=lib \
+		../${P}"
+}
+
+src_compile() {
+	cd ../${P}_build
+	gkmake
+}
+
+src_install() {
+	cd ../${P}_build
+	gkmake DESTDIR="${D}" install
+}