From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6124E1382C5 for ; Tue, 12 May 2020 13:58:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D67FE09AE; Tue, 12 May 2020 13:58:06 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85339E09AD for ; Tue, 12 May 2020 13:58:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B9E1E35018D for ; Tue, 12 May 2020 13:58:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9539A254 for ; Tue, 12 May 2020 13:58:00 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1589291833.8f0f8e145c8d9f2cf52725ecc1d7b7a4f3977239.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/json-c/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/json-c/json-c-9999.ebuild X-VCS-Directories: dev-libs/json-c/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 8f0f8e145c8d9f2cf52725ecc1d7b7a4f3977239 X-VCS-Branch: master Date: Tue, 12 May 2020 13:58:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ec6e3344-f135-4108-9eec-d632fa4ab214 X-Archives-Hash: 9a0154c3188cb2b2b2b55d952828820c commit: 8f0f8e145c8d9f2cf52725ecc1d7b7a4f3977239 Author: Anssi Jaatinen hofnarr fi> AuthorDate: Fri May 8 06:58:30 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue May 12 13:57:13 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f0f8e14 dev-libs/json-c: add live ebuild Signed-off-by: Anssi Jaatinen hofnarr.fi> Signed-off-by: Jakov Smolic sartura.hr> Signed-off-by: Luka Perkov sartura.hr> Closes: https://github.com/gentoo/gentoo/pull/15586 Signed-off-by: Joonas Niilola gentoo.org> dev-libs/json-c/json-c-9999.ebuild | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/dev-libs/json-c/json-c-9999.ebuild b/dev-libs/json-c/json-c-9999.ebuild new file mode 100644 index 00000000000..eac441be4e7 --- /dev/null +++ b/dev-libs/json-c/json-c-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +CMAKE_ECLASS=cmake +inherit cmake-multilib git-r3 + +DESCRIPTION="A JSON implementation in C" +HOMEPAGE="https://github.com/json-c/json-c/wiki" +EGIT_REPO_URI="https://github.com/json-c/json-c.git" + +LICENSE="MIT" +SLOT="0/5" +IUSE="doc static-libs threads" + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/json-c/config.h +) + +src_prepare() { + cmake_src_prepare +} + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_DOCUMENTATION=$(multilib_native_usex doc) + -DDISABLE_WERROR=ON + -DENABLE_THREADING=$(usex threads) + -DBUILD_STATIC_LIBS=$(usex static-libs) + ) + + cmake_src_configure +} + +multilib_src_compile() { + cmake_src_compile +} + +multilib_src_test() { + multilib_is_native_abi && cmake_src_test +} + +multilib_src_install_all() { + use doc && HTML_DOCS=( "${S}"/doc/html/. ) + einstalldocs +}