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.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 1CAFF158095 for ; Tue, 23 Aug 2022 05:34:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68745E0877; Tue, 23 Aug 2022 05:34:41 +0000 (UTC) Received: from smtp.gentoo.org (mail.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A869EE0877 for ; Tue, 23 Aug 2022 05:34:40 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 42AA1340E37 for ; Tue, 23 Aug 2022 05:34:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1615E5A4 for ; Tue, 23 Aug 2022 05:34:37 +0000 (UTC) From: "Sam James" 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" Message-ID: <1661232858.928e7516633961347e996d8565560678995f7500.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/valijson/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/valijson/Manifest dev-cpp/valijson/metadata.xml dev-cpp/valijson/valijson-0.6.ebuild X-VCS-Directories: dev-cpp/valijson/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 928e7516633961347e996d8565560678995f7500 X-VCS-Branch: master Date: Tue, 23 Aug 2022 05:34:37 +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: 98b6ffae-aada-4135-96b1-6761a194c431 X-Archives-Hash: 292d586b7e218417d780a7984f3eb9a3 commit: 928e7516633961347e996d8565560678995f7500 Author: Holger Hoffstätte applied-asynchrony com> AuthorDate: Wed Jul 20 11:56:27 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Aug 23 05:34:18 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=928e7516 dev-cpp/valijson: new package Signed-off-by: Holger Hoffstätte applied-asynchrony.com> Signed-off-by: Sam James gentoo.org> dev-cpp/valijson/Manifest | 1 + dev-cpp/valijson/metadata.xml | 15 ++++++++++++++ dev-cpp/valijson/valijson-0.6.ebuild | 40 ++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/dev-cpp/valijson/Manifest b/dev-cpp/valijson/Manifest new file mode 100644 index 000000000000..ab196e007f5b --- /dev/null +++ b/dev-cpp/valijson/Manifest @@ -0,0 +1 @@ +DIST valijson-0.6.tar.gz 1881386 BLAKE2B 1dd7783e10f7d362673bd2b80920c911cca194068078ac1411897b212600032bc15ffe10dbb62c27e54d168a1c634d73ee40b394e4d534e72224694ec662e0a6 SHA512 a493d17159e479be7fe29d45c610c7d4fdd2c2f9ba897923129734fb07257dbb41fddde4c4263dbf0aa5c7101cd1555568a048beba2f60d2b32e625dd9690749 diff --git a/dev-cpp/valijson/metadata.xml b/dev-cpp/valijson/metadata.xml new file mode 100644 index 000000000000..fbe60ab1e518 --- /dev/null +++ b/dev-cpp/valijson/metadata.xml @@ -0,0 +1,15 @@ + + + + + holger@applied-asynchrony.com + Holger Hoffstätte + + + proxy-maint@gentoo.org + Proxy Maintainers + + + tristanpenman/valijson + + diff --git a/dev-cpp/valijson/valijson-0.6.ebuild b/dev-cpp/valijson/valijson-0.6.ebuild new file mode 100644 index 000000000000..879b255f1760 --- /dev/null +++ b/dev-cpp/valijson/valijson-0.6.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Header-only C++ library for JSON Schema validation" +HOMEPAGE="https://github.com/tristanpenman/valijson" +SRC_URI="https://github.com/tristanpenman/valijson/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +src_configure() { + local mycmakeargs=( + -Dvalijson_BUILD_TESTS=$(usex test) + ) + + if use test; then + sed -i -e "s:../tests/data/documents/:../${P}/tests/data/documents/:" tests/test_adapter_comparison.cpp || die + sed -i -e "s:../tests/data:../${P}/tests/data:" tests/test_validation_errors.cpp || die + sed -i -e "s:../thirdparty/:../${P}/thirdparty/:" -e "s:../doc/schema/:../${P}/doc/schema/:" tests/test_validator.cpp || die + fi + + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}" || die + ./test_suite || die +} + +src_install() { + # there is no target for installing headers, so do it manually + doheader -r include/* +}