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 DBF8315810F for ; Fri, 9 Jun 2023 09:48:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C7E8E07DB; Fri, 9 Jun 2023 09:48:30 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A5441E07DB for ; Fri, 9 Jun 2023 09:48:29 +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 9A4DA340BC9 for ; Fri, 9 Jun 2023 09:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CAC0FA53 for ; Fri, 9 Jun 2023 09:48:26 +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: <1686304070.0f046f01a4708335f92bc35a0af9d1a6547757bd.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/cppdap/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/cppdap/Manifest dev-cpp/cppdap/cppdap-0_pre20230605.ebuild dev-cpp/cppdap/metadata.xml X-VCS-Directories: dev-cpp/cppdap/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0f046f01a4708335f92bc35a0af9d1a6547757bd X-VCS-Branch: master Date: Fri, 9 Jun 2023 09:48:26 +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: 51ba9f3b-6ab2-48ce-891b-c9c4354b072f X-Archives-Hash: 533ee1184e71d3b372414f76a08d8a79 commit: 0f046f01a4708335f92bc35a0af9d1a6547757bd Author: Sam James gentoo org> AuthorDate: Fri Jun 9 09:45:09 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jun 9 09:47:50 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f046f01 dev-cpp/cppdap: new package, add 0_pre20230605 New conditional dependency of dev-util/cmake for debugging functionality. Signed-off-by: Sam James gentoo.org> dev-cpp/cppdap/Manifest | 2 ++ dev-cpp/cppdap/cppdap-0_pre20230605.ebuild | 49 ++++++++++++++++++++++++++++++ dev-cpp/cppdap/metadata.xml | 11 +++++++ 3 files changed, 62 insertions(+) diff --git a/dev-cpp/cppdap/Manifest b/dev-cpp/cppdap/Manifest new file mode 100644 index 000000000000..7d1fa79cedcd --- /dev/null +++ b/dev-cpp/cppdap/Manifest @@ -0,0 +1,2 @@ +DIST cppdap-0_pre20230605.tar.gz 100715 BLAKE2B a7b6f745b7445242544deb2cd5b93bb13ee0faefe083a5e435d9a608fb453aceef1746738beb35678833f69521e637f2b8ca47fccd3e292a56e8a74c6435df86 SHA512 034f6282e992ec346715f84da1817a699937be174ab0ea09f750a693bed158b87ec6920e0ed1f7340ef5232e9634c5aebccd78527adde34b8abc4ff00c5f617e +DIST cppdap-gtest-0a03480824b4fc7883255dbd2fd8940c9f81e22e.tar.gz 874709 BLAKE2B 706e6d168e080494ac63cf607c189f55f5e98100fd744dd184a8217173f66891aedb8779a9c8b0aa289889d1f73e18c50ef65d8c70228e2a795a5e5081f66894 SHA512 55867a2e39647a7846506446d642dcd740711dee8c0dfe25887fd6ad361161617f3d462bdb415dfba20693849949c022e97e2de65dd731cc63b9466edd1c8b87 diff --git a/dev-cpp/cppdap/cppdap-0_pre20230605.ebuild b/dev-cpp/cppdap/cppdap-0_pre20230605.ebuild new file mode 100644 index 000000000000..4a2272173f46 --- /dev/null +++ b/dev-cpp/cppdap/cppdap-0_pre20230605.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +# See https://github.com/google/cppdap/issues/113 re no release +CPPDAP_COMMIT="252b56807b532533ea7362a4d949758dcb481d2b" +GTEST_COMMIT="0a03480824b4fc7883255dbd2fd8940c9f81e22e" +DESCRIPTION="C++ library for the Debug Adapter Protocol" +HOMEPAGE="https://github.com/google/cppdap" +SRC_URI="https://github.com/google/cppdap/archive/${CPPDAP_COMMIT}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" test? ( https://github.com/google/googletest/archive/${GTEST_COMMIT}.tar.gz -> ${PN}-gtest-${GTEST_COMMIT}.tar.gz )" +S="${WORKDIR}"/${PN}-${CPPDAP_COMMIT} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +src_prepare() { + if use test ; then + rm -rf "${S}"/third_party/googletest || die + ln -s "${WORKDIR}"/googletest-${GTEST_COMMIT} "${S}"/third_party/googletest || die + mkdir "${S}"/third_party/googletest/.git || die + fi + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # Per README, could use rapidjson or jsoncpp instead. + -DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON + -DCPPDAP_USE_EXTERNAL_RAPIDJSON_PACKAGE=OFF + -DCPPDAP_USE_EXTERNAL_JSONCPP_PACKAGE=OFF + + -DCPPDAP_BUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}" || die + ./cppdap-unittests || die +} diff --git a/dev-cpp/cppdap/metadata.xml b/dev-cpp/cppdap/metadata.xml new file mode 100644 index 000000000000..b449a73bf3fc --- /dev/null +++ b/dev-cpp/cppdap/metadata.xml @@ -0,0 +1,11 @@ + + + + + base-system@gentoo.org + Gentoo Base System + + + google/cppdap + +